Skip to content

Commit

Permalink
[ARM] Orion: Export the reset button of the QNAP TS-409
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Michlmayr authored and Lennert Buytenhek committed Aug 9, 2008
1 parent 28ca8c8 commit 5cebbd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-orion5x/ts409-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,16 @@ static struct platform_device ts409_leds = {
* Power button is attached to the PIC microcontroller
****************************************************************************/

#define QNAP_TS409_GPIO_KEY_RESET 14
#define QNAP_TS409_GPIO_KEY_MEDIA 15

static struct gpio_keys_button qnap_ts409_buttons[] = {
{
.code = KEY_RESTART,
.gpio = QNAP_TS409_GPIO_KEY_RESET,
.desc = "Reset Button",
.active_low = 1,
}, {
.code = KEY_COPY,
.gpio = QNAP_TS409_GPIO_KEY_MEDIA,
.desc = "USB Copy Button",
Expand Down

0 comments on commit 5cebbd0

Please sign in to comment.