aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files/etc
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-04-16 09:54:39 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-04-16 09:54:39 +0000
commit2705cda81389e84687fb0325d2bf6c8bc2756bee (patch)
tree43e62f4855251c4117b245bccebe1fb75534fa9e /target/linux/mvebu/base-files/etc
parent0926e4c22feb8b9f65d7fbf9deb880de031fd0a2 (diff)
downloadupstream-2705cda81389e84687fb0325d2bf6c8bc2756bee.tar.gz
upstream-2705cda81389e84687fb0325d2bf6c8bc2756bee.tar.bz2
upstream-2705cda81389e84687fb0325d2bf6c8bc2756bee.zip
mvebu: add support for the Linksys Caiman and Cobra
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45456
Diffstat (limited to 'target/linux/mvebu/base-files/etc')
-rw-r--r--target/linux/mvebu/base-files/etc/uci-defaults/01_leds10
-rw-r--r--target/linux/mvebu/base-files/etc/uci-defaults/02_network6
-rw-r--r--target/linux/mvebu/base-files/etc/uci-defaults/03_wireless2
3 files changed, 17 insertions, 1 deletions
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/01_leds b/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
index 8907a4b62c..50c2f8d231 100644
--- a/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
@@ -9,6 +9,16 @@
board=$(mvebu_board_name)
case "$board" in
+armada-385-linksys-caiman)
+ ucidef_set_led_netdev "wan" "WAN" "pca963x:caiman:white:wan" "eth0"
+ ucidef_set_led_usbdev "usb2" "USB2" "pca963x:caiman:white:usb2" "1-1"
+ ucidef_set_led_usbdev "usb3" "USB3" "pca963x:caiman:white:usb3_1" "2-1"
+ ;;
+armada-385-linksys-cobra)
+ ucidef_set_led_netdev "wan" "WAN" "pca963x:cobra:white:wan" "eth0"
+ ucidef_set_led_usbdev "usb2" "USB2" "pca963x:cobra:white:usb2" "1-1"
+ ucidef_set_led_usbdev "usb3" "USB3" "pca963x:cobra:white:usb3_1" "2-1"
+ ;;
armada-xp-linksys-mamba)
ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "eth1"
ucidef_set_led_usbdev "usb2" "USB2" "mamba:white:usb2" "1-1"
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/02_network b/target/linux/mvebu/base-files/etc/uci-defaults/02_network
index 75b0af79f6..73a3d8a1ac 100644
--- a/target/linux/mvebu/base-files/etc/uci-defaults/02_network
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/02_network
@@ -15,6 +15,12 @@ ucidef_set_interface_loopback
board=$(mvebu_board_name)
case "$board" in
+armada-385-linksys-caiman)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ;;
+armada-385-linksys-cobra)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ;;
armada-xp-linksys-mamba)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
ucidef_add_switch "switch0" "1" "1"
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless b/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
index 5eb3c901c2..c5d670a0ba 100644
--- a/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
@@ -10,7 +10,7 @@
board=$(mvebu_board_name)
case "$board" in
-armada-xp-linksys-mamba)
+armada-385-linksys-caiman|armada-385-linksys-cobra|armada-xp-linksys-mamba)
SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
case "$SKU" in
AP)