Commit 8cbcaea8 authored by Doug Anderson's avatar Doug Anderson Committed by Mark Brown

regulator: of: Add support for parsing microvolts for suspend state

Leverage all the work that was done in (40e20d68 regulator: of: Add
support for parsing regulator_state for suspend state) and throw in
the ability to set suspend microvolts from the device tree.
Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
Reviewed-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: default avatarChris Zhong <zyw@rock-chips.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c99ade66
...@@ -107,6 +107,10 @@ static void of_get_regulation_constraints(struct device_node *np, ...@@ -107,6 +107,10 @@ static void of_get_regulation_constraints(struct device_node *np,
"regulator-off-in-suspend")) "regulator-off-in-suspend"))
suspend_state->disabled = true; suspend_state->disabled = true;
if (!of_property_read_u32(suspend_np,
"regulator-suspend-microvolt", &pval))
suspend_state->uV = pval;
of_node_put(suspend_np); of_node_put(suspend_np);
suspend_state = NULL; suspend_state = NULL;
suspend_np = NULL; suspend_np = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment