diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-05-10 19:22:47 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-05-15 18:12:28 +0530 |
commit | 7d8a0949472272ed365b7c885e6294265c4cc6da (patch) | |
tree | c0d32e94ccf882f3cd86f66746f04879b97e6f3b /arch/arm/mach-tegra/board-cardhu-kbc.c | |
parent | de18cbf61f89ea953a1d875e9cc0d9428a960845 (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
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-kbc.c')
-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 8174a8512d11..9cf5319ecfdf 100644 --- a/arch/arm/mach-tegra/board-cardhu-kbc.c +++ b/arch/arm/mach-tegra/board-cardhu-kbc.c @@ -175,7 +175,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 = { |