ar71xx: add user-space support for the OpenMesh A40
authorSven Eckelmann <sven.eckelmann@open-mesh.com>
Fri, 23 Sep 2016 07:36:43 +0000 (09:36 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 15 Feb 2017 08:35:52 +0000 (09:35 +0100)
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/lib/ar71xx.sh

index 1ec225cd62eb3f64aafd441c80a7f08b7bbc6c1d..f622929f7c792be690ab0adeb50d41f1b3c02ac2 100755 (executable)
@@ -11,6 +11,10 @@ board_config_update
 board=$(ar71xx_board_name)
 
 case "$board" in
+a40)
+       ucidef_set_led_default "status-red" "Status (red)" "a40:red:status" "0"
+       ucidef_set_led_default "status-blue" "Status (blue)" "a40:blue:status" "0"
+       ;;
 a60)
        ucidef_set_led_default "status-red" "Status (red)" "a60:red:status" "0"
        ucidef_set_led_default "status-blue" "Status (blue)" "a60:blue:status" "0"
index eac94d602d9b5620d5cfc788e35a86a7f76cdf93..10f84bf71716d4a174536e6b3ab7841e3041d512 100755 (executable)
@@ -118,6 +118,7 @@ ar71xx_setup_interfaces()
        wp543)
                ucidef_set_interface_lan "eth0"
                ;;
+       a40|\
        a60|\
        alfa-ap96|\
        alfa-nx|\
index 157a9ace13f7394d2af1056d5df346824542f028..7b8aac8f8e97d86178e917d70923d8a2a3849d5d 100644 (file)
@@ -8,6 +8,9 @@ get_status_led() {
        local board=$(ar71xx_board_name)
 
        case $board in
+       a40)
+               status_led="a40:green:status"
+               ;;
        a60)
                status_led="a60:green:status"
                ;;
index 79a651c47bc29735e21bcf84316027b5dbdb0fc2..b035535a42f997adfcd046ef518ef46585821633 100755 (executable)
@@ -382,6 +382,9 @@ ar71xx_board_detect() {
        *"Oolite V1.0")
                name="oolite"
                ;;
+       *"A40")
+               name="a40"
+               ;;
        *"A60")
                name="a60"
                ;;