ar71xx: add user-space support for TP-LINK Archer C7 board
authorGabor Juhos <juhosg@openwrt.org>
Thu, 30 May 2013 16:23:09 +0000 (16:23 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 30 May 2013 16:23:09 +0000 (16:23 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36789

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 ed269b275a8afb14833ae8d13376d0f7e1cff599..7b6421b1dfa337d3b3d18e6b8282dee7a6900f7e 100755 (executable)
@@ -132,6 +132,7 @@ get_status_led() {
        tl-wr941nd)
                status_led="tp-link:green:system"
                ;;
+       archer-c7 | \
        tl-wdr4300 | \
        tl-wr703n | \
        tl-wr720n-v3)
index 6e3e37092abc6954206f6631431d45b257b8d48e..c9bcedd5b94ba9b6ff02e137c6b25f59ed69cb12 100755 (executable)
@@ -156,6 +156,12 @@ tl-wdr4300)
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
        ;;
 
+archer-c7)
+       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"
+       ;;
+
 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 a9a3ff2e9b1734eed9420aec6ee19d6efd9e5c90..6f1a837aed9dffec0b3b95610bd49c41ab449a50 100755 (executable)
@@ -37,7 +37,8 @@ ap136-010)
        ;;
 
 ap136-020 |\
-ap135-020)
+ap135-020 |\
+archer-c7)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ucidef_add_switch "switch0" "1" "1"
        ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
index 7cb015d77b5781fb6d996f7e46bf3ade9ca16468..31c56aa4482f1658d470f02aa81ef3f9c55e69df 100755 (executable)
@@ -222,6 +222,9 @@ ar71xx_board_detect() {
        *AP83)
                name="ap83"
                ;;
+       *"Archer C7")
+               name="archer-c7"
+               ;;
        *"Atheros AP96")
                name="ap96"
                ;;
index 817123b6d730d54e85cf242cf33162a76bb999df..26b855f0a3c4f04cd9258b6d353e40582fd1bc88 100755 (executable)
@@ -154,6 +154,8 @@ platform_check_image() {
                platform_check_image_openmesh "$magic_long" "$1" && return 0
                return 1
                ;;
+
+       archer-c7 | \
        tl-mr11u | \
        tl-mr3020 | \
        tl-mr3040 | \