summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorYacine Belkadi2013-02-18 14:24:24 +0100
committerYacine Belkadi2013-03-06 15:36:27 +0100
commit9ade0a827530ed6c7ae4b7e95486ffdae84cdae3 (patch)
treeaf32eea6e96ffaa76634c370798da2b0ae2b7cec /cleopatre
parent9e1eafa26f147112ef7d939f69e6387662772ae7 (diff)
cleo/buildroot/target/Spidcom: add msk500, refs #3648
The msk500 board was present in EoC but not in AV. Add it to AV, with some differences: - The second Ethernet interface (eth1) is not brought up and not added to the bridge, because there is no need for that, at the moment. - Power management related configuration items are added based on those of mse500.
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/Config.bundle-av2
-rw-r--r--cleopatre/buildroot/Makefile1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/Config.in8
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/common/defconfig.base1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/common/linux26.config.base1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/msk500/defconfig.part6
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/msk500/desc18
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/msk500/linux26.config.part15
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/msk500/target_skeleton_add/etc/network/interfaces28
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig7
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Makefile1
11 files changed, 87 insertions, 1 deletions
diff --git a/cleopatre/Config.bundle-av b/cleopatre/Config.bundle-av
index 3c95a54153..a969c7fbd3 100644
--- a/cleopatre/Config.bundle-av
+++ b/cleopatre/Config.bundle-av
@@ -1,5 +1,5 @@
include Config.bundle-common
-BOARDS=spk300g spk300 spr300 scr310 spk310 spr310 mse500 mcr500 mpr520
+BOARDS=spk300g spk300 spr300 scr310 spk310 spr310 mse500 mcr500 mpr520 msk500
CHIPS=spc300 mse500
spc300_REF_BOARD=spk300g
mse500_REF_BOARD=mse500
diff --git a/cleopatre/buildroot/Makefile b/cleopatre/buildroot/Makefile
index 86cd5fa6d6..6896034568 100644
--- a/cleopatre/buildroot/Makefile
+++ b/cleopatre/buildroot/Makefile
@@ -516,6 +516,7 @@ help:
@echo ' mpr520_defconfig - default HPAV configuration for MPR520 boards'
@echo ' mse500_defconfig - default HPAV configuration for MSE500 300 boards'
@echo ' mse500dini_300_defconfig - default HPAV configuration for MSE500 DINI 300 boards'
+ @echo ' msk500_defconfig - default HPAV configuration for MSK500 300 boards'
@echo ' scr300_defconfig - default HPAV configuration for SCR300 boards'
@echo ' scr310_defconfig - default HPAV configuration for SCR310 boards'
@echo ' spk300_defconfig - default HPAV configuration for SPK300 boards'
diff --git a/cleopatre/buildroot/target/device/Spidcom/Config.in b/cleopatre/buildroot/target/device/Spidcom/Config.in
index 5b67ca1519..9ee250f637 100644
--- a/cleopatre/buildroot/target/device/Spidcom/Config.in
+++ b/cleopatre/buildroot/target/device/Spidcom/Config.in
@@ -45,6 +45,13 @@ config BR2_TARGET_SPIDCOM_MSE500DINI_300
help
Support for the MSE500 DINI prototype (300 mode)
+config BR2_TARGET_SPIDCOM_MSK500
+ bool "MSK500 development board"
+ depends on BR2_arm
+ select BR2_TARGET_SPIDCOM_ARCH_MSE500
+ help
+ Support for the MSK500 MSE500 based device
+
config BR2_TARGET_SPIDCOM_SCR300
bool "SCR300 reference design board"
depends on BR2_arm
@@ -119,6 +126,7 @@ config BR2_TARGET_SPIDCOM_BOARD
default "mpr520" if BR2_TARGET_SPIDCOM_MPR520
default "mse500" if BR2_TARGET_SPIDCOM_MSE500
default "mse500dini_300" if BR2_TARGET_SPIDCOM_MSE500DINI_300
+ default "msk500" if BR2_TARGET_SPIDCOM_MSK500
default "scr300" if BR2_TARGET_SPIDCOM_SCR300
default "scr310" if BR2_TARGET_SPIDCOM_SCR310
default "spk300" if BR2_TARGET_SPIDCOM_SPK300
diff --git a/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base b/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
index ac4b999f4c..f3620e74e1 100644
--- a/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
+++ b/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
@@ -61,6 +61,7 @@ BR2_TARGET_SPIDCOM=y
# BR2_TARGET_SPIDCOM_MPR520 is not set
# BR2_TARGET_SPIDCOM_MSE500 is not set
# BR2_TARGET_SPIDCOM_MSE500DINI_300 is not set
+# BR2_TARGET_SPIDCOM_MSK500 is not set
# BR2_TARGET_SPIDCOM_SCR300 is not set
# BR2_TARGET_SPIDCOM_SCR310 is not set
# BR2_TARGET_SPIDCOM_SPK300 is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/common/linux26.config.base b/cleopatre/buildroot/target/device/Spidcom/common/linux26.config.base
index 57444587e1..4d1fe8e3b5 100644
--- a/cleopatre/buildroot/target/device/Spidcom/common/linux26.config.base
+++ b/cleopatre/buildroot/target/device/Spidcom/common/linux26.config.base
@@ -129,6 +129,7 @@ CONFIG_ARCH_SPC300=y
# CONFIG_MACH_MPR520 is not set
# CONFIG_MACH_MSE500 is not set
# CONFIG_MACH_MSE500DINI_300 is not set
+# CONFIG_MACH_MSK500 is not set
# CONFIG_MACH_SCR300 is not set
# CONFIG_MACH_SCR310 is not set
# CONFIG_MACH_SPK300 is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/msk500/defconfig.part b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/defconfig.part
new file mode 100644
index 0000000000..c1823c67ce
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/defconfig.part
@@ -0,0 +1,6 @@
+BR2_PROJECT="msk500"
+BR2_HOSTNAME="msk500"
+
+BR2_TARGET_SPIDCOM_MSK500=y
+
+BR2_PACKAGE_PMD=y
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/msk500/desc b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/desc
new file mode 100644
index 0000000000..b8c9980e97
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/desc
@@ -0,0 +1,18 @@
+busybox.config
+ common/busybox.config.base
+
+defconfig
+ common/defconfig.base
+ local/defconfig.part
+
+device_table.txt
+ common/device_table.txt
+
+linux26.config
+ common/linux26.config.base
+ common/linux26.config.chip_mse500
+ local/linux26.config.part
+
+target_skeleton
+ common/target_skeleton_base
+ local/target_skeleton_add
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/msk500/linux26.config.part b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/linux26.config.part
new file mode 100644
index 0000000000..80c777e806
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/linux26.config.part
@@ -0,0 +1,15 @@
+CONFIG_MACH_MSK500=y
+
+#
+# Power management options
+#
+CONFIG_PM=y
+# CONFIG_PM_LEGACY is not set
+# CONFIG_PM_DEBUG is not set
+CONFIG_PM_SLEEP=y
+CONFIG_SUSPEND=y
+CONFIG_SUSPEND_FREEZER=y
+# CONFIG_APM_EMULATION is not set
+
+CONFIG_REALTEK_PHY=y
+CONFIG_NETDEV_1000=y
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/msk500/target_skeleton_add/etc/network/interfaces b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/target_skeleton_add/etc/network/interfaces
new file mode 100644
index 0000000000..1a47285463
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/msk500/target_skeleton_add/etc/network/interfaces
@@ -0,0 +1,28 @@
+auto lo eth0 plc0 br0
+
+# Configure Loopback
+iface lo inet loopback
+
+# Configure Ethernet interface
+iface eth0 inet static
+ address 0.0.0.0
+ netmask 255.255.255.255
+
+iface eth1 inet static
+ address 0.0.0.0
+ netmask 255.255.255.255
+
+iface plc0 inet static
+ address 0.0.0.0
+ netmask 255.255.255.255
+
+iface br0 inet static
+ address 10.3.11.1
+ netmask 255.255.0.0
+ pre-up brctl addbr br0
+ pre-up brctl addif br0 eth0
+ pre-up brctl addif br0 plc0
+ pre-up brctl setfd br0 1
+ post-down brctl delif br0 eth0
+ post-down brctl delif br0 plc0
+ post-down brctl delbr br0
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig
index 4e51616675..a01bade849 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig
@@ -46,6 +46,13 @@ config MACH_MSE500DINI_300
help
Include support for SPiDCOM spc300 Prototype board platform (DINI).
+config MACH_MSK500
+ bool "Support MSK500 platform"
+ select CHIP_MSE500
+ select HAVE_SPC300_GPIO_USABLE_ALL
+ help
+ Include support for SPiDCOM msk500 development kit.
+
config MACH_SCR300
bool "Support SCR300 platform"
select CHIP_SPC300
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Makefile b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Makefile
index 93061f1e6d..cf33810cc0 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Makefile
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Makefile
@@ -17,6 +17,7 @@ obj-$(CONFIG_MACH_MCR500) += board-mse500.o
obj-$(CONFIG_MACH_MPR520) += board-mse500.o
obj-$(CONFIG_MACH_MSE500) += board-mse500.o
obj-$(CONFIG_MACH_MSE500DINI_300) += board-mse500dini_300.o
+obj-$(CONFIG_MACH_MSK500) += board-mse500.o
obj-$(CONFIG_MACH_SCR300) += board-scr300.o
obj-$(CONFIG_MACH_SCR310) += board-scr310.o
obj-$(CONFIG_MACH_SPK300) += board-spk300.o