Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59A9DC433F5 for ; Thu, 2 Sep 2021 23:12:56 +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 9BCBE603E9 for ; Thu, 2 Sep 2021 23:12:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BCBE603E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.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 D43E783501; Fri, 3 Sep 2021 01:12:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.b="QjpFxsza"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B988483500; Fri, 3 Sep 2021 01:12:50 +0200 (CEST) Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3E0B7834FF for ; Fri, 3 Sep 2021 01:12:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jh80.chung@samsung.com Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20210902231241epoutp01efc30506b6ec9a08de2a3a672903c544~hJDeWTIGZ2488224882epoutp013 for ; Thu, 2 Sep 2021 23:12:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20210902231241epoutp01efc30506b6ec9a08de2a3a672903c544~hJDeWTIGZ2488224882epoutp013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1630624361; bh=foM1cEO9L/R6qUBHwGbYu3TRhRnvejBHNIIIhs0q7Gs=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=QjpFxszaqxRICCakr5HM1L0m/DPcgEjPSv5q2OwlRLmZgxvky+XcD+EGewGiDnq7g fsU+gImQCjM5+x75LZ2EdZOVXiNR/tOQCCTF1ZimjNiq/TVZN3MGp01VjIUSdQJ3H+ icFht8EE71nPLKcW9nvIkUK8uBFRozK53XUQMcsc= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20210902231240epcas1p2190863aac6dc2940e9698a99d0c93aae~hJDdlgi3L0436504365epcas1p2Z; Thu, 2 Sep 2021 23:12:40 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.38.236]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4H0xXc4mFqz4x9Q1; Thu, 2 Sep 2021 23:12:32 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id EE.BB.09910.06A51316; Fri, 3 Sep 2021 08:12:32 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20210902231232epcas1p46750d08ba80dcd5cbbb4a47ac0a0e84e~hJDVveX_f2721027210epcas1p46; Thu, 2 Sep 2021 23:12:32 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210902231231epsmtrp2b487f1eee1f6958f97afa1fe4657141b~hJDVuhVbQ1909719097epsmtrp2s; Thu, 2 Sep 2021 23:12:31 +0000 (GMT) X-AuditID: b6c32a35-c2fff700000026b6-65-61315a60cf67 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1B.21.09091.F5A51316; Fri, 3 Sep 2021 08:12:31 +0900 (KST) Received: from [10.113.113.235] (unknown [10.113.113.235]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210902231231epsmtip20b83dab2cfe77e9b2d0bb1e23a5f1ed6~hJDVcfdd61912319123epsmtip2j; Thu, 2 Sep 2021 23:12:31 +0000 (GMT) Subject: Re: [PATCH 04/11] power: pmic: Make the uclass optional in SPL To: Samuel Holland , u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Heiko Schocher , Anatolij Gustschin , Arnaud Ferraris , Bharat Gooty , Igor Opaniuk , Jernej Skrabec , Minkyu Kang , Rayagonda Kokatanur , Simon Glass , Stephan Gerhold , Tim Harvey , Tom Rini From: Jaehoon Chung Message-ID: Date: Fri, 3 Sep 2021 08:13:18 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210821230520.10051-5-samuel@sholland.org> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01T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Wqto3lmSm8/MpstFbbDPSz54S2eOZsayL40bM M/8LPidLlNv1s/0Rfqq5ibNqm2tEc6wq2D9lW/qP9MWiKFlMZHryPLo8EJKlcZ1RHUsbCL1W p83rGjSHh7G+Ldav0ZEjvfpbV7uXWHPt629xH3beGX+RsyAPKSF3fV63Fa9LsfJc7Rkhvu7l 9JGY9Z0bauTXw4PVXT3joqjdkuhle57yV40pba9bW5k+NKJ5Q0Wu2yORX8N73afeeGXG/iMz MYd78yJDqny3uFkny39vGSrxKi1LPJ37o4g8bMuRJfHrwM9LjU0v2/KNTbGctwLnk9ggP0zL s38ALeyuZV4DAAA= X-CMS-MailID: 20210902231232epcas1p46750d08ba80dcd5cbbb4a47ac0a0e84e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210821230536epcas1p23633e9c3e8583651bec006c811480aa7 References: <20210821230520.10051-1-samuel@sholland.org> <20210821230520.10051-5-samuel@sholland.org> 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 8/22/21 8:05 AM, Samuel Holland wrote: > Some platforms still cannot use the driver model in SPL due to SRAM > space limitations. However, they need to use DM_PMIC in U-Boot proper. > Add a new symbol so that DM_PMIC can be disabled in SPL, while keeping > it available elsewhere. Also update the SPL-specific symbols to depend > on this new option. > > Signed-off-by: Samuel Holland Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > drivers/power/pmic/Kconfig | 17 ++++++++++++++++- > drivers/power/pmic/Makefile | 2 +- > 2 files changed, 17 insertions(+), 2 deletions(-) > > diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig > index 56c0ef70312..0c4da9c5536 100644 > --- a/drivers/power/pmic/Kconfig > +++ b/drivers/power/pmic/Kconfig > @@ -12,6 +12,13 @@ config DM_PMIC > > if DM_PMIC > > +config SPL_DM_PMIC > + bool "Enable Driver Model for PMIC drivers (UCLASS_PMIC) in SPL" > + depends on SPL_DM > + default y > + help > + This config enables the driver-model PMIC support in SPL. > + > config PMIC_CHILDREN > bool "Allow child devices for PMICs" > default y > @@ -23,6 +30,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 > @@ -57,7 +65,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. > @@ -78,6 +86,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 > @@ -105,6 +114,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 > @@ -118,6 +128,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. > @@ -130,6 +141,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. > @@ -292,18 +304,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. > diff --git a/drivers/power/pmic/Makefile b/drivers/power/pmic/Makefile > index 5d1a97e5f6f..6e40c0971fb 100644 > --- a/drivers/power/pmic/Makefile > +++ b/drivers/power/pmic/Makefile > @@ -3,7 +3,7 @@ > # Copyright (C) 2012 Samsung Electronics > # Lukasz Majewski > > -obj-$(CONFIG_DM_PMIC) += pmic-uclass.o > +obj-$(CONFIG_$(SPL_)DM_PMIC) += pmic-uclass.o > obj-$(CONFIG_DM_PMIC_FAN53555) += fan53555.o > obj-$(CONFIG_$(SPL_)DM_PMIC_DA9063) += da9063.o > obj-$(CONFIG_DM_PMIC_MAX77686) += max77686.o >