summaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-11-13 11:49:50 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-01-09 00:37:40 +0100
commit26cc3ab984cd00e95cb58ba5aaea4238ea56c700 (patch)
tree472a56db7678b50e3d6bba59c2f04a09e40635be /include/linux/i2c
parentaeb5032b3f8b9ab69daa545777433fa94b3494c4 (diff)
downloadtalos-op-linux-26cc3ab984cd00e95cb58ba5aaea4238ea56c700.tar.gz
talos-op-linux-26cc3ab984cd00e95cb58ba5aaea4238ea56c700.zip
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')
-rw-r--r--include/linux/i2c/twl.h2
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 {
unsigned num;
struct twl4030_resconfig *resource_config;
#define TWL4030_RESCONFIG_UNDEF ((u8)-1)
+ bool use_poweroff; /* Board is wired for TWL poweroff */
};
extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts);
extern int twl4030_remove_script(u8 flags);
+extern void twl4030_power_off(void);
struct twl4030_codec_data {
unsigned int digimic_delay; /* in ms */
OpenPOWER on IntegriCloud