diff options
-rw-r--r-- | arch/arm/mach-pxa/z2.c | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c index 084c724c1569..db6199c74ebb 100644 --- a/arch/arm/mach-pxa/z2.c +++ b/arch/arm/mach-pxa/z2.c | |||
@@ -92,13 +92,13 @@ static unsigned long z2_pin_config[] = { | |||
92 | GPIO47_STUART_TXD, | 92 | GPIO47_STUART_TXD, |
93 | 93 | ||
94 | /* Keypad */ | 94 | /* Keypad */ |
95 | GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH, | 95 | GPIO100_KP_MKIN_0, |
96 | GPIO101_KP_MKIN_1 | WAKEUP_ON_LEVEL_HIGH, | 96 | GPIO101_KP_MKIN_1, |
97 | GPIO102_KP_MKIN_2 | WAKEUP_ON_LEVEL_HIGH, | 97 | GPIO102_KP_MKIN_2, |
98 | GPIO34_KP_MKIN_3 | WAKEUP_ON_LEVEL_HIGH, | 98 | GPIO34_KP_MKIN_3, |
99 | GPIO38_KP_MKIN_4 | WAKEUP_ON_LEVEL_HIGH, | 99 | GPIO38_KP_MKIN_4, |
100 | GPIO16_KP_MKIN_5 | WAKEUP_ON_LEVEL_HIGH, | 100 | GPIO16_KP_MKIN_5, |
101 | GPIO17_KP_MKIN_6 | WAKEUP_ON_LEVEL_HIGH, | 101 | GPIO17_KP_MKIN_6, |
102 | GPIO103_KP_MKOUT_0, | 102 | GPIO103_KP_MKOUT_0, |
103 | GPIO104_KP_MKOUT_1, | 103 | GPIO104_KP_MKOUT_1, |
104 | GPIO105_KP_MKOUT_2, | 104 | GPIO105_KP_MKOUT_2, |
@@ -428,8 +428,22 @@ static inline void z2_mkp_init(void) {} | |||
428 | ******************************************************************************/ | 428 | ******************************************************************************/ |
429 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 429 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
430 | static struct gpio_keys_button z2_pxa_buttons[] = { | 430 | static struct gpio_keys_button z2_pxa_buttons[] = { |
431 | {KEY_POWER, GPIO1_ZIPITZ2_POWER_BUTTON, 0, "Power Button" }, | 431 | { |
432 | {KEY_CLOSE, GPIO98_ZIPITZ2_LID_BUTTON, 0, "Lid Button" }, | 432 | .code = KEY_POWER, |
433 | .gpio = GPIO1_ZIPITZ2_POWER_BUTTON, | ||
434 | .active_low = 0, | ||
435 | .desc = "Power Button", | ||
436 | .wakeup = 1, | ||
437 | .type = EV_KEY, | ||
438 | }, | ||
439 | { | ||
440 | .code = KEY_CLOSE, | ||
441 | .gpio = GPIO98_ZIPITZ2_LID_BUTTON, | ||
442 | .active_low = 0, | ||
443 | .desc = "Lid Button", | ||
444 | .wakeup = 0 | ||
445 | .type = EV_KEY, | ||
446 | }, | ||
433 | }; | 447 | }; |
434 | 448 | ||
435 | static struct gpio_keys_platform_data z2_pxa_keys_data = { | 449 | static struct gpio_keys_platform_data z2_pxa_keys_data = { |