aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorVaclav Svoboda <svoboda@neng.cz>2017-03-16 01:43:43 +0100
committerPiotr Dymacz <pepe2k@gmail.com>2017-03-23 09:41:15 +0100
commit0d9adb4832e2c9ef4303b0b7aeff86c0ed4e5d89 (patch)
tree00b9421adc74d009cae813fbbf0127cf8a65b424 /target/linux/ar71xx/base-files
parent978998628fe98f8cfc81910b851e5a3dfd316bac (diff)
downloadupstream-0d9adb4832e2c9ef4303b0b7aeff86c0ed4e5d89.tar.gz
upstream-0d9adb4832e2c9ef4303b0b7aeff86c0ed4e5d89.tar.bz2
upstream-0d9adb4832e2c9ef4303b0b7aeff86c0ed4e5d89.zip
ar71xx: add support for TP-LINK TL-WR840N v2 and v3
This patch adds support for the TP-LINK TL-WR840N v2 and v3. - SoC: Qualcomm QCA9533-BL3A (650 MHz) - RAM: 32 MiB (Zentel A3S56D40GTP) - Flash: 4 MiB (v2: Macronix MX 25L323F) (v3: Winbond 25Q32FVSIG) - LAN: 4x 100M - WAN: 1x 100M Signed-off-by: Vaclav Svoboda <svoboda@neng.cz>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds6
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network2
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh2
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh2
5 files changed, 18 insertions, 0 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 fdbdddd299..082b6c478e 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -692,6 +692,12 @@ tl-wr941nd-v6)
ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
;;
+tl-wr840n-v2|\
+tl-wr840n-v3)
+ ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+ ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x1E"
+ ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+ ;;
tl-wr841n-v9|\
tl-wr841n-v11|\
tl-wr842n-v3)
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 0965d717ee..08ee584480 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -44,6 +44,8 @@ ar71xx_setup_interfaces()
tl-wdr3500|\
tl-wr741nd|\
tl-wr741nd-v4|\
+ tl-wr840n-v2|\
+ tl-wr840n-v3|\
tl-wr841n-v11|\
tl-wr841n-v9|\
tl-wr842n-v3|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index c8eafa5b0b..00f6a7db07 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -379,6 +379,8 @@ get_status_led() {
tl-wr741nd|\
tl-wr741nd-v4|\
tl-wa801nd-v3|\
+ tl-wr840n-v2|\
+ tl-wr840n-v3|\
tl-wr841n-v1|\
tl-wr841n-v7|\
tl-wr841n-v8|\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 32f3bfbbeb..267cb6ad58 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1100,6 +1100,12 @@ ar71xx_board_detect() {
*"TL-WR810N")
name="tl-wr810n"
;;
+ *"TL-WR840N v2")
+ name="tl-wr840n-v2"
+ ;;
+ *"TL-WR840N v3")
+ name="tl-wr840n-v3"
+ ;;
*"TL-WR841N v1")
name="tl-wr841n-v1"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 7a0bbb63b4..38a78830a0 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -428,6 +428,8 @@ platform_check_image() {
tl-wr802n-v1|\
tl-wr802n-v2|\
tl-wr810n|\
+ tl-wr840n-v2|\
+ tl-wr840n-v3|\
tl-wr841n-v11|\
tl-wr841n-v1|\
tl-wr841n-v7|\