]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: s2mps11: Add external GPIO control for S2MPS14
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 14 Apr 2014 08:09:07 +0000 (10:09 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 21:12:42 +0000 (22:12 +0100)
commit97f53d710b9f63cbef1c86ee39d9ecfdda6e674c
tree9e856f04c698936a2a0ac777545eb601a9fa1464
parent011703835f83626048ab75d4ada9ab8ed269b193
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>
drivers/regulator/s2mps11.c
include/linux/mfd/samsung/s2mps14.h