diff options
author | Tom Rini <trini@konsulko.com> | 2016-10-03 09:09:29 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-03 09:09:29 -0400 |
commit | 51b4a639e45bfb592d7019b4e2a8cc72ad206c9b (patch) | |
tree | 4014fa73958f7ad2b9281c60a8e2253f32099239 /board/rockchip/evb_rk3399/evb-rk3399.c | |
parent | e95b9b4437bcc31107bdc3b7625bd7c11ad24ef7 (diff) | |
parent | 67171e13a3e0665b18c657a6704a22ca7900f4c3 (diff) |
Merge git://git.denx.de/u-boot-rockchip
Diffstat (limited to 'board/rockchip/evb_rk3399/evb-rk3399.c')
-rw-r--r-- | board/rockchip/evb_rk3399/evb-rk3399.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index 2580b389ac..c6e6cd3e0b 100644 --- a/board/rockchip/evb_rk3399/evb-rk3399.c +++ b/board/rockchip/evb_rk3399/evb-rk3399.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <dm/pinctrl.h> +#include <dm/uclass-internal.h> #include <asm/arch/periph.h> #include <power/regulator.h> @@ -39,6 +40,11 @@ int board_init(void) goto out; } + /* rk3399 need init vdd_center to get correct output voltage */ + ret = regulator_get_by_platname("vdd_center", ®ulator); + if (ret) + debug("%s: Cannot get vdd_center regulator\n", __func__); + ret = regulator_get_by_platname("vcc5v0_host", ®ulator); if (ret) { debug("%s vcc5v0_host init fail! ret %d\n", __func__, ret); |