From: Kever Yang Date: Fri, 23 Sep 2016 07:57:20 +0000 (+0800) Subject: rockchip: evb_rk3399: init vdd_center regulator X-Git-Tag: v2016.11-rc1~1^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be3fcd0fe8218b699ed1d783221727a76d9b388b;p=u-boot rockchip: evb_rk3399: init vdd_center regulator Add vdd_center pwm regulator get_device to enable this regulator. Signed-off-by: Kever Yang Acked-by: Simon Glass --- 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 #include #include +#include #include #include @@ -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);