aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/tosa.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
index df65e89d1934..9f5ca5497bb9 100644
--- a/arch/arm/mach-pxa/tosa.c
+++ b/arch/arm/mach-pxa/tosa.c
@@ -325,12 +325,28 @@ static struct platform_device tosakbd_device = {
325}; 325};
326 326
327static struct gpio_keys_button tosa_gpio_keys[] = { 327static struct gpio_keys_button tosa_gpio_keys[] = {
328 /*
329 * Two following keys are directly tied to "ON" button of tosa. Why?
330 * The first one can be used as a wakeup source, the second can't;
331 * also the first one is OR of ac_powered and on_button.
332 */
333 {
334 .type = EV_PWR,
335 .code = KEY_RESERVED,
336 .gpio = TOSA_GPIO_POWERON,
337 .desc = "Poweron",
338 .wakeup = 1,
339 .active_low = 1,
340 },
328 { 341 {
329 .type = EV_PWR, 342 .type = EV_PWR,
330 .code = KEY_SUSPEND, 343 .code = KEY_SUSPEND,
331 .gpio = TOSA_GPIO_ON_KEY, 344 .gpio = TOSA_GPIO_ON_KEY,
332 .desc = "On key", 345 .desc = "On key",
333 .wakeup = 1, 346 /*
347 * can't be used as wakeup
348 * .wakeup = 1,
349 */
334 .active_low = 1, 350 .active_low = 1,
335 }, 351 },
336 { 352 {