aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-07-28 10:23:22 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-07-28 10:23:22 +0000
commitb49dc036e8b678333767b87136e8b2bbe68a5a2a (patch)
treeb53d5d13ce9be3df98d99451aa6dd6b43558deb3 /target
parent8dd30fa7758a7c47e4d56e052c41baf141fdbc56 (diff)
downloadupstream-b49dc036e8b678333767b87136e8b2bbe68a5a2a.tar.gz
upstream-b49dc036e8b678333767b87136e8b2bbe68a5a2a.tar.bz2
upstream-b49dc036e8b678333767b87136e8b2bbe68a5a2a.zip
ar71xx: TEW632BRP has buttons 'active low', fix board config
Looks like trunk@37090 has changed the logic that determines if router's button was pressed. This resulted in TEW632BRP always booting into failsafe mode because it detected pressed button (which was not pressed). Measure with voltmeter has shown that buttons on this router are actually active-low. This patch reflects this fact in board configuration and fixes 'load info failsafe mode' issue. Note: it looks like Trendnet TEW632BRP and a close relative to TEW-652BRP V1.0 and D-Link DIR-615C1, so same problem may exist on those routers as well. This patch doesn't affect routers other than 632BRP and unfortunately I do not have hardware to test this issue with other routers. This patch fixes #13893 and is tested on actuall Trendnet TEW632BRP. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37569
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tew-632brp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tew-632brp.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tew-632brp.c
index b76d4a7a00..855664e562 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tew-632brp.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tew-632brp.c
@@ -54,12 +54,14 @@ static struct gpio_keys_button tew_632brp_gpio_keys[] __initdata = {
.code = KEY_RESTART,
.debounce_interval = TEW_632BRP_KEYS_DEBOUNCE_INTERVAL,
.gpio = TEW_632BRP_GPIO_BTN_RESET,
+ .active_low = 1,
}, {
.desc = "wps",
.type = EV_KEY,
.code = KEY_WPS_BUTTON,
.debounce_interval = TEW_632BRP_KEYS_DEBOUNCE_INTERVAL,
.gpio = TEW_632BRP_GPIO_BTN_WPS,
+ .active_low = 1,
}
};