regulator: s5m8767: Use GPIO for controlling Buck9/eMMC
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 24 Jan 2014 13:37:57 +0000 (14:37 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 27 Jan 2014 20:24:17 +0000 (20:24 +0000)
commitee1e0994ab1bd302fd03432de79c07751df47ffa
tree04ecbe1f9b036da25496727fd2d4ced15f8f22dd
parent07b19808486054f356dbf3495a277f51af062b35
regulator: s5m8767: Use GPIO for controlling Buck9/eMMC

Add support for GPIO control (enable/disable) over Buck9. The Buck9
Converter is used as a supply for eMMC Host Controller.

BUCK9EN GPIO of S5M8767 chip may be used by application processor to
enable or disable the Buck9. This 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; Without the patch the regulator supplying
   eMMC must be defined as fixed-regulator.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/s5m8767.c
include/linux/mfd/samsung/core.h
include/linux/mfd/samsung/s5m8767.h