diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2011-11-13 04:49:50 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-08 18:37:40 -0500 |
commit | 26cc3ab984cd00e95cb58ba5aaea4238ea56c700 (patch) | |
tree | 472a56db7678b50e3d6bba59c2f04a09e40635be /include/linux/i2c/twl.h | |
parent | aeb5032b3f8b9ab69daa545777433fa94b3494c4 (diff) |
mfd: Add power off functionality to TWL
TWL family of PMICs, used in master mode, have a power off
functionality. The resulting power off sequence shuts down all the SoC
supplies, LDOs, etc. The sequence is described in the datasheets
chapter "Power-Off Sequence".
Note, that board must be wired correctly for the power off to work as
expected.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/i2c/twl.h')
-rw-r--r-- | include/linux/i2c/twl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 114c0f6fc63d..78d3465251d6 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
@@ -652,10 +652,12 @@ struct twl4030_power_data { | |||
652 | unsigned num; | 652 | unsigned num; |
653 | struct twl4030_resconfig *resource_config; | 653 | struct twl4030_resconfig *resource_config; |
654 | #define TWL4030_RESCONFIG_UNDEF ((u8)-1) | 654 | #define TWL4030_RESCONFIG_UNDEF ((u8)-1) |
655 | bool use_poweroff; /* Board is wired for TWL poweroff */ | ||
655 | }; | 656 | }; |
656 | 657 | ||
657 | extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts); | 658 | extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts); |
658 | extern int twl4030_remove_script(u8 flags); | 659 | extern int twl4030_remove_script(u8 flags); |
660 | extern void twl4030_power_off(void); | ||
659 | 661 | ||
660 | struct twl4030_codec_data { | 662 | struct twl4030_codec_data { |
661 | unsigned int digimic_delay; /* in ms */ | 663 | unsigned int digimic_delay; /* in ms */ |