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>
Thu, 1 Dec 2011 05:50:17 +0000 (21:50 -0800)
commit1bbc6f40c02244c086554d9776c8a14c319dcfb8
tree387a8492919eb34e83966434bfe0a8ad7801e2d2
parentd94e98e6352a97c0472e73936f97198fdf967ca6
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