diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-10-13 06:45:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-16 12:57:33 -0400 |
commit | 5abe4f223ed6b820443d3657bd48600692f61c12 (patch) | |
tree | 035cc572dd216cf0567c71ab632823ac330a302c | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) |
regulator: introduce min_dropout_uV
Many voltage Regulators need a input voltage that is higher than the
output voltage. Allow to specify a minimum dropout voltage which will
be used later to find the best input voltage for regulators.
[Changed uv to uV for consistency and legibility -- broonie]
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | include/linux/regulator/driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 45932228cbf5..9c2903e58adb 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
@@ -245,6 +245,7 @@ enum regulator_type { | |||
245 | * @linear_min_sel: Minimal selector for starting linear mapping | 245 | * @linear_min_sel: Minimal selector for starting linear mapping |
246 | * @fixed_uV: Fixed voltage of rails. | 246 | * @fixed_uV: Fixed voltage of rails. |
247 | * @ramp_delay: Time to settle down after voltage change (unit: uV/us) | 247 | * @ramp_delay: Time to settle down after voltage change (unit: uV/us) |
248 | * @min_dropout_uV: The minimum dropout voltage this regulator can handle | ||
248 | * @linear_ranges: A constant table of possible voltage ranges. | 249 | * @linear_ranges: A constant table of possible voltage ranges. |
249 | * @n_linear_ranges: Number of entries in the @linear_ranges table. | 250 | * @n_linear_ranges: Number of entries in the @linear_ranges table. |
250 | * @volt_table: Voltage mapping table (if table based mapping) | 251 | * @volt_table: Voltage mapping table (if table based mapping) |
@@ -292,6 +293,7 @@ struct regulator_desc { | |||
292 | unsigned int linear_min_sel; | 293 | unsigned int linear_min_sel; |
293 | int fixed_uV; | 294 | int fixed_uV; |
294 | unsigned int ramp_delay; | 295 | unsigned int ramp_delay; |
296 | int min_dropout_uV; | ||
295 | 297 | ||
296 | const struct regulator_linear_range *linear_ranges; | 298 | const struct regulator_linear_range *linear_ranges; |
297 | int n_linear_ranges; | 299 | int n_linear_ranges; |