diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-04-14 10:09:07 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 22:12:42 +0100 |
commit | 97f53d710b9f63cbef1c86ee39d9ecfdda6e674c (patch) | |
tree | 9e856f04c698936a2a0ac777545eb601a9fa1464 /include/linux/mfd | |
parent | 011703835f83626048ab75d4ada9ab8ed269b193 (diff) | |
download | linux-97f53d710b9f63cbef1c86ee39d9ecfdda6e674c.tar.gz linux-97f53d710b9f63cbef1c86ee39d9ecfdda6e674c.tar.bz2 linux-97f53d710b9f63cbef1c86ee39d9ecfdda6e674c.zip |
regulator: s2mps11: Add external GPIO control for S2MPS14
Add support for external control over GPIO for LDO10, LDO11 and LDO12
S2MPS14 regulators. External control can be turned on by writing 0x0 to
control register which in case of other regulators is used for disabling
them. These LDO10-LDO12 regulators can be disabled only by I2C GPIO or
PWREN pin so the patch actually allows proper way of disabling them.
Additionally the GPIO control has two benefits:
- It is faster than toggling it over I2C bus.
- It allows disabling the regulator during suspend to RAM; The AP will
enable it during resume.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/samsung/s2mps14.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/samsung/s2mps14.h b/include/linux/mfd/samsung/s2mps14.h index 4b449b8ac548..900cd7a04314 100644 --- a/include/linux/mfd/samsung/s2mps14.h +++ b/include/linux/mfd/samsung/s2mps14.h @@ -148,6 +148,8 @@ enum s2mps14_regulators { #define S2MPS14_ENABLE_SHIFT 6 /* On/Off controlled by PWREN */ #define S2MPS14_ENABLE_SUSPEND (0x01 << S2MPS14_ENABLE_SHIFT) +/* On/Off controlled by LDO10EN or EMMCEN */ +#define S2MPS14_ENABLE_EXT_CONTROL (0x00 << S2MPS14_ENABLE_SHIFT) #define S2MPS14_LDO_N_VOLTAGES (S2MPS14_LDO_VSEL_MASK + 1) #define S2MPS14_BUCK_N_VOLTAGES (S2MPS14_BUCK_VSEL_MASK + 1) |