diff options
author | Ludwig Thomeczek <ledesrc@wxorx.net> | 2016-12-16 12:50:34 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-12-20 14:38:48 +0100 |
commit | 1a4d07c2c534588cd7c8fb8bd479eb952c213dba (patch) | |
tree | 394d143191428cb1ad22aac2fe0324e50da7ce64 /target/linux/ar71xx/base-files/etc | |
parent | 51740990cd1d5375a566454e692b479986cba958 (diff) | |
download | upstream-1a4d07c2c534588cd7c8fb8bd479eb952c213dba.tar.gz upstream-1a4d07c2c534588cd7c8fb8bd479eb952c213dba.tar.bz2 upstream-1a4d07c2c534588cd7c8fb8bd479eb952c213dba.zip |
ar71xx: add support for TP-LINK WR1043ND v4
Signed-off-by: Ludwig Thomeczek <ledesrc@wxorx.net>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/01_leds | 9 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/02_network | 6 | ||||
-rw-r--r-- | target/linux/ar71xx/base-files/etc/diag.sh | 1 |
3 files changed, 15 insertions, 1 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 a840e2f4cb..8db964fc6b 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -629,6 +629,15 @@ tl-wr1043nd-v2) ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1" ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" ;; +tl-wr1043nd-v4) + ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1" + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" + ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20" + ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10" + ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04" + ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" + ;; tl-wr2543n) ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1" ;; 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 89076055c3..d163f6035f 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -299,7 +299,8 @@ ar71xx_setup_interfaces() ;; dir-869-a1|\ epg5000|\ - esr1750) + esr1750|\ + tl-wr1043nd-v4) ucidef_add_switch "switch0" \ "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" ;; @@ -459,6 +460,9 @@ ar71xx_setup_macs() lan_mac=$(mtd_get_mac_binary caldata 0) wan_mac=$(mtd_get_mac_binary caldata 6) ;; + tl-wr1043nd-v4) + wan_mac=$(mtd_get_mac_binary config 0x1017c) + ;; esr900) wan_mac=$(mtd_get_mac_ascii u-boot-env "wanaddr") ;; diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index d9d8a2953e..ff605ae0c4 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -346,6 +346,7 @@ get_status_led() { tl-wr1041n-v2|\ tl-wr1043nd|\ tl-wr1043nd-v2|\ + tl-wr1043nd-v4|\ tl-wr741nd|\ tl-wr741nd-v4|\ tl-wa801nd-v3|\ |