diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2010-12-17 10:54:55 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:58 -0800 |
commit | b33e5259971a7f948b79c3186afa3d5e9c126599 (patch) | |
tree | 9407caecc26224158f76e78e08c1e0e70cf3e7e0 /include/linux/mfd | |
parent | 1d3e3a22b939ccb5b0bf4a9181d0b8aa090519d2 (diff) |
mfd: tps6586x: add api to power off tps6586x
when tps6586x is put into sleep mode, it powers off ldos. Add an
api to put tps6586x in sleep mode by resetting EXITSLREQ and
setting SLEEP_MODE in SUPPLYENE register.
Original-Change-Id: I80fe35d541e85014bd7b5544d212573fe35d67e5
Reviewed-on: http://git-master/r/13589
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: R658c9b00e256e3f8e12184ea66451dbb8b477e89
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/tps6586x.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/tps6586x.h b/include/linux/mfd/tps6586x.h index d96fb3d3e624..bd20aa696485 100644 --- a/include/linux/mfd/tps6586x.h +++ b/include/linux/mfd/tps6586x.h @@ -78,5 +78,6 @@ extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask); extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask); extern int tps6586x_update(struct device *dev, int reg, uint8_t val, uint8_t mask); +extern int tps6586x_power_off(void); #endif /*__LINUX_MFD_TPS6586X_H */ |