summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2017-06-08 07:32:05 (GMT)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-11 13:23:38 (GMT)
commitcc93c090d093e576432ff41112cd4d88824b6bc2 (patch)
treed952893051efe8c0f6892450e93fac491873aebb
parentdf813322e5d767dfdafdedf458b200e3d9798b5d (diff)
downloadu-boot-rockchip-cc93c090d093e576432ff41112cd4d88824b6bc2.tar.gz
u-boot-rockchip-cc93c090d093e576432ff41112cd4d88824b6bc2.tar.xz
rockchip: evb-rk3328: enable boot on regulator
Enable all the boot-on regulator in default. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
-rw-r--r--board/rockchip/evb_rk3328/evb-rk3328.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/board/rockchip/evb_rk3328/evb-rk3328.c b/board/rockchip/evb_rk3328/evb-rk3328.c
index 4d2a8c7..99a73da 100644
--- a/board/rockchip/evb_rk3328/evb-rk3328.c
+++ b/board/rockchip/evb_rk3328/evb-rk3328.c
@@ -7,13 +7,20 @@
#include <common.h>
#include <asm/armv8/mmu.h>
#include <dwc3-uboot.h>
+#include <power/regulator.h>
#include <usb.h>
DECLARE_GLOBAL_DATA_PTR;
int board_init(void)
{
- return 0;
+ int ret;
+
+ ret = regulators_enable_boot_on(false);
+ if (ret)
+ debug("%s: Cannot enable boot on regulator\n", __func__);
+
+ return ret;
}
#if defined(CONFIG_USB_GADGET) && defined(CONFIG_USB_GADGET_DWC2_OTG)