aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorThibaut VARÈNE <hacks@slashdirt.org>2018-07-29 12:14:57 +0200
committerJohn Crispin <john@phrozen.org>2018-07-30 10:35:11 +0200
commite99f760235bb45716018faab52d31ce8165f49a0 (patch)
tree923a0177166cf07d31d5f8ed370891c79de4d355 /target/linux/ar71xx/base-files/etc
parent03562bfcdb1acc4be33e72a7adf138c135720eab (diff)
downloadupstream-e99f760235bb45716018faab52d31ce8165f49a0.tar.gz
upstream-e99f760235bb45716018faab52d31ce8165f49a0.tar.bz2
upstream-e99f760235bb45716018faab52d31ce8165f49a0.zip
ar71xx: rbspi: fix RB wAP AC gpio conflict and LED
e15c63a37574bd15ce3a6636c2f04741ab76f7b9 introduced code that was trying to register GPIO 1 as both an LED and a button. The OEM source makes it clear that LED1 is not wired to the SoC GPIOs. GPIO 1 is the reset button. Furthermore the (green) power led default state should also be defined, (matching OEM source), and it should be used by diag.sh since it's currently the only software-controllable LED. This patch fixes these issues and renames the corresponding #defines for clarity Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index d3cdc81b39..280b83b413 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -384,7 +384,8 @@ get_status_led() {
rb-912uag-2hpnd|\
rb-912uag-5hpnd|\
rb-sxt2n|\
- rb-sxt5n)
+ rb-sxt5n|\
+ rb-wapg-5hact2hnd)
status_led="rb:green:power"
;;
re355|\