AA: ar71xx: add user-space part for the CAP4200AG
authorGabor Juhos <juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:40 +0000 (12:24 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:40 +0000 (12:24 +0000)
Backport of r33957.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33978

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

index c371a1f9dd5b556dbc61dcdd309dc80ef8a085a6..788b628a7658cd39985118e423bc49a7570b3a6a 100755 (executable)
@@ -54,6 +54,9 @@ get_status_led() {
        bullet-m | rocket-m | nano-m | nanostation-m)
                status_led="ubnt:green:link4"
                ;;
+       cap4200ag)
+               status_led="senao:green:pwr"
+               ;;
        db120)
                status_led="db120:green:status"
                ;;
index ca912c70cff6b95da7f99cbdcf3fe8fcb7d9603f..4137f987455ac8605039514db9e641a682efc859 100755 (executable)
@@ -32,6 +32,12 @@ ap113)
        ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "1-1"
        ;;
 
+cap4200ag)
+       ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
+       ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
+       ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
+       ;;
+
 db120)
        ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1"
        ;;
index 4767fc3a257bb34b412bc7a698425534cc3a26fa..105f0e93f968bea0e268b4186fb9d04f25fb0974 100755 (executable)
@@ -142,6 +142,7 @@ wzr-hp-g300nh)
 all0305 |\
 aw-nr580 |\
 bullet-m |\
+cap4200ag |\
 eap7660d |\
 rb-411 |\
 tl-mr11u |\
index 14bd581d24c50d0d775286f883e2a85b5db2cad4..430ef8c68d1edc4246893d8e36f329997427a4ac 100755 (executable)
@@ -189,6 +189,9 @@ ar71xx_board_detect() {
        *AW-NR580)
                name="aw-nr580"
                ;;
+       *CAP4200AG)
+               name="cap4200ag"
+               ;;
        *"DB120 reference board")
                name="db120"
                ;;