ar71xx: add user-space support for TP-Link TL-WDR4900 v2.0 board
authorGabor Juhos <juhosg@openwrt.org>
Wed, 19 Feb 2014 12:15:34 +0000 (12:15 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 19 Feb 2014 12:15:34 +0000 (12:15 +0000)
Patch-by: TenNinjas <tenninjas@tenninjas.ca>
Patchwork: http://patchwork.openwrt.org/patch/4849/
[juhosg:
  - use the Archer C7 specific LED setup instead of adding
    identical code]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39636

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 6e4445f4faebb06fe80255d132f9aa6a2df34ff0..dea3f811e83d8aeef7784cf42fa2a524aeae79ff 100755 (executable)
@@ -160,6 +160,7 @@ get_status_led() {
                status_led="tp-link:green:system"
                ;;
        archer-c7 | \
+       tl-wdr4900-v2 | \
        tl-mr10u | \
        tl-mr13u | \
        tl-wdr4300 | \
index 04ca3e26fb63e1ecd1f7904bf1a765fcbdb74b85..a986dbcf54ff929102cab4302f0944ee233af0bb 100755 (executable)
@@ -228,7 +228,8 @@ tl-wdr4300)
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
        ;;
 
-archer-c7)
+archer-c7|\
+tl-wdr4900-v2)
        ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
        ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
index dac75ae051afaf471c131c95d1ea686d8fe55a09..fd38ffa015adcaef657a02f5ae699e540c907dc9 100755 (executable)
@@ -46,7 +46,8 @@ tl-wr1043nd-v2)
        ucidef_add_switch_vlan "switch0" "2" "5 6"
        ;;
 
-archer-c7)
+archer-c7 |\
+tl-wdr4900-v2)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ucidef_add_switch "switch0" "1" "1"
        ucidef_add_switch_vlan "switch0" "1" "0 2 3 4 5"
index 3893747426569d0569399a0a864b114fa0354354..81a7591482b1b1bdfd657a18ba5f28a24ddb7090 100755 (executable)
@@ -183,6 +183,9 @@ tplink_board_detect() {
        "431000"*)
                model="TP-Link TL-WDR4310"
                ;;
+       "49000002")
+               model="TP-Link TL-WDR4900"
+               ;;
        "453000"*)
                model="MERCURY MW4530R"
                ;;
@@ -495,6 +498,9 @@ ar71xx_board_detect() {
        *"TL-WDR3600/4300/4310")
                name="tl-wdr4300"
                ;;
+       *"TL-WDR4900 v2")
+               name="tl-wdr4900-v2"
+               ;;
        *TL-WR741ND)
                name="tl-wr741nd"
                ;;
index b2181af5b571073ff66b0bbc00abb28ad015c6a9..0028e8a584598581639ca9246dc5e8a598ba602e 100755 (executable)
@@ -239,6 +239,7 @@ platform_check_image() {
        tl-wa901nd-v3 | \
        tl-wdr3500 | \
        tl-wdr4300 | \
+       tl-wdr4900-v2 | \
        tl-wr703n | \
        tl-wr710n | \
        tl-wr720n-v3 | \