ar71xx: add user-space support for MR3420v2
authorGabor Juhos <juhosg@openwrt.org>
Mon, 11 Mar 2013 15:55:22 +0000 (15:55 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 11 Mar 2013 15:55:22 +0000 (15:55 +0000)
Patch-by: Dmytro <dioptimizer@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3442/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35962

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 c5ed857cf83412769f8fbc69daf468662c5b9fc0..c44d61e35e9305e4cbf5f447e72cc77d5b64bff2 100755 (executable)
@@ -118,6 +118,7 @@ get_status_led() {
        tl-mr3220 | \
        tl-mr3220-v2 | \
        tl-mr3420 | \
+       tl-mr3420-v2 | \
        tl-wa901nd | \
        tl-wa901nd-v2 | \
        tl-wr1041n-v2 | \
index e3f4c17d6fe1b31509baa97d7bd5399a3f101e0d..063f94682abadab087d41daa99dfc92e0e682ac7 100755 (executable)
@@ -127,6 +127,16 @@ tl-mr3220-v2)
        ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
        ;;
 
+tl-mr3420-v2)
+       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"
+       ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
+       ;;
+
 tl-wa901nd)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
        ;;
index bc98982f37008b340fbb7b3da2230b8790dddb49..d9731064ec29299ca40ca68ab80b6fb461855d70 100755 (executable)
@@ -151,6 +151,7 @@ tl-wr941nd)
        ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
        ;;
 
+tl-mr3420-v2 |\
 tl-wr841n-v8)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ucidef_add_switch "switch0" "1" "1"
index 93f3a81001acfbe89e62123c29c658b25955e645..a9e063ba4923a854636d28016d60cbc0a4d9c31c 100755 (executable)
@@ -381,6 +381,9 @@ ar71xx_board_detect() {
        *TL-MR3420)
                name="tl-mr3420"
                ;;
+       *"TL-MR3420 v2")
+               name="tl-mr3420-v2"
+               ;;
        *TL-WA7510N)
                name="tl-wa7510n"
                ;;
index d2538e2172e9c5f64d27af66ad0ab35de6becbad..8f2f610d7d92e0bf6b5a103bd96fda91466733c0 100755 (executable)
@@ -159,6 +159,7 @@ platform_check_image() {
        tl-mr3220 | \
        tl-mr3220-v2 | \
        tl-mr3420 | \
+       tl-mr3420-v2 | \
        tl-wa7510n | \
        tl-wa901nd | \
        tl-wa901nd-v2 | \