diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2016-09-23 15:57:20 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-10-01 18:35:01 -0600 |
commit | be3fcd0fe8218b699ed1d783221727a76d9b388b (patch) | |
tree | 55556e2b1a2ed9ced2383c62ae53e7d01ab59a59 /board/rockchip/evb_rk3399 | |
parent | 1a01695615f91f9f47d91ad4045b2b170bcb1b5e (diff) | |
download | u-boot-be3fcd0fe8218b699ed1d783221727a76d9b388b.tar.gz u-boot-be3fcd0fe8218b699ed1d783221727a76d9b388b.tar.bz2 u-boot-be3fcd0fe8218b699ed1d783221727a76d9b388b.zip |
rockchip: evb_rk3399: init vdd_center regulator
Add vdd_center pwm regulator get_device to
enable this regulator.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/rockchip/evb_rk3399')
-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); |