diff options
| author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-09-18 08:48:02 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-09-18 12:13:02 -0400 |
| commit | 00c877c69ba315d6c565a4df51c71b11e82cdeb8 (patch) | |
| tree | 8b5dcf0d475476da3ee8c2cb310e9bce34e6d30a /include/linux/regulator | |
| parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
regulator: core: add support for configuring turn-on time through constraints
The turn-on time of the regulator depends on the regulator device's
electrical characteristics. Sometimes regulator turn-on time also
depends on the capacitive load on the given platform and it can be
more than the datasheet value.
The driver provides the enable-time as per datasheet.
Add support for configure the enable ramp time through regulator
constraints so that regulator core can take this value for enable
time for that regulator.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/machine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index 999b20ce06cf..8108751acb86 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h | |||
| @@ -95,6 +95,7 @@ struct regulator_state { | |||
| 95 | * @initial_state: Suspend state to set by default. | 95 | * @initial_state: Suspend state to set by default. |
| 96 | * @initial_mode: Mode to set at startup. | 96 | * @initial_mode: Mode to set at startup. |
| 97 | * @ramp_delay: Time to settle down after voltage change (unit: uV/us) | 97 | * @ramp_delay: Time to settle down after voltage change (unit: uV/us) |
| 98 | * @enable_time: Turn-on time of the rails (unit: microseconds) | ||
| 98 | */ | 99 | */ |
| 99 | struct regulation_constraints { | 100 | struct regulation_constraints { |
| 100 | 101 | ||
| @@ -129,6 +130,7 @@ struct regulation_constraints { | |||
| 129 | unsigned int initial_mode; | 130 | unsigned int initial_mode; |
| 130 | 131 | ||
| 131 | unsigned int ramp_delay; | 132 | unsigned int ramp_delay; |
| 133 | unsigned int enable_time; | ||
| 132 | 134 | ||
| 133 | /* constraint flags */ | 135 | /* constraint flags */ |
| 134 | unsigned always_on:1; /* regulator never off when system is on */ | 136 | unsigned always_on:1; /* regulator never off when system is on */ |
