diff options
author | Henryk Heisig <hyniu@o2.pl> | 2016-10-30 17:57:27 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-10-31 17:13:37 +0100 |
commit | 8cc0c34ef550ac2f842fe6811d32ac01af69d19f (patch) | |
tree | 3e77004c12dff9b8324634c039016d292e13c31a /target/linux/ar71xx/base-files | |
parent | 15a14cf1665ef3d8b5c77cce69b52d131340e3b3 (diff) | |
download | upstream-8cc0c34ef550ac2f842fe6811d32ac01af69d19f.tar.gz upstream-8cc0c34ef550ac2f842fe6811d32ac01af69d19f.tar.bz2 upstream-8cc0c34ef550ac2f842fe6811d32ac01af69d19f.zip |
ar71xx: Add support to Powerline ac TP-Link WPA8630
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 20 insertions, 2 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index a32ca9101e..01308b5f57 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -638,6 +638,11 @@ wnr612-v2) ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f" ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f" ;; +wpa8630) + ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0" + ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1" + ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0" + ;; wpn824n) ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0" ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index ab7404d4f3..e6489af876 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -398,6 +398,10 @@ ar71xx_setup_interfaces() ucidef_add_switch_port_attr "switch0" 2 led 9 ucidef_add_switch_port_attr "switch0" 5 led 2 ;; + wpa8630) + ucidef_add_switch "switch0" \ + "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4" + ;; wpj344) ucidef_add_switch "switch0" \ "0@eth0" "3:lan" "2:wan" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 475cb80397..8b038e47ee 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -43,7 +43,8 @@ get_status_led() { ap83|\ mr12|\ mr16|\ - nbg6616) + nbg6616|\ + wpa8630) status_led="$board:green:power" ;; ap96) 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 5a48b06a36..c95cfb9ec4 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 @@ -90,6 +90,10 @@ case "$FIRMWARE" in unifiac-pro) ath10kcal_extract "EEPROM" 20480 2116 ;; + wpa8630) + ath10kcal_extract "ART" 20480 2116 + ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1) + ;; esac ;; "ath10k/cal-pci-0000:01:00.0.bin") diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index f51d7db9c1..d7c4131f7b 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -1129,6 +1129,9 @@ ar71xx_board_detect() { *"WNR1000 V2") name="wnr1000-v2" ;; + *WPA8630) + name="wpa8630" + ;; *WPN824N) name="wpn824n" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 9c0f3f3bc5..3c7976d6bf 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -386,7 +386,8 @@ platform_check_image() { tl-wr842n-v3|\ tl-wr941nd-v5|\ tl-wr941nd-v6|\ - tl-wr941nd) + tl-wr941nd|\ + wpa8630) local magic_ver="0100" case "$board" in |