aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-08-01 20:51:24 +0000
committerJohn Crispin <john@openwrt.org>2014-08-01 20:51:24 +0000
commit21845cb45da7b6da12fe977b38bfa68d4f72d9c1 (patch)
tree4dd22a22de081e295e8b9c5553d70eda0b55ea25 /target/linux/ramips/base-files
parent7d9bac5247ce79c0ac849ee35a74b54fb713a408 (diff)
downloadupstream-21845cb45da7b6da12fe977b38bfa68d4f72d9c1.tar.gz
upstream-21845cb45da7b6da12fe977b38bfa68d4f72d9c1.tar.bz2
upstream-21845cb45da7b6da12fe977b38bfa68d4f72d9c1.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> SVN-Revision: 41939
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network6
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index c9b7ded2ec..b095e52903 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -129,6 +129,9 @@ get_status_led() {
v22rw-2x2)
status_led="v22rw-2x2:green:security"
;;
+ vocore)
+ status_led="vocore:green:status"
+ ;;
w306r-v20)
status_led="w306r-v20:green:sys"
;;
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 e92a12e7ab..d820aeff26 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -150,6 +150,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 da7600c2c4..be70698b70 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -164,6 +164,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"
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index d188dd7bde..a6dcbca2fe 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -238,6 +238,9 @@ ramips_board_detect() {
*"V22RW-2X2")
name="v22rw-2x2"
;;
+ *"VoCore")
+ name="vocore"
+ ;;
*"W502U")
name="w502u"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 4a70691084..a39596d2bf 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -80,6 +80,7 @@ platform_check_image() {
w502u |\
wr6202 |\
v22rw-2x2 | \
+ vocore | \
wl341v3 | \
wl-330n | \
wl-330n3g | \