aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@open-mesh.com>2016-09-23 09:36:43 +0200
committerJohn Crispin <john@phrozen.org>2017-02-14 12:18:05 +0100
commit640f9158e2bd49e0ee61d9db3eaa77dc8882aae3 (patch)
tree4473046cfd711845723b78135a4723b7cd5bf2be /target
parent5e61a8331d53e7119ab1e616808476f585220a6d (diff)
downloadupstream-640f9158e2bd49e0ee61d9db3eaa77dc8882aae3.tar.gz
upstream-640f9158e2bd49e0ee61d9db3eaa77dc8882aae3.tar.bz2
upstream-640f9158e2bd49e0ee61d9db3eaa77dc8882aae3.zip
ar71xx: add user-space support for the OpenMesh A40
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
4 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index c2737bd460..7493c6ccba 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -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"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 92c2af7978..5f80feffdb 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -120,6 +120,7 @@ ar71xx_setup_interfaces()
wp543)
ucidef_set_interface_lan "eth0"
;;
+ a40|\
a60|\
alfa-ap96|\
alfa-nx|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 871a12b9bd..82cf6c5a2e 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -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"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 4781278948..b8ec325409 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -382,6 +382,9 @@ ar71xx_board_detect() {
*"Oolite V1.0")
name="oolite"
;;
+ *"A40")
+ name="a40"
+ ;;
*"A60")
name="a60"
;;