aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2008-07-31 00:38:08 -0400
committerLennert Buytenhek <buytenh@marvell.com>2008-08-09 09:17:28 -0400
commit5cebbd09fc06f4159f10f9f86bbd1517ac0279a2 (patch)
tree7305122f0c2f8dc0c935a9de7cea43d6f98e85c7
parent28ca8c802f71283d610656a207f3325c09e4585e (diff)
[ARM] Orion: Export the reset button of the QNAP TS-409
The reset button on the QNAP TS-409 is available through gpio. Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
-rw-r--r--arch/arm/mach-orion5x/ts409-setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-orion5x/ts409-setup.c b/arch/arm/mach-orion5x/ts409-setup.c
index 57d460c0199..b27d2b76208 100644
--- a/arch/arm/mach-orion5x/ts409-setup.c
+++ b/arch/arm/mach-orion5x/ts409-setup.c
@@ -208,10 +208,16 @@ static struct platform_device ts409_leds = {
208 * Power button is attached to the PIC microcontroller 208 * Power button is attached to the PIC microcontroller
209 ****************************************************************************/ 209 ****************************************************************************/
210 210
211#define QNAP_TS409_GPIO_KEY_RESET 14
211#define QNAP_TS409_GPIO_KEY_MEDIA 15 212#define QNAP_TS409_GPIO_KEY_MEDIA 15
212 213
213static struct gpio_keys_button qnap_ts409_buttons[] = { 214static struct gpio_keys_button qnap_ts409_buttons[] = {
214 { 215 {
216 .code = KEY_RESTART,
217 .gpio = QNAP_TS409_GPIO_KEY_RESET,
218 .desc = "Reset Button",
219 .active_low = 1,
220 }, {
215 .code = KEY_COPY, 221 .code = KEY_COPY,
216 .gpio = QNAP_TS409_GPIO_KEY_MEDIA, 222 .gpio = QNAP_TS409_GPIO_KEY_MEDIA,
217 .desc = "USB Copy Button", 223 .desc = "USB Copy Button",