From patchwork Mon Jun 11 19:00:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 927852 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.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=caione.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="o8q9TocA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 414Mq24Dtkz9rvt for ; Tue, 12 Jun 2018 05:03:10 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 47061C21DFF; Mon, 11 Jun 2018 19:01:42 +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=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID 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 8C2EDC21DEC; Mon, 11 Jun 2018 19:01:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E37CAC21D8A; Mon, 11 Jun 2018 19:01:09 +0000 (UTC) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by lists.denx.de (Postfix) with ESMTPS id 892F8C21D72 for ; Mon, 11 Jun 2018 19:01:05 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id z24-v6so10719623pfe.7 for ; Mon, 11 Jun 2018 12:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=QvZydYpMdvhFh/HsASchdX9O85GNUERlzSgSI8iTSaY=; b=o8q9TocA3AQ/a9PUjmo3GtS7In38IPpUVi+j0FfMMQzb7LytdfbFZYzQK5vJIzxY1L tsF1ljFW0GzQPz4PcVKZIl5dvAtjQip+9RgVzVF5+v92MJ9tjW1HLUrf5SC+ecBG9XhH UxZMnTLg75xOMSDSBk22t9+HBB4jKnZQw+qS++Xq0INaKh40ogn4T8nKXA+uWJNKSp1B pC2J/Woah+7rDwxhvv5S9+dsM7R2Sen65PD/h7UxZ+x/vFt2EOIPCg8R/qUkzA6WfhJ7 mKG5n6Fby+VS8EMtNMdyszLwJn1upIYe/MMV3jLE0i/omVWcCTV4WFt/vEv9K26Drm32 MdpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=QvZydYpMdvhFh/HsASchdX9O85GNUERlzSgSI8iTSaY=; b=NFohqu/wvwn5WDD9r3i1u75/FHGvgjR5eg8Axu8YpfXCN/zfSogUdcUPoAcRUcYdeV 6YfJhdev0ZDof/Mx8b+0SzIDK5k/e3d24L+2sVv0DTmf1OWLckQyxGH4sCKT+a+3Xoli F87hzDAnTcZbauxJkizV4hSg9VpFHHACWvebiL9iHsjuygqQydOM3PLtyqtGET/OBOyZ h8cxnIvF6fRBEH9xvIF8ck57DRZ+GoF81pb2SkokNi72u8c8j4Nut3D77N8GqWYI20Pz mbPm6qpKSf/3CkgF/cPC0Ixh4Xs9BaqPeVjlZiD8UiBQzwtK4wCP80fR5VUGpMgc3xkc 0XMw== X-Gm-Message-State: APt69E20o85YdwmSG4kVwzCNWtVjtxoOOV6Q3fRBMAZgGcFWUS7509km 0U2ZkarPjcqWwVrEZjdLJIQ= X-Google-Smtp-Source: ADUXVKKc1ifcy4KLGdrHrCbD6AyO7bibyZvfiJYKuY9DMz68wksEQhK0O/DpkCcLAeU3yuE+jsp4ew== X-Received: by 2002:a65:4a90:: with SMTP id b16-v6mr345361pgu.136.1528743663699; Mon, 11 Jun 2018 12:01:03 -0700 (PDT) Received: from localhost.localdomain ([2a00:23c4:f78b:2a00:4533:23a5:db75:b5ae]) by smtp.gmail.com with ESMTPSA id h10-v6sm44920834pgc.28.2018.06.11.12.01.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 12:01:02 -0700 (PDT) From: Carlo Caione To: sjg@chromium.org, philipp.tomsich@theobroma-systems.com, albert.u.boot@aribaud.net, u-boot@lists.denx.de, linux@endlessm.com Date: Mon, 11 Jun 2018 20:00:48 +0100 Message-Id: <20180611190051.6897-2-carlo@caione.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611190051.6897-1-carlo@caione.org> References: <20180611190051.6897-1-carlo@caione.org> Cc: Carlo Caione Subject: [U-Boot] [PATCH v3 1/4] rk3288: veyron: Init boot-on regulators 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" From: Carlo Caione Use regulators_enable_boot_on() to init all the regulators with regulator-boot-on property. Signed-off-by: Carlo Caione Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- arch/arm/mach-rockchip/rk3288-board.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288-board.c b/arch/arm/mach-rockchip/rk3288-board.c index 8c128d4f94..0365793009 100644 --- a/arch/arm/mach-rockchip/rk3288-board.c +++ b/arch/arm/mach-rockchip/rk3288-board.c @@ -122,6 +122,12 @@ static int veyron_init(void) if (IS_ERR_VALUE(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