aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorVasily Khoruzhick <anarsoul@gmail.com>2011-03-13 11:19:17 -0400
committerMarek Vasut <marek.vasut@gmail.com>2011-03-16 09:56:02 -0400
commit2e62344de8e2a7e402fe2a009c3d09bc6fd589e6 (patch)
tree17b8e0ed84d539278277734aaace78c87f85bd7a /arch/arm/mach-pxa
parent27be9a9e378dad166fc81df310e052e7b67cb667 (diff)
ARM: PXA: Z2: Use only power button as wake source
It's very easy to press some keypad key when Z2 is closed, so to prevent unexpected wakeups, use only 'Power' key to wake Z2 from sleep. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Acked-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/z2.c32
1 files changed, 23 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c
index 084c724c156..db6199c74eb 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)
430static struct gpio_keys_button z2_pxa_buttons[] = { 430static 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
435static struct gpio_keys_platform_data z2_pxa_keys_data = { 449static struct gpio_keys_platform_data z2_pxa_keys_data = {