From: Kever Yang Date: Thu, 8 Jun 2017 07:32:05 +0000 (+0800) Subject: rockchip: evb-rk3328: enable boot on regulator X-Git-Tag: v2017.09-rc1~215^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cc93c090d093e576432ff41112cd4d88824b6bc2;p=oweals%2Fu-boot.git rockchip: evb-rk3328: enable boot on regulator Enable all the boot-on regulator in default. Signed-off-by: Kever Yang Acked-by: Simon Glass Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- diff --git a/board/rockchip/evb_rk3328/evb-rk3328.c b/board/rockchip/evb_rk3328/evb-rk3328.c index 4d2a8c73bd..99a73dacf1 100644 --- a/board/rockchip/evb_rk3328/evb-rk3328.c +++ b/board/rockchip/evb_rk3328/evb-rk3328.c @@ -7,13 +7,20 @@ #include #include #include +#include #include 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)