From 9ade0a827530ed6c7ae4b7e95486ffdae84cdae3 Mon Sep 17 00:00:00 2001 From: Yacine Belkadi Date: Mon, 18 Feb 2013 14:24:24 +0100 Subject: 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. --- .../buildroot/target/device/Spidcom/Config.in | 8 +++++++ .../target/device/Spidcom/common/defconfig.base | 1 + .../device/Spidcom/common/linux26.config.base | 1 + .../device/Spidcom/targets/msk500/defconfig.part | 6 +++++ .../target/device/Spidcom/targets/msk500/desc | 18 ++++++++++++++ .../Spidcom/targets/msk500/linux26.config.part | 15 ++++++++++++ .../target_skeleton_add/etc/network/interfaces | 28 ++++++++++++++++++++++ 7 files changed, 77 insertions(+) create mode 100644 cleopatre/buildroot/target/device/Spidcom/targets/msk500/defconfig.part create mode 100644 cleopatre/buildroot/target/device/Spidcom/targets/msk500/desc create mode 100644 cleopatre/buildroot/target/device/Spidcom/targets/msk500/linux26.config.part create mode 100644 cleopatre/buildroot/target/device/Spidcom/targets/msk500/target_skeleton_add/etc/network/interfaces (limited to 'cleopatre/buildroot/target/device') 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 -- cgit v1.2.3