From 1f71f2220d9b78ee5b319e1107eedb8f0d0c4c0e Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 17 Dec 2015 09:30:05 +0000 Subject: ar71xx: add support for TRENDnet TEW-823DRU Add support for TRENDnet TEW-823DRU: - cpu: QCA9558 @720MHz - flash: 16MB - ram: 256MB - 4+1 RJ45 100/1000Mbps - wifi: QCA9558 (bgn) and QCA9880-BR4A (ac) - 1x USB 2.0 Signed-off-by: Cezary Jackiewicz SVN-Revision: 47927 --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 4 ++++ target/linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 ++- target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k | 4 ++-- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 6 files changed, 13 insertions(+), 3 deletions(-) (limited to 'target/linux/ar71xx/base-files') 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 d4f226e085..ed2aeae65a 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -389,6 +389,10 @@ tew-732br) ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1" ;; +tew-823dru) + ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0" + ;; + tl-mr11u | \ tl-mr3020 | \ tl-mr3040 | \ 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 11c4341557..bfc898ce6d 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -43,6 +43,7 @@ ap147-010) ap136-020 |\ ap135-020 |\ +tew-823dru |\ tl-wr1043nd-v2 |\ wzr-450hp2) ucidef_set_interfaces_lan_wan "eth1" "eth0" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 0e1df108f0..fd57c55b1d 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -255,7 +255,8 @@ get_status_led() { status_led="trendnet:blue:wps" ;; tew-712br|\ - tew-732br) + tew-732br|\ + tew-823dru) status_led="trendnet:green:power" ;; tl-mr3020) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 54e6166d6d..5af7adf1af 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -746,6 +746,9 @@ ar71xx_board_detect() { *TEW-732BR) name="tew-732br" ;; + *TEW-823DRU) + name="tew-823dru" + ;; *"TL-WR1041N v2") name="tl-wr1041n-v2" ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k index 4da611a9f2..35a2fc9d3f 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k +++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k @@ -23,7 +23,7 @@ do_patch_ath10k_firmware() { # some boards have bogus mac in otp, patch the default mac in the firmware case $(ar71xx_board_name) in - dgl-5500-a1) + dgl-5500-a1 | tew-823dru) local mac mac=$(mtd_get_mac_ascii nvram wlan1_mac) @@ -42,7 +42,7 @@ do_patch_ath10k_firmware() { check_patch_ath10k_firmware() { case $(ar71xx_board_name) in - dgl-5500-a1) + dgl-5500-a1 | tew-823dru) do_patch_ath10k_firmware ;; esac diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index bb64ef81bc..7e564b45cc 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -231,6 +231,7 @@ platform_check_image() { tew-632brp | \ tew-712br | \ tew-732br | \ + tew-823dru | \ wrt400n | \ airgateway | \ airgatewaypro | \ -- cgit v1.2.3