mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
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:
@@ -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
|
||||
|
||||
@@ -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? */
|
||||
|
||||
Reference in New Issue
Block a user