ar71xx: TEW-712BR user space support
authorGabor Juhos <juhosg@openwrt.org>
Wed, 22 Aug 2012 20:12:24 +0000 (20:12 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 22 Aug 2012 20:12:24 +0000 (20:12 +0000)
SVN-Revision: 33232

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 406d0b1d1c39f1c0fc480ac32c3a2f945dc73d8c..6759cf04374dc63977b00bfabdb18f57634a5ad4 100755 (executable)
@@ -112,6 +112,9 @@ get_status_led() {
        tew-673gru)
                status_led="trendnet:blue:wps"
                ;;
+       tew-712br)
+               status_led="trendnet:green:power"
+               ;;
        tl-mr3020)
                status_led="tp-link:green:wps"
                ;;
index 0f17f9b8d04bbb1f33244c30d980502aba4367db..5e2548e52068670eda7c44e5edd92dc243d9e781 100755 (executable)
@@ -76,6 +76,15 @@ om2p-lc)
        ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
        ;;
 
+tew-712br)
+       ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
+       ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
+       ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
+       ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
+       ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
+       ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
+       ;;
+
 tl-mr11u | \
 tl-mr3020)
        ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
index 31d757233869f5ba3a80bc115d3b347dbd009368..440771641b9884cb81bd7987be3b844d68c34296 100755 (executable)
@@ -167,6 +167,7 @@ ja76pf |\
 rb-750 |\
 rb-751 |\
 tew-632brp |\
+tew-712br |\
 tl-mr3220 |\
 tl-mr3420 |\
 tl-wr741nd |\
index bb92b961443d3ad6969624b2b27c2d92342520e2..7df2eec0809ea8294f4a621477b1375fc6e6dd02 100755 (executable)
@@ -300,6 +300,9 @@ ar71xx_board_detect() {
        *TEW-673GRU)
                name="tew-673gru"
                ;;
+       *TEW-712BR)
+               name="tew-712br"
+               ;;
        *"TL-WR1041N v2")
                name="tl-wr1041n-v2"
                ;;
index f1c0164ee3f9be15bcb46dccf1fa0b73a19a1590..b762f6bab15e0b1309ddaf107b9a962a631c0ae0 100755 (executable)
@@ -106,6 +106,7 @@ platform_check_image() {
        mzk-w300nh | \
        tew-632brp | \
        tew-673gru | \
+       tew-712br | \
        wrt400n | \
        airrouter | \
        bullet-m | \