summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2017-04-12 12:00:06 +0800
committerSimon Glass <sjg@chromium.org>2017-05-10 13:37:20 -0600
commit400b4acf1e341d4da19cc1148389dcb40abfbe12 (patch)
tree500fe43d605589162fd371e48eb854927b7cf87c
parent05b8dc5cd30a6d6cdfb29c9e718198692e12b4bf (diff)
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: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--board/rockchip/evb_rk3399/evb-rk3399.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c
index 362fa0bc6e..6561c4fbd3 100644
--- a/board/rockchip/evb_rk3399/evb-rk3399.c
+++ b/board/rockchip/evb_rk3399/evb-rk3399.c
@@ -40,10 +40,9 @@ int board_init(void)
goto out;
}
- /* rk3399 need init vdd_center to get correct output voltage */
- ret = regulator_get_by_platname("vdd_center", &regulator);
+ ret = regulators_enable_boot_on(false);
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);
if (ret) {