summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoy Cho <joy.cho@hardkernel.com>2017-10-19 11:37:23 +0300
committerJoy Cho <joy.cho@hardkernel.com>2017-12-28 03:56:34 +0300
commit56b7ab5076c1f8d3696da6f16e04d83d8f8d2f18 (patch)
tree8cedfc92b26c9846e36663a758d03c17df802299
parent0245f35916cc1418f242a261abde308334627aff (diff)
downloadu-boot-56b7ab5076c1f8d3696da6f16e04d83d8f8d2f18.tar.xz
board: odroidn1: Activate regulator, vdd-log
Change-Id: I002c2c4e99dfd4a08628f9ea850d52a79e41092a
-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;
}