Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35A50C433F5 for ; Tue, 12 Oct 2021 10:47:14 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 407DD60D07 for ; Tue, 12 Oct 2021 10:47:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 407DD60D07 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45D1183715; Tue, 12 Oct 2021 12:47:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 2CFF883713; Tue, 12 Oct 2021 12:47:08 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 960D583483 for ; Tue, 12 Oct 2021 12:47:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C9F43101E; Tue, 12 Oct 2021 03:47:03 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CAF243F694; Tue, 12 Oct 2021 03:47:01 -0700 (PDT) Date: Tue, 12 Oct 2021 11:46:56 +0100 From: Andre Przywara To: Samuel Holland Cc: u-boot@lists.denx.de, Jagan Teki , Jaehoon Chung , Heiko Schocher , Anatolij Gustschin , Arnaud Ferraris , Bharat Gooty , Igor Opaniuk , Jernej Skrabec , Minkyu Kang , Rayagonda Kokatanur , Simon Glass , Stephan Gerhold , Tim Harvey , Tom Rini Subject: Re: [PATCH v2 02/12] power: pmic: Consistently depend on SPL_DM_PMIC Message-ID: <20211012114656.32f5211e@donnerap.cambridge.arm.com> In-Reply-To: <20211008051725.29401-3-samuel@sholland.org> References: <20211008051725.29401-1-samuel@sholland.org> <20211008051725.29401-3-samuel@sholland.org> Organization: ARM X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Fri, 8 Oct 2021 00:17:15 -0500 Samuel Holland wrote: Hi, > Now that there is a separate symbol to enable DM_PMIC in SPL, update the > the SPL-specific driver symbols to depend on this new option. Yes, confirmed that this covers all SPL DM_PMIC drivers. Also checked that those who didn't have DM in their Kconfig symbol name, are indeed DM style drivers. > Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Cheers, Andre > --- > > Changes in v2: > - Rebase to pick up 7abf178b ("power: Tidy up #undef of CONFIG_DM_PMIC") > > drivers/power/pmic/Kconfig | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig > index 2472555a3ff..e8a04325f85 100644 > --- a/drivers/power/pmic/Kconfig > +++ b/drivers/power/pmic/Kconfig > @@ -36,6 +36,7 @@ config PMIC_CHILDREN > > config SPL_PMIC_CHILDREN > bool "Allow child devices for PMICs in SPL" > + depends on SPL_DM_PMIC > default y > ---help--- > This allows PMICs to support child devices (such as regulators) > in @@ -70,7 +71,7 @@ config DM_PMIC_DA9063 > > config SPL_DM_PMIC_DA9063 > bool "Enable Driver Model for the Dialog DA9063 PMIC in SPL" > - depends on SPL > + depends on SPL_DM_PMIC > help > This config enables implementation of driver-model pmic > uclass features for PMIC DA9063. The driver implements read/write > operations. @@ -91,6 +92,7 @@ config DM_PMIC_BD71837 > > config SPL_DM_PMIC_BD71837 > bool "Enable Driver Model for PMIC BD71837 in SPL stage" > + depends on SPL_DM_PMIC > help > This config enables implementation of driver-model pmic uclass > features for PMIC BD71837. The driver implements read/write > @@ -118,6 +120,7 @@ config DM_PMIC_MP5416 > > config SPL_DM_PMIC_MP5416 > bool "Enable Driver Model for PMIC MP5416 in SPL stage" > + depends on SPL_DM_PMIC > help > This config enables implementation of driver-model pmic uclass > features for PMIC MP5416. The driver implements read/write > @@ -131,6 +134,7 @@ config DM_PMIC_PCA9450 > > config SPL_DM_PMIC_PCA9450 > bool "Enable Driver Model for PMIC PCA9450" > + depends on SPL_DM_PMIC > help > This config enables implementation of driver-model pmic > uclass features for PMIC PCA9450 in SPL. The driver implements > read/write operations. @@ -143,6 +147,7 @@ config DM_PMIC_PFUZE100 > > config SPL_DM_PMIC_PFUZE100 > bool "Enable Driver Model for PMIC PFUZE100 in SPL" > + depends on SPL_DM_PMIC > ---help--- > This config enables implementation of driver-model pmic uclass > features for PMIC PFUZE100 in SPL. The driver implements read/write > operations. @@ -204,6 +209,7 @@ config PMIC_RK8XX > > config SPL_PMIC_RK8XX > bool "Enable support for Rockchip PMIC RK8XX" > + depends on SPL_DM_PMIC > ---help--- > The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 > LDOs, an RTC and two low Rds (resistance (drain to source)) switches. It > is @@ -313,18 +319,21 @@ config PMIC_STPMIC1 > > config SPL_PMIC_PALMAS > bool "Enable driver for Texas Instruments PALMAS PMIC" > + depends on SPL_DM_PMIC > help > The PALMAS is a PMIC containing several LDOs, SMPS. > This driver binds the pmic children in SPL. > > config SPL_PMIC_LP873X > bool "Enable driver for Texas Instruments LP873X PMIC" > + depends on SPL_DM_PMIC > help > The LP873X is a PMIC containing couple of LDOs and couple of > SMPS. This driver binds the pmic children in SPL. > > config SPL_PMIC_LP87565 > bool "Enable driver for Texas Instruments LP87565 PMIC" > + depends on SPL_DM_PMIC > help > The LP87565 is a PMIC containing a bunch of SMPS. > This driver binds the pmic children in SPL.