regulator: of: Use regulator-init-microvolt as early minimum

Change-Id: If491089520b3228484357e08482ae0e955b1226a
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
Finley Xiao
2018-04-19 14:53:05 +08:00
committed by Tao Huang
parent 1c571cf228
commit a4e0323d13
2 changed files with 4 additions and 3 deletions

View File

@@ -5,8 +5,9 @@ Optional properties:
- regulator-min-microvolt: smallest voltage consumers may set
- regulator-max-microvolt: largest voltage consumers may set
- regulator-microvolt-offset: Offset applied to voltages to compensate for voltage drops
- regulator-early-min-microvolt: minimum voltage during system startup, make sure we
select a voltage that suits the needs of all regulator consumers
- regulator-init-microvolt: Set by bootloader or when initialising, in order to
make sure the voltage can suit the needs of all regulator consumers during
system startup.
- regulator-min-microamp: smallest current consumers may set
- regulator-max-microamp: largest current consumers may set
- regulator-input-current-limit-microamp: maximum input current regulator allows

View File

@@ -42,7 +42,7 @@ static void of_get_regulation_constraints(struct device_node *np,
if (!of_property_read_u32(np, "regulator-max-microvolt", &pval))
constraints->max_uV = pval;
if (!of_property_read_u32(np, "regulator-early-min-microvolt", &pval))
if (!of_property_read_u32(np, "regulator-init-microvolt", &pval))
constraints->early_min_uV = pval;
/* Voltage change possible? */