Skip to content
Snippets Groups Projects
Commit 400b4acf authored by Kever Yang's avatar Kever Yang Committed by Simon Glass
Browse files

rockchip: rk3399: use regulators_enable_boot_on() to init regulator


Use regulators_enable_boot_on() instead of init regulators one by one,
the interface can init all the regulators with regulator-boot-on property.

Signed-off-by: default avatarKever Yang <kever.yang@rock-chips.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 05b8dc5c
No related branches found
No related tags found
No related merge requests found
...@@ -40,10 +40,9 @@ int board_init(void) ...@@ -40,10 +40,9 @@ int board_init(void)
goto out; goto out;
} }
/* rk3399 need init vdd_center to get correct output voltage */ ret = regulators_enable_boot_on(false);
ret = regulator_get_by_platname("vdd_center", &regulator);
if (ret) if (ret)
debug("%s: Cannot get vdd_center regulator\n", __func__); debug("%s: Cannot enable boot on regulator\n", __func__);
ret = regulator_get_by_platname("vcc5v0_host", &regulator); ret = regulator_get_by_platname("vcc5v0_host", &regulator);
if (ret) { if (ret) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment