diff options
author | Harry Hong <hhong@nvidia.com> | 2013-06-17 11:47:29 +0900 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-06-18 03:46:24 -0700 |
commit | 1627cd0f3613ca998ffd55cdad792467c210b80c (patch) | |
tree | c34d79476b5ce6b5a1fb3b694791302a364b021d /include/linux | |
parent | e214c620f0e81fb19aaccec006161d8739ff4472 (diff) |
ARM: tegra: Programming Palmas SWOFF_COLDRST register
Programming poweron_lpk bit of SWOFF_COLDREST register
based on poweron_lpk value in pdata.
if it's 0, the system off type by long press key is power down.
if it's 1, the system off type by long press key is restart.
bug 1308187
Change-Id: Id6944aa31b753d711626b08bbde9e51d031bfcc9
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/239620
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/palmas.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index ccd3c2d61000..50a19ada56cd 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h @@ -258,6 +258,9 @@ struct palmas_platform_data { /* Long press delay for hard shutdown */ int long_press_delay; + + /* system off type by long press key */ + int poweron_lpk; }; /* Define the palmas IRQ numbers */ @@ -1293,6 +1296,11 @@ struct palmas_pmic { #define PALMAS_SWOFF_HWRST_GPADC_SHUTDOWN 0x01 #define PALMAS_SWOFF_HWRST_GPADC_SHUTDOWN_SHIFT 0 +/* Register bit values for poweron_lpk */ +#define PALMAS_SWOFF_COLDRST_PWRON_LPK_DEFAULT -1 +#define PALMAS_SWOFF_COLDRST_PWRON_LPK_SHUTDOWN 0 +#define PALMAS_SWOFF_COLDRST_PWRON_LPK_RESTART 1 + /* Bit definitions for SWOFF_COLDRST */ #define PALMAS_SWOFF_COLDRST_PWRON_LPK 0x80 #define PALMAS_SWOFF_COLDRST_PWRON_LPK_SHIFT 7 |