summaryrefslogtreecommitdiff
path: root/cleopatre/buildroot/target
diff options
context:
space:
mode:
authorYacine Belkadi2013-02-13 16:06:32 +0100
committerYacine Belkadi2013-03-06 15:36:28 +0100
commit4a419e4cb576660fd47b8be5fa5a7eef3b0add05 (patch)
treef8214ebdd79c993460430188382b54a633e3c041 /cleopatre/buildroot/target
parent9ade0a827530ed6c7ae4b7e95486ffdae84cdae3 (diff)
cleo/buildroot/target/Spidcom: add mcr510, closes #3648
The mcr510 board was present in EoC but not in AV. Add it to AV.
Diffstat (limited to 'cleopatre/buildroot/target')
-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/mcr510/defconfig.part6
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/mcr510/desc18
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/mcr510/linux26.config.part3
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/mcr510/target_skeleton_add/etc/network/interfaces24
7 files changed, 61 insertions, 0 deletions
diff --git a/cleopatre/buildroot/target/device/Spidcom/Config.in b/cleopatre/buildroot/target/device/Spidcom/Config.in
index 9ee250f637..7932e75405 100644
--- a/cleopatre/buildroot/target/device/Spidcom/Config.in
+++ b/cleopatre/buildroot/target/device/Spidcom/Config.in
@@ -24,6 +24,13 @@ config BR2_TARGET_SPIDCOM_MCR500
help
Support for the MCR500
+config BR2_TARGET_SPIDCOM_MCR510
+ bool "MCR510 reference design board"
+ depends on BR2_arm
+ select BR2_TARGET_SPIDCOM_ARCH_MSE500
+ help
+ Support for the MCR510
+
config BR2_TARGET_SPIDCOM_MPR520
bool "MPR520 development board"
depends on BR2_arm
@@ -123,6 +130,7 @@ config BR2_TARGET_SPIDCOM_BOARD
string
default "arizona" if BR2_TARGET_SPIDCOM_ARIZONA
default "mcr500" if BR2_TARGET_SPIDCOM_MCR500
+ default "mcr510" if BR2_TARGET_SPIDCOM_MCR510
default "mpr520" if BR2_TARGET_SPIDCOM_MPR520
default "mse500" if BR2_TARGET_SPIDCOM_MSE500
default "mse500dini_300" if BR2_TARGET_SPIDCOM_MSE500DINI_300
diff --git a/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base b/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
index f3620e74e1..c5237d9720 100644
--- a/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
+++ b/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
@@ -58,6 +58,7 @@ BR2_TARGET_SPIDCOM=y
#
# BR2_TARGET_SPIDCOM_ARIZONA is not set
# BR2_TARGET_SPIDCOM_MCR500 is not set
+# BR2_TARGET_SPIDCOM_MCR510 is not set
# BR2_TARGET_SPIDCOM_MPR520 is not set
# BR2_TARGET_SPIDCOM_MSE500 is not set
# BR2_TARGET_SPIDCOM_MSE500DINI_300 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 4d1fe8e3b5..1d3c66994e 100644
--- a/cleopatre/buildroot/target/device/Spidcom/common/linux26.config.base
+++ b/cleopatre/buildroot/target/device/Spidcom/common/linux26.config.base
@@ -126,6 +126,7 @@ CONFIG_ARCH_SPC300=y
#
# CONFIG_MACH_ARIZONA is not set
# CONFIG_MACH_MCR500 is not set
+# CONFIG_MACH_MCR510 is not set
# CONFIG_MACH_MPR520 is not set
# CONFIG_MACH_MSE500 is not set
# CONFIG_MACH_MSE500DINI_300 is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/defconfig.part b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/defconfig.part
new file mode 100644
index 0000000000..5020968475
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/defconfig.part
@@ -0,0 +1,6 @@
+BR2_PROJECT="mcr510"
+BR2_HOSTNAME="mcr510"
+
+BR2_TARGET_SPIDCOM_MCR510=y
+
+# BR2_PACKAGE_PMD is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/desc b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/desc
new file mode 100644
index 0000000000..b8c9980e97
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/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/mcr510/linux26.config.part b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/linux26.config.part
new file mode 100644
index 0000000000..845ee4f09d
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/linux26.config.part
@@ -0,0 +1,3 @@
+CONFIG_MACH_MCR510=y
+
+CONFIG_NETDEV_1000=y
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/target_skeleton_add/etc/network/interfaces b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/target_skeleton_add/etc/network/interfaces
new file mode 100644
index 0000000000..b27448f747
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mcr510/target_skeleton_add/etc/network/interfaces
@@ -0,0 +1,24 @@
+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 plc0 inet static
+ address 0.0.0.0
+ netmask 255.255.255.255
+
+iface br0 inet static
+ address 10.3.12.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