From ae7e7239b864c00b1e6c8b7856f1770a56c38c29 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 7 Nov 2015 12:51:39 +0000 Subject: ar71xx: Add support for ZyXEL NBG6616. Signed-off-by: Benjamin Berg SVN-Revision: 47405 --- target/linux/ar71xx/base-files/etc/diag.sh | 5 ++++- .../base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 2 ++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 17 ++++++++++++----- .../linux/ar71xx/base-files/etc/uci-defaults/02_network | 1 + 4 files changed, 19 insertions(+), 6 deletions(-) (limited to 'target/linux/ar71xx/base-files/etc') diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 1375f38b79..2f489d8f94 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -173,8 +173,11 @@ get_status_led() { nbg460n_550n_550nh) status_led="nbg460n:green:power" ;; + nbg6616) + status_led="nbg6616:green:power" + ;; nbg6716) - status_led="zyxel:white:power" + status_led="nbg6716:white:power" ;; om2p | \ om2pv2 | \ diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index f53c853841..74c3417688 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -84,8 +84,10 @@ case "$FIRMWARE" in ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2) ;; + nbg6616 | \ nbg6716) ath10kcal_extract "RFdata" 20480 2116 + ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2) ;; rb-911g-5hpacd) ath10kcal_from_file "/sys/firmware/routerboot/ext_wlan_data" 20480 2116 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 abed456cd6..b269181472 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -306,12 +306,19 @@ nbg460n_550n_550nh) ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt" ;; +nbg6616) + ucidef_set_led_wlan "wlan" "WLAN" "nbg6616:green:wifi2g" "phy1tpt" + ucidef_set_led_wlan "wlan5" "WLAN5" "nbg6616:green:wifi5g" "phy0tpt" + ucidef_set_led_usbdev "usb1" "USB1" "nbg6616:green:usb1" "1-1" + ucidef_set_led_usbdev "usb2" "USB2" "nbg6616:green:usb2" "2-1" + ;; + 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:usb1" "2-1" - ucidef_set_led_usbdev "usb2" "USB2" "zyxel:white:usb2" "1-1" + ucidef_set_led_netdev "wan" "WAN" "nbg6716:white:internet" "eth1" + ucidef_set_led_wlan "wlan" "WLAN" "nbg6716:white:wifi2g" "phy1tpt" + ucidef_set_led_wlan "wlan5" "WLAN5" "nbg6716:white:wifi5g" "phy0tpt" + ucidef_set_led_usbdev "usb1" "USB1" "nbg6716:white:usb1" "1-1" + ucidef_set_led_usbdev "usb2" "USB2" "nbg6716:white:usb2" "2-1" ;; om2p | \ 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 f6ac89118f..5e93835502 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -134,6 +134,7 @@ nbg460n_550n_550nh) ucidef_add_switch_vlan "switch0" "0" "0 1 2 3 5" ;; +nbg6616 |\ nbg6716) ucidef_set_interfaces_lan_wan "eth0.1" "eth1" ucidef_add_switch "switch0" "1" "1" -- cgit v1.2.3