aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-02-26 14:24:19 -0500
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-03-31 04:56:24 -0400
commita308466c24b4f42bab6945026e938874d22cde50 (patch)
tree7eea151552bacfa580099cb6f9a32a9140d65c89 /include/linux/regulator
parentfe203ddfa5451a13589b1c7da9edab80b7fc06d1 (diff)
regulator: Allow regulators to set the initial operating mode
This is useful when wishing to run in a fixed operating mode that isn't the default. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/machine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h
index 5aa00ee36a3d..1eb861cf4b2c 100644
--- a/include/linux/regulator/machine.h
+++ b/include/linux/regulator/machine.h
@@ -83,6 +83,7 @@ struct regulator_state {
83 * @state_standby: State for regulator when system is suspended in standby 83 * @state_standby: State for regulator when system is suspended in standby
84 * mode. 84 * mode.
85 * @initial_state: Suspend state to set by default. 85 * @initial_state: Suspend state to set by default.
86 * @initial_mode: Mode to set at startup.
86 */ 87 */
87struct regulation_constraints { 88struct regulation_constraints {
88 89
@@ -111,6 +112,9 @@ struct regulation_constraints {
111 struct regulator_state state_standby; 112 struct regulator_state state_standby;
112 suspend_state_t initial_state; /* suspend state to set at init */ 113 suspend_state_t initial_state; /* suspend state to set at init */
113 114
115 /* mode to set on startup */
116 unsigned int initial_mode;
117
114 /* constriant flags */ 118 /* constriant flags */
115 unsigned always_on:1; /* regulator never off when system is on */ 119 unsigned always_on:1; /* regulator never off when system is on */
116 unsigned boot_on:1; /* bootloader/firmware enabled regulator */ 120 unsigned boot_on:1; /* bootloader/firmware enabled regulator */