aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-01-26 17:45:33 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-01-26 17:45:33 +0000
commit3ec8148f9d99f31c8648c7a4aeb269f673a8deaa (patch)
treea0a4e6e3ac5976d0cc7f9d8a4e7d60b8eaf81aa1 /target/linux/ar71xx
parentfc9fbf2abb37e65a2cf07b3d2b07550ee53aee9d (diff)
downloadupstream-3ec8148f9d99f31c8648c7a4aeb269f673a8deaa.tar.gz
upstream-3ec8148f9d99f31c8648c7a4aeb269f673a8deaa.tar.bz2
upstream-3ec8148f9d99f31c8648c7a4aeb269f673a8deaa.zip
[ar71xx] tew-632brp: add WPS button
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14205 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
index 01bab6c179..31a5479149 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
@@ -1,7 +1,7 @@
/*
* TrendNET TEW-632BRP board support
*
- * Copyright (C) 2008 Gabor Juhos <juhosg@openwrt.org>
+ * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org>
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
#define TEW_632BRP_GPIO_LED_STATUS 1
#define TEW_632BRP_GPIO_LED_WPS 3
#define TEW_632BRP_GPIO_LED_WLAN 6
+#define TEW_632BRP_GPIO_BTN_WPS 12
#define TEW_632BRP_GPIO_BTN_RESET 21
#define TEW_632BRP_BUTTONS_POLL_INTERVAL 20
@@ -100,6 +101,12 @@ static struct gpio_button tew_632brp_gpio_buttons[] __initdata = {
.code = BTN_0,
.threshold = 5,
.gpio = TEW_632BRP_GPIO_BTN_RESET,
+ }, {
+ .desc = "wps",
+ .type = EV_KEY,
+ .code = BTN_1,
+ .threshold = 5,
+ .gpio = TEW_632BRP_GPIO_BTN_WPS,
}
};