ar71xx: add user space support for the TL-WDR4300
authorGabor Juhos <juhosg@openwrt.org>
Tue, 19 Jun 2012 11:51:18 +0000 (11:51 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 19 Jun 2012 11:51:18 +0000 (11:51 +0000)
SVN-Revision: 32460

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 6cee29f3e86e3997348a85282a7dce94b7906a31..5c84f82ca3a5d8caebd9b40868aa79c77dbd1925 100755 (executable)
@@ -121,6 +121,7 @@ get_status_led() {
        tl-wr941nd)
                status_led="tp-link:green:system"
                ;;
+       tl-wdr4300 | \
        tl-wr703n)
                status_led="tp-link:blue:system"
                ;;
index 0a111cb565d985c2aac2ba51aee5771f32abc7d1..041522187219489c1f81fe21f0c3aea493d8d319 100755 (executable)
@@ -84,6 +84,12 @@ tl-wa901nd)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
        ;;
 
+tl-wdr4300)
+       ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
+       ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
+       ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
+       ;;
+
 tl-wr741nd)
        ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
        ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
index 993e0247826eece90131c17c6cb45015d7fb14fb..521cffdbfd33b5fcd9af731d6d80b04ae1d68e90 100755 (executable)
@@ -89,6 +89,7 @@ ap113)
        ucidef_add_switch_vlan "eth0" "2" "0t 2"
        ;;
 
+tl-wdr4300|\
 tl-wr1041n-v2)
        ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
        ucidef_add_switch "eth0" "1" "1"
index d3eca415082e2c8c3a5525f345e6cccde59cc48f..430242ed4002195e1d755022852b869d25c3c284 100755 (executable)
@@ -123,6 +123,9 @@ tplink_board_detect() {
        "342000"*)
                model="TP-Link TL-MR3420"
                ;;
+       "430000"*)
+               model="TP-Link TL-WDR4300"
+               ;;
        *)
                hwver=""
                ;;
@@ -309,6 +312,9 @@ ar71xx_board_detect() {
        *"TL-WA901ND v2")
                name="tl-wa901nd-v2"
                ;;
+       *TL-WDR4300)
+               name="tl-wdr4300"
+               ;;
        *TL-WR741ND)
                name="tl-wr741nd"
                ;;
index 10ba6f8542b5ec72bb7b36fe9f83a0fc0579cf6c..054d59171381b55d291428286373d47e71ccb03e 100755 (executable)
@@ -131,6 +131,7 @@ platform_check_image() {
        tl-mr3420 | \
        tl-wa901nd | \
        tl-wa901nd-v2 | \
+       tl-wdr4300 | \
        tl-wr703n | \
        tl-wr741nd | \
        tl-wr741nd-v4 | \