ar71xx: user-space support for TL-WR841N/ND v8
authorGabor Juhos <juhosg@openwrt.org>
Thu, 4 Oct 2012 20:16:05 +0000 (20:16 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 4 Oct 2012 20:16:05 +0000 (20:16 +0000)
SVN-Revision: 33622

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/leds
target/linux/ar71xx/base-files/etc/uci-defaults/network
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 420d6902452a3e513f46c3826c17441535f31503..c3f97345c62bcaabb631f5a095023938837e0d7f 100755 (executable)
@@ -128,6 +128,7 @@ get_status_led() {
        tl-wr741nd-v4 | \
        tl-wr841n-v1 | \
        tl-wr841n-v7 | \
+       tl-wr841n-v8 | \
        tl-wr941nd)
                status_led="tp-link:green:system"
                ;;
index e776fbfa06d8622497d7c98194d2dfd93137cc0a..cb4b682994186eb8df82f1b54ba2065b6c632ff9 100755 (executable)
@@ -136,6 +136,15 @@ tl-wr741nd-v4)
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ;;
 
+tl-wr841n-v8)
+       ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
+       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
+       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
+       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+       ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+       ;;
+
 tl-wr941nd | \
 tl-wr1041n-v2)
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
index 8f00e1987df8ee8e0d8d4a942468fd5fa05e0387..cd9e997d898b28eabdf01965188ee67872e51092 100755 (executable)
@@ -121,6 +121,12 @@ tl-wr941nd)
        ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
        ;;
 
+tl-wr841n-v8)
+       ucidef_set_interfaces_lan_wan "eth1" "eth0"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
+       ;;
+
 wrt160nl)
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
        ucidef_add_switch "eth0" "1" "1"
index 3ba23b787cbd75a6c89b373da90aa66f90f98620..f3c32555fe59bd7841b84456ca847309de7285a9 100755 (executable)
@@ -357,6 +357,9 @@ ar71xx_board_detect() {
        *"TL-WR841N/ND v7")
                name="tl-wr841n-v7"
                ;;
+       *"TL-WR841N/ND v8")
+               name="tl-wr841n-v8"
+               ;;
        *TL-WR941ND)
                name="tl-wr941nd"
                ;;
index cdd463edbeefe1f0caac3938eb4162d5035f367e..8ec958d79812bbf9945bad92e8a2a64cf9816dae 100755 (executable)
@@ -152,6 +152,7 @@ platform_check_image() {
        tl-wr741nd-v4 | \
        tl-wr841n-v1 | \
        tl-wr841n-v7 | \
+       tl-wr841n-v8 | \
        tl-wr941nd | \
        tl-wr1041n-v2 | \
        tl-wr1043nd | \