From mboxrd@z Thu Jan 1 00:00:00 1970 From: Janine Hagemann Date: Tue, 28 Aug 2018 08:24:59 +0200 Subject: [U-Boot] [PATCH v4 1/7] arch: arm: mach-rockchip: rk3288: Enable regulators in board_init In-Reply-To: <1535437505-32297-1-git-send-email-j.hagemann@phytec.de> References: <1535437505-32297-1-git-send-email-j.hagemann@phytec.de> Message-ID: <1535437505-32297-2-git-send-email-j.hagemann@phytec.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Use regulators_enable_boot_on() to init all the regulators with regulator-boot-on property. This is relevant for all rk3288-boards. Signed-off-by: Wadim Egorov Signed-off-by: Janine Hagemann --- v4: No changes --- arch/arm/mach-rockchip/rk3288-board.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288-board.c b/arch/arm/mach-rockchip/rk3288-board.c index 9c4f7f2..067b988 100644 --- a/arch/arm/mach-rockchip/rk3288-board.c +++ b/arch/arm/mach-rockchip/rk3288-board.c @@ -132,12 +132,6 @@ static int veyron_init(void) if (ret) return ret; - ret = regulators_enable_boot_on(false); - if (ret) { - debug("%s: Cannot enable boot on regulators\n", __func__); - return ret; - } - return 0; } #endif @@ -175,6 +169,12 @@ err: #else int ret; + ret = regulators_enable_boot_on(false); + if (ret) { + debug("%s: Cannot enable boot on regulator\n", __func__); + return ret; + } + /* We do some SoC one time setting here */ if (!fdt_node_check_compatible(gd->fdt_blob, 0, "google,veyron")) { ret = veyron_init(); -- 2.7.4