aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/uci-defaults
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-09-01 13:21:49 +0000
committerJohn Crispin <blogic@openwrt.org>2014-09-01 13:21:49 +0000
commit9956d339e9803f3808473453071464acd5aa0fb1 (patch)
tree4eb4bcc85d38052f6ef359033c93afbc90c4211b /target/linux/ramips/base-files/etc/uci-defaults
parent8ef1c93002fd8a04903e6bba1a2dea018bd6af28 (diff)
downloadupstream-9956d339e9803f3808473453071464acd5aa0fb1.tar.gz
upstream-9956d339e9803f3808473453071464acd5aa0fb1.tar.bz2
upstream-9956d339e9803f3808473453071464acd5aa0fb1.zip
ramips: Add support for VoCore
This is based and tested on VoCore Alpha, but other stuff like status/eth LEDs are present on the final board revision + VoDock. All GPIOs are exported, except spi/i2c. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r41939 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42376 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network6
2 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index 77c2673f54..f01cb05ccd 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -154,6 +154,10 @@ case $board in
v11st-fe)
set_wifi_led "rt2800pci-phy0::radio"
;;
+ vocore)
+ ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
+ set_wifi_led "vocore:green:status"
+ ;;
w306r-v20)
set_wifi_led "rt2800pci-phy0::radio"
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 3ebf544993..66ad1352d5 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -163,6 +163,12 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "switch0" "2" "0t 5"
;;
+ vocore)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0 4 6t"
+ ;;
+
wcr-150gn)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"