diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-06-12 03:37:04 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-12 15:09:43 +0300 |
commit | 23c779b9f9161d6568d3b2fca06e70ad182c480c (patch) | |
tree | 314598f81db70f24dc8ead5f84c708cb8d5f00ef /include/linux/regulator/machine.h | |
parent | 22a10bca280073f81e9e2d9fed6f90a3bcf00236 (diff) | |
download | linux-23c779b9f9161d6568d3b2fca06e70ad182c480c.tar.xz |
regulator: Add pull down support
Some regulators need to be configured to pull down a resistor
when the regulator is disabled. Add an op (set_pull_down) 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/regulator/machine.h')
-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 01526559c8c3..8ffb0619a03c 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h @@ -87,6 +87,7 @@ struct regulator_state { * applied. * @apply_uV: Apply the voltage constraint when initialising. * @ramp_disable: Disable ramp delay when initialising or when setting voltage. + * @pull_down: Enable pull down when regulator is disabled. * * @input_uV: Input voltage for regulator when supplied by another regulator. * @@ -141,6 +142,7 @@ struct regulation_constraints { unsigned boot_on:1; /* bootloader/firmware enabled regulator */ unsigned apply_uV:1; /* apply uV constraint if min == max */ unsigned ramp_disable:1; /* disable ramp delay */ + unsigned pull_down:1; /* pull down resistor when regulator off */ }; /** |