diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-04-13 08:29:07 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-04-13 08:29:07 +0000 |
commit | fb913e51569317905ab47afa9078003c8dcadae6 (patch) | |
tree | 852ec992af40c142adcf39d26ed80378d1fd2ddf /target/linux | |
parent | fe8848910739865c381a29a4030f25ed26087a29 (diff) | |
download | upstream-fb913e51569317905ab47afa9078003c8dcadae6.tar.gz upstream-fb913e51569317905ab47afa9078003c8dcadae6.tar.bz2 upstream-fb913e51569317905ab47afa9078003c8dcadae6.zip |
ar71xx: add user-space support for the ZyXEL NBG6716 board
Signed-off-by: André Valentin <avalentin@marcant.net>
Patchwork: http://patchwork.openwrt.org/patch/5101/
[juhosg: use zyxel prefix in LED names]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40500 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
4 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index d81173dff6..7647039515 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -94,6 +94,9 @@ get_status_led() { nbg460n_550n_550nh) status_led="nbg460n:green:power" ;; + nbg6716) + status_led="nbg6716:white:power" + ;; om2p | \ om2p-hs | \ om2p-lc) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index a1078695e2..db60cee9dd 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -142,6 +142,14 @@ nbg460n_550n_550nh) ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt" ;; +nbg6716) + ucidef_set_led_netdev "wan" "WAN" "zyxel:white:internet" "eth1" + ucidef_set_led_wlan "wlan" "WLAN" "zyxel:white:wifi2g" "phy1tpt" + ucidef_set_led_wlan "wlan5" "WLAN5" "zyxel:white:wifi5g" "phy0tpt" + ucidef_set_led_usbdev "usb1" "USB1" "zyxel:white:usb0" "1-1" + ucidef_set_led_usbdev "usb2" "USB2" "zyxel:white:usb1" "2-1" + ;; + om2p | \ om2p-hs | \ om2p-lc) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index a78f7f9042..62373e43e1 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -86,6 +86,13 @@ nbg460n_550n_550nh) ucidef_add_switch_vlan "switch0" "0" "0 1 2 3 5" ;; +nbg6716) + ucidef_set_interfaces_lan_wan "eth0.1" "eth1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4" + ucidef_add_switch_vlan "switch0" "2" "5 6" + ;; + rb-433 |\ rb-433u) ucidef_set_interfaces_lan_wan "eth1" "eth0" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index a2bbefd9b7..02c46f9b94 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -352,6 +352,9 @@ ar71xx_board_detect() { *"NBG460N/550N/550NH") name="nbg460n_550n_550nh" ;; + *"Zyxel NBG6716") + name="nbg6716" + ;; *OM2P) name="om2p" ;; |