From patchwork Tue Aug 28 06:24:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janine Hagemann X-Patchwork-Id: 962733 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=phytec.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41zzJj2jPxz9s2P for ; Tue, 28 Aug 2018 16:25:25 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C5B32C21DCA; Tue, 28 Aug 2018 06:25:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C3D9AC21C3F; Tue, 28 Aug 2018 06:25:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 49B28C21C57; Tue, 28 Aug 2018 06:25:11 +0000 (UTC) Received: from root.phytec.de (mail.x-arc.co.uk [217.6.246.34]) by lists.denx.de (Postfix) with ESMTP id 05215C21C29 for ; Tue, 28 Aug 2018 06:25:11 +0000 (UTC) Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 89049A003D5; Tue, 28 Aug 2018 08:25:48 +0200 (CEST) Received: from augenblix.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2018082808251043-807287 ; Tue, 28 Aug 2018 08:25:10 +0200 From: Janine Hagemann To: u-boot@lists.denx.de, grygorii.strashko@ti.com, albert.u.boot@aribaud.net, sjg@chromium.org, philipp.tomisch@theobram-systems.com, w.egorov@phytec.de, joe.hershberger@ni.com Date: Tue, 28 Aug 2018 08:24:59 +0200 Message-Id: <1535437505-32297-2-git-send-email-j.hagemann@phytec.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535437505-32297-1-git-send-email-j.hagemann@phytec.de> References: <1535437505-32297-1-git-send-email-j.hagemann@phytec.de> X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 28.08.2018 08:25:10, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 28.08.2018 08:25:10, Serialize complete at 28.08.2018 08:25:10 X-TNEFEvaluated: 1 Subject: [U-Boot] [PATCH v4 1/7] arch: arm: mach-rockchip: rk3288: Enable regulators in board_init X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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();