summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2014-03-07 11:10:51 +0100
committerMark Brown2014-03-19 14:02:51 +0100
commit05be09bb5ec8d12051515087a1983745dc93d906 (patch)
tree7a1ab832c3569546c2b4563aeb19383e53fbf9ac /include/linux/mfd
parentregulator: s2mps11: Add support for S2MPS14 regulators (diff)
downloadkernel-qcow2-linux-05be09bb5ec8d12051515087a1983745dc93d906.tar.gz
kernel-qcow2-linux-05be09bb5ec8d12051515087a1983745dc93d906.tar.xz
kernel-qcow2-linux-05be09bb5ec8d12051515087a1983745dc93d906.zip
regulator: s2mps11: Add set_suspend_disable for S2MPS14
S2MPS14 regulators support suspend mode where their status is controlled by PWREN coming from SoC. This patch implements the set_suspend_disable for S2MPS14 regulators. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/samsung/s2mps14.h b/include/linux/mfd/samsung/s2mps14.h
index ec1e0857ddde..4b449b8ac548 100644
--- a/include/linux/mfd/samsung/s2mps14.h
+++ b/include/linux/mfd/samsung/s2mps14.h
@@ -146,6 +146,8 @@ enum s2mps14_regulators {
#define S2MPS14_BUCK_VSEL_MASK 0xFF
#define S2MPS14_ENABLE_MASK (0x03 << S2MPS14_ENABLE_SHIFT)
#define S2MPS14_ENABLE_SHIFT 6
+/* On/Off controlled by PWREN */
+#define S2MPS14_ENABLE_SUSPEND (0x01 << S2MPS14_ENABLE_SHIFT)
#define S2MPS14_LDO_N_VOLTAGES (S2MPS14_LDO_VSEL_MASK + 1)
#define S2MPS14_BUCK_N_VOLTAGES (S2MPS14_BUCK_VSEL_MASK + 1)