aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-06-11 20:37:05 -0400
committerMark Brown <broonie@kernel.org>2015-06-12 08:16:57 -0400
commit57f66b78860968fc7eddc9ce25f8e57f7e5000bd (patch)
tree5ee90fa99fdd1277706faa3bef39522d26ebc4bc /include/linux
parent23c779b9f9161d6568d3b2fca06e70ad182c480c (diff)
regulator: Add soft start support
Some regulators support a "soft start" feature where the voltage ramps up slowly when the regulator is enabled. Add an op (set_soft_start) and a DT property + constraint to support this. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/regulator/driver.h2
-rw-r--r--include/linux/regulator/machine.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index 76144a337ff7..e0635d0894aa 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -161,6 +161,8 @@ struct regulator_ops {
161 unsigned int old_selector, 161 unsigned int old_selector,
162 unsigned int new_selector); 162 unsigned int new_selector);
163 163
164 int (*set_soft_start) (struct regulator_dev *);
165
164 /* report regulator status ... most other accessors report 166 /* report regulator status ... most other accessors report
165 * control inputs, this reports results of combining inputs 167 * control inputs, this reports results of combining inputs
166 * from Linux (and other sources) with the actual load. 168 * from Linux (and other sources) with the actual load.
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h
index 8ffb0619a03c..7f7d0a3fe1e1 100644
--- a/include/linux/regulator/machine.h
+++ b/include/linux/regulator/machine.h
@@ -142,6 +142,7 @@ struct regulation_constraints {
142 unsigned boot_on:1; /* bootloader/firmware enabled regulator */ 142 unsigned boot_on:1; /* bootloader/firmware enabled regulator */
143 unsigned apply_uV:1; /* apply uV constraint if min == max */ 143 unsigned apply_uV:1; /* apply uV constraint if min == max */
144 unsigned ramp_disable:1; /* disable ramp delay */ 144 unsigned ramp_disable:1; /* disable ramp delay */
145 unsigned soft_start:1; /* ramp voltage slowly */
145 unsigned pull_down:1; /* pull down resistor when regulator off */ 146 unsigned pull_down:1; /* pull down resistor when regulator off */
146}; 147};
147 148