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>
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <dm/uclass-internal.h>
#include <asm/arch/periph.h>
#include <power/regulator.h>
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);