arm: tegra: cardhu: Shutdown system if ONKEY press for long
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 15 Nov 2011 15:37:12 +0000 (20:37 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 24 Mar 2012 02:57:40 +0000 (19:57 -0700)
commitecf0ae43e73bf20fee834f6127eb6e8ccfb3d5df
treebb8272dbd323fe3a1d528260a8b9e3f40efea461
parentb2b4af23866dd4a0f6885514dd344299b21b0870
arm: tegra: cardhu: Shutdown system if ONKEY press for long

Powering off the cardhu if onkey is pressed for longer time
(more than 5 sec).
The short key (< 1 second) takes system into suspend,
the key press to 1 to 5 sec popup shutdown menu and more than
5 second power off the system.

bug 810512

Reviewed-on: http://git-master/r/65108
(cherry picked from commit 71ecd268ab0a3fb8417c1d9a13dcb5e06fc3ac7a)

Change-Id: I1da27b2464445131ae82bc67a419d064c8149d60
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/65805
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R7f958a5d99de7dc354d807acd75bc319cfe87b30
arch/arm/mach-tegra/board-cardhu-kbc.c