diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-05-10 19:22:47 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-05-14 18:34:33 -0700 |
commit | cee5b22929b92ac4a9a1d4d3921d4aa652fd1608 (patch) | |
tree | 80b7283c94cd168a7cfeecccd6b97ed7fc9ab2f5 | |
parent | bc32f830de9ff80972f30fbb0b61c1937cf7c451 (diff) |
ARM: tegra: cardhu: wakeup system from GPIO_PV0 without key detection
To meet the LP0 exit power on sequence, it is require to wake system
for tegra gpio in place of PMIC for E1291-A04.
Also it is observed that if GPIO key is used to wakeup then there is
possibility of loosing the key event and hence adding the gpio
GPIO_PV0 as the key with code of RESERVED so that it can only
wakeup system but will not able to send the key event through
gpio keys.
bug 981320
Change-Id: I8610adca4b5ed8ae79f8fcca9a1d4b5548158c60
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/101784
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-kbc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-kbc.c b/arch/arm/mach-tegra/board-cardhu-kbc.c index a1c306f4b852..09f558182150 100644 --- a/arch/arm/mach-tegra/board-cardhu-kbc.c +++ b/arch/arm/mach-tegra/board-cardhu-kbc.c @@ -174,7 +174,8 @@ static struct gpio_keys_button cardhu_keys_e1291_a04[] = { [3] = GPIO_KEY(KEY_SEARCH, PQ3, 0), [4] = GPIO_KEY(KEY_BACK, PQ0, 0), [5] = GPIO_KEY(KEY_MENU, PQ1, 0), - [6] = GPIO_KEY(KEY_POWER, PV0, 1), + [6] = GPIO_KEY(KEY_RESERVED, PV0, 1), + [7] = GPIO_IKEY(KEY_POWER, TPS6591X_IRQ_BASE + TPS6591X_INT_PWRON, 1, 100), }; static struct gpio_keys_platform_data cardhu_keys_e1291_pdata = { |