summaryrefslogtreecommitdiff
path: root/board/rockchip/odroidn1/odroidn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/rockchip/odroidn1/odroidn1.c')
-rw-r--r--board/rockchip/odroidn1/odroidn1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/rockchip/odroidn1/odroidn1.c b/board/rockchip/odroidn1/odroidn1.c
index c5cfb42ec2..73fb90875d 100644
--- a/board/rockchip/odroidn1/odroidn1.c
+++ b/board/rockchip/odroidn1/odroidn1.c
@@ -38,6 +38,7 @@ int board_init(void)
goto out;
}
+ /* Enable pwm2 to control regulator vdd-log */
ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_PWM2);
if (ret) {
debug("%s PWM2 pinctrl init fail!\n", __func__);
@@ -66,6 +67,19 @@ int board_init(void)
goto out;
}
+ /* Enable regulator vdd_log to supply LOGIC_VDD on ODROID-N1 HW */
+ ret = regulator_get_by_platname("vdd_log", &regulator);
+ if (ret) {
+ printf("%s vdd_log init fail! ret %d\n", __func__, ret);
+ goto out;
+ }
+
+ ret = regulator_set_enable(regulator, true);
+ if (ret) {
+ printf("%s vdd_log set fail!\n", __func__);
+ goto out;
+ }
+
out:
return 0;
}