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

rockchip: evb_rk3399: init vdd_center regulator


Add vdd_center pwm regulator get_device to
enable this regulator.

Signed-off-by: default avatarKever Yang <kever.yang@rock-chips.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 1a016956
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <common.h> #include <common.h>
#include <dm.h> #include <dm.h>
#include <dm/pinctrl.h> #include <dm/pinctrl.h>
#include <dm/uclass-internal.h>
#include <asm/arch/periph.h> #include <asm/arch/periph.h>
#include <power/regulator.h> #include <power/regulator.h>
...@@ -39,6 +40,11 @@ int board_init(void) ...@@ -39,6 +40,11 @@ int board_init(void)
goto out; goto out;
} }
/* rk3399 need init vdd_center to get correct output voltage */
ret = regulator_get_by_platname("vdd_center", &regulator);
if (ret)
debug("%s: Cannot get vdd_center regulator\n", __func__);
ret = regulator_get_by_platname("vcc5v0_host", &regulator); ret = regulator_get_by_platname("vcc5v0_host", &regulator);
if (ret) { if (ret) {
debug("%s vcc5v0_host init fail! ret %d\n", __func__, ret); debug("%s vcc5v0_host init fail! ret %d\n", __func__, 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