From patchwork Mon Jun 11 08:08:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 927521 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="EDh0bgjL"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4145JN6zwZz9rxs for ; Mon, 11 Jun 2018 18:09:08 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9233AC21C57; Mon, 11 Jun 2018 08:08:48 +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 A6FD9C21CB6; Mon, 11 Jun 2018 08:08:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CDA16C21BE5; Mon, 11 Jun 2018 08:08:23 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id 265ECC21C27 for ; Mon, 11 Jun 2018 08:08:23 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id x4-v6so11171023wro.11 for ; Mon, 11 Jun 2018 01:08:23 -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=jFKvO2QS66fHmVXCyYy9/7XLylpCg5ImEYjSebps+C0=; b=EDh0bgjLEnDMWMqobozqbEVapZLx95moJO4OX7vkV96DheiRYrjklHKNa1YO+kMzB9 CjIUH+R9KT4zbkBhsQyJNJSC1DdKUViYzDeF5Pe+hultN5KnkI4OYiJGz8Ck6cC3WW0o X69yj+Dw1WY5lcTdHUoow1Wym7p3fNe4RRd3ul1/DFyWFZqquef+3roZXWiEOhiBNpSg IlwTionQe7p9rHqd0KxBXqjE/30EhbqJSCtYQ2viaMcqrEfIuO6szhxDX216u1ZsjDrO eCPKQtGrjhengwi+00UyY6DmYCI0wS/WKj5EiAdEeuzQu1mmlfqZnuLIWJdw4BSa6dld W0gg== 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=jFKvO2QS66fHmVXCyYy9/7XLylpCg5ImEYjSebps+C0=; b=VYbYqbSKdCynv5ULEwTUSVPYFg4aDZ1+hohOgnh9rvK9SfvDA6v+jKysGQWSKF6tsP SDpLZIybKVcKi08AdXyHoiAJF27OekIEEGKM3Yokc9EEKqYDY2YTkr+3EIbYmcR4rbwp 4CttdRtEh/S46p0rYv3AciVMdVuoW+X6w69ZxAskDbN4l7XpPcvwNJpdLUrk42HDK2/y bgSye+G5Hjl4rkuJmi5aK2GMrr3kWl9BNPWb6GpWdNvNIj6pCVsMuDVMd39G51SPQmzk 4o+ODneOtukI5SmMCKx5cSC7+tECTI/iFiIEkeCuus/CVbK0W3agvHIkFOkPQJnCgBGi +T/g== X-Gm-Message-State: APt69E2aDDt1VGnfpBETmUiopgMhJe8LZbl7Kzot0StDsMmS9oh9akVD oHisO2WhKfBg2JW3fP9oKYg= X-Google-Smtp-Source: ADUXVKKr/VVZxSc1hXRuDwV8lZKZIItqcLpqBisgxyXkYPIii11W2eKy92qWMGKBO7cg91cheEnhiA== X-Received: by 2002:adf:b297:: with SMTP id g23-v6mr11655848wrd.218.1528704502814; Mon, 11 Jun 2018 01:08:22 -0700 (PDT) Received: from localhost.localdomain ([185.49.42.196]) by smtp.gmail.com with ESMTPSA id j13-v6sm63336802wre.38.2018.06.11.01.08.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 01:08:21 -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 09:08:10 +0100 Message-Id: <20180611080812.16786-2-carlo@caione.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611080812.16786-1-carlo@caione.org> References: <20180611080812.16786-1-carlo@caione.org> Cc: Carlo Caione Subject: [U-Boot] [PATCH v2 1/3] 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