aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/samsung
diff options
context:
space:
mode:
authorYadwinder Singh Brar <yadi.brar@samsung.com>2013-06-29 08:51:16 -0400
committerMark Brown <broonie@linaro.org>2013-07-15 13:31:12 -0400
commit939c02777a27ea7915764ecca5263dbb60c664f3 (patch)
tree4df08e2c4e78e0f2afc3d08c6498fffb39751984 /include/linux/mfd/samsung
parent92d8ecae7eda0820663933e568915dbf7ef79127 (diff)
regulator: s2mps11: Implement set_ramp_rate callback for bucks
Implementing set_ramp_rate() and using standard constraints for getting ramp_delay and ramp_disable, instead of getting it as s2mps11 specific data through platform data, makes driver more compliant with framework and reduces the complexity for adding DT support. Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/mfd/samsung')
-rw-r--r--include/linux/mfd/samsung/s2mps11.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mfd/samsung/s2mps11.h b/include/linux/mfd/samsung/s2mps11.h
index 4e94dc65f987..d0d52ea60074 100644
--- a/include/linux/mfd/samsung/s2mps11.h
+++ b/include/linux/mfd/samsung/s2mps11.h
@@ -191,6 +191,17 @@ enum s2mps11_regulators {
191#define S2MPS11_BUCK_N_VOLTAGES (S2MPS11_BUCK_VSEL_MASK + 1) 191#define S2MPS11_BUCK_N_VOLTAGES (S2MPS11_BUCK_VSEL_MASK + 1)
192#define S2MPS11_RAMP_DELAY 25000 /* uV/us */ 192#define S2MPS11_RAMP_DELAY 25000 /* uV/us */
193 193
194
195#define S2MPS11_BUCK2_RAMP_SHIFT 6
196#define S2MPS11_BUCK34_RAMP_SHIFT 4
197#define S2MPS11_BUCK5_RAMP_SHIFT 6
198#define S2MPS11_BUCK16_RAMP_SHIFT 4
199#define S2MPS11_BUCK7810_RAMP_SHIFT 2
200#define S2MPS11_BUCK9_RAMP_SHIFT 0
201#define S2MPS11_BUCK2_RAMP_EN_SHIFT 3
202#define S2MPS11_BUCK3_RAMP_EN_SHIFT 2
203#define S2MPS11_BUCK4_RAMP_EN_SHIFT 1
204#define S2MPS11_BUCK6_RAMP_EN_SHIFT 0
194#define S2MPS11_PMIC_EN_SHIFT 6 205#define S2MPS11_PMIC_EN_SHIFT 6
195#define S2MPS11_REGULATOR_MAX (S2MPS11_REG_MAX - 3) 206#define S2MPS11_REGULATOR_MAX (S2MPS11_REG_MAX - 3)
196 207