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>
Tue, 14 Feb 2017 11:18:05 +0000 (12:18 +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 c2737bd460342a275a4078b2f4d757b9db50e5a5..7493c6ccbafd36e2a7c33dce892a496f13a7fa52 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 92c2af7978ca7fb8f3656a1932b44e66625163fe..5f80feffdb6d66427a190a378d1545a54451a96b 100755 (executable)
@@ -120,6 +120,7 @@ ar71xx_setup_interfaces()
        wp543)
                ucidef_set_interface_lan "eth0"
                ;;
+       a40|\
        a60|\
        alfa-ap96|\
        alfa-nx|\
index 871a12b9bdea82a2cf7f4d402c318c0c243e43a4..82cf6c5a2e505fb73fa7436c5344980a08ee611e 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 4781278948e45fb6758ac68f721a4ae8c12b9d84..b8ec3254092165bf7c0a7966716aafe5bc64a4fe 100755 (executable)
@@ -382,6 +382,9 @@ ar71xx_board_detect() {
        *"Oolite V1.0")
                name="oolite"
                ;;
+       *"A40")
+               name="a40"
+               ;;
        *"A60")
                name="a60"
                ;;