ARM: Tegra11: Enable hard shutdown in 8 seconds
Naveen Kumar S [Tue, 30 Apr 2013 20:16:01 +0000 (01:16 +0530)]
Specifying value for Palmas LONG_PRESS_KEY (LPK) register to
enable hard shutdown upon holding onkey pressed for 8 second
sin non-android platforms. Retaining default of 12 seconds for
android platforms.

Bug 1241832

Change-Id: I7f076eb0fd7619ab192a2df362c938f2326427b5
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/224211
(cherry picked from commit 288d0caf7b0067b355fe927485c02e5f6214097b)
Reviewed-on: http://git-master/r/228800
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/board-dalmore-power.c

index c46ddf9..9ea2de0 100644 (file)
@@ -810,6 +810,12 @@ static struct palmas_platform_data palmas_pdata = {
        .rtc_pdata = &rtc_platform,
        .use_power_off = true,
        .pinctrl_pdata = &palmas_pinctrl_pdata,
+       #ifndef CONFIG_ANDROID
+       .long_press_delay = PALMAS_LONG_PRESS_KEY_TIME_8SECONDS,
+       #else
+       /* Retaining default value, 12 Seconds */
+       .long_press_delay = PALMAS_LONG_PRESS_KEY_TIME_DEFAULT,
+       #endif
 };
 
 static struct i2c_board_info palma_device[] = {