From: Phil Sutter <phil@nwl.cc>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Marek Vasut" <marex@denx.de>,
"Philip Oberfichtner" <pro@denx.de>,
u-boot@lists.denx.de,
"Christoph Niedermaier" <cniedermaier@dh-electronics.com>,
"Stefano Babic" <sbabic@denx.de>,
"Adam Ford" <aford173@gmail.com>,
"Anatolij Gustschin" <agust@denx.de>,
"Andreas Geisreiter" <ageisreiter@dh-electronics.de>,
"Andrew F. Davis" <afd@ti.com>,
"Baruch Siach" <baruch@tkos.co.il>,
"Bharat Gooty" <bharat.gooty@broadcom.com>,
"Breno Lima" <breno.lima@nxp.com>,
"Chin-Liang See" <clsee@altera.com>,
"Chris Packham" <chris.packham@alliedtelesis.co.nz>,
"Dalon Westergreen" <dwesterg@gmail.com>,
"Dennis Gilmore" <dgilmore@redhat.com>,
"Dinh Nguyen" <dinguyen@kernel.org>,
"Eric Bénard" <eric@eukrea.com>, "Eric Nelson" <eric@nelint.com>,
"Fabio Estevam" <festevam@gmail.com>,
"Francesco Montefoschi" <francesco.montefoschi@udoo.org>,
"Heiko Schocher" <hs@denx.de>,
"Holger Brunck" <holger.brunck@hitachienergy.com>,
"Huan 'Kitty' Wang" <HuanWang@ge.com>,
"Humberto Naves" <hsnaves@gmail.com>, "Ian Ray" <ian.ray@ge.com>,
"Jaehoon Chung" <jh80.chung@samsung.com>,
"Jagan Teki" <jagan@amarulasolutions.com>,
"Jim Liu" <JJLIU0@nuvoton.com>,
"Luka Kovacic" <luka.kovacic@sartura.hr>,
"Luka Perkov" <luka.perkov@sartura.hr>,
"Lukasz Majewski" <lukma@denx.de>,
"Marcel Ziswiler" <marcel.ziswiler@toradex.com>,
"Marek Behún" <kabel@kernel.org>,
"Mario Six" <mario.six@gdsys.cc>,
"Markus Niebel" <Markus.Niebel@tq-group.com>,
"Martyn Welch" <martyn.welch@collabora.com>,
"Matthias Winker" <matthias.winker@de.bosch.com>,
"Michal Simek" <michal.simek@amd.com>,
"Niel Fourie" <lusus@denx.de>,
"Nikita Kiryanov" <nikita@compulab.co.il>,
"Otavio Salvador" <otavio@ossystems.com.br>,
"Patrick Delaunay" <patrick.delaunay@foss.st.com>,
"Pavel Machek" <pavel@denx.de>,
"Paweł Anikiel" <pan@semihalf.com>, "Peng Fan" <peng.fan@nxp.com>,
"Raffaele RECALCATI" <raffaele.recalcati@bticino.it>,
"Rayagonda Kokatanur" <rayagonda.kokatanur@broadcom.com>,
"Rick Chen" <rick@andestech.com>,
"Rui Miguel Silva" <rui.silva@linaro.org>,
"Silvio Fricke" <open-source@softing.de>,
"Simon Glass" <sjg@chromium.org>,
"Simone CIANNI" <simone.cianni@bticino.it>,
"Soeren Moch" <smoch@web.de>, "Stanley Chu" <yschu@nuvoton.com>,
"Stefan Roese" <sr@denx.de>,
"Stephan Gerhold" <stephan@gerhold.net>,
"Thomas Huth" <thuth@redhat.com>,
"Tim Harvey" <tharvey@gateworks.com>,
"Troy Kisky" <troy.kisky@boundarydevices.com>,
"Wolfgang Grandegger" <wg@aries-embedded.de>,
"Wolfgang Wallner" <wolfgang.wallner@br-automation.com>,
u-boot@dh-electronics.com
Subject: Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig
Date: Tue, 9 Aug 2022 16:32:05 +0200 [thread overview]
Message-ID: <YvJv5SFJmW5Yf6Zn@orbyte.nwl.cc> (raw)
In-Reply-To: <20220809112151.jhrytuxraqcahzh5@pali>
On Tue, Aug 09, 2022 at 01:21:51PM +0200, Pali Rohár wrote:
> On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote:
> > On 8/9/22 12:58, Pali Rohár wrote:
> > > On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner wrote:
> > > > This converts CONFIG_SYS_L2_PL310 to Kconfig.
> > > ...
> > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > > > index 949ebb46ba..dde06bdd96 100644
> > > > --- a/arch/arm/Kconfig
> > > > +++ b/arch/arm/Kconfig
> > > > @@ -488,6 +488,10 @@ config TPL_SYS_THUMB_BUILD
> > > > density. For ARM architectures that support Thumb2 this flag will
> > > > result in Thumb2 code generated by GCC.
> > > > +config SYS_L2_PL310
> > > > + bool "ARM PL310 L2 cache controller"
> > > > + help
> > > > + Enable support for ARM PL310 L2 cache controller in U-Boot
> > > > config SYS_L2CACHE_OFF
> > > > bool "L2cache off"
> > > > diff --git a/arch/arm/mach-mvebu/include/mach/config.h b/arch/arm/mach-mvebu/include/mach/config.h
> > > > index 4add0d9e10..0bba0a4cf9 100644
> > > > --- a/arch/arm/mach-mvebu/include/mach/config.h
> > > > +++ b/arch/arm/mach-mvebu/include/mach/config.h
> > > > @@ -25,8 +25,6 @@
> > > > #define MV88F78X60 /* for the DDR training bin_hdr code */
> > > > #endif
> > > > -#define CONFIG_SYS_L2_PL310
> > > > -
> > > > #define MV_UART_CONSOLE_BASE MVEBU_UART0_BASE
> > > > /* Needed for SPI NOR booting in SPL */
> > >
> > > This option is required for mvebu SoC and is not user (de)-selectable.
> > > So please do not define it in each individual mvebu board. It would make
> > > it harder to introduce a new mvebu board into U-Boot. Instead enable it
> > > for mvebu SoCs like it was before this change. It can be done e.g. by
> > > "select" Kconfig keyword in mvebu Kconfig file.
> >
> > Should it rather be 'default y if MVEBU' in that new PL310 Kconfig option ?
>
> No, because this is just default value of this option and still allows
> end-user to de-select this option.
>
> "select" is IIRC the only way how to force Kconfig to always enable some
> symbol without any option for end-user to disable it.
>
> At least I do not know a way how CONFIG_SYS_L2_PL310 symbol could decide
> that it is required for CONFIG_MVEBU. Just symbol CONFIG_MVEBU can
> decide that it requires CONFIG_SYS_L2_PL310 symbol (and not in opposite
> direction).
That's correct. If this really is to be controlled from PL310 Kconfig
file, one could introduce a hidden (i.e., no prompt) symbol depending on
CONFIG_MVEBU and selecting CONFIG_SYS_L2_PL310. Something like this
might also work:
| config MVEBU_REQUIRE_SYS_L2_PL310
| select SYS_L2_PL310 if MVEBU
Cheers, Phil
next prev parent reply other threads:[~2022-08-09 17:37 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 10:06 [PATCH v3 0/3] ARM: imx6: dh-imx6: Enable d-cache early in SPL Philip Oberfichtner
2022-08-09 10:07 ` [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig Philip Oberfichtner
2022-08-09 10:58 ` Pali Rohár
2022-08-09 11:16 ` Marek Vasut
2022-08-09 11:21 ` Pali Rohár
2022-08-09 11:27 ` Marek Vasut
2022-08-09 11:32 ` Pali Rohár
2022-08-09 11:38 ` Marek Vasut
2022-08-09 12:59 ` Pali Rohár
2022-08-09 13:16 ` Marek Behún
2022-08-09 13:18 ` Marek Behún
2022-08-09 13:46 ` Tom Rini
2022-08-09 16:03 ` Marek Vasut
2022-08-09 16:36 ` Tom Rini
2022-08-09 18:27 ` Marek Vasut
2022-08-11 10:17 ` Philip Oberfichtner
2022-08-16 14:42 ` Philip Oberfichtner
2022-08-09 14:32 ` Phil Sutter [this message]
2022-08-12 8:39 ` Soeren Moch
2022-08-09 10:07 ` [PATCH v3 2/3] ARM: cache: Allow SPL to build cache-pl310.c Philip Oberfichtner
2022-08-09 10:07 ` [PATCH v3 3/3] ARM: imx6: dh-imx6: Enable d-cache early in SPL Philip Oberfichtner
2022-08-09 11:17 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YvJv5SFJmW5Yf6Zn@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=HuanWang@ge.com \
--cc=JJLIU0@nuvoton.com \
--cc=Markus.Niebel@tq-group.com \
--cc=afd@ti.com \
--cc=aford173@gmail.com \
--cc=ageisreiter@dh-electronics.de \
--cc=agust@denx.de \
--cc=baruch@tkos.co.il \
--cc=bharat.gooty@broadcom.com \
--cc=breno.lima@nxp.com \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=clsee@altera.com \
--cc=cniedermaier@dh-electronics.com \
--cc=dgilmore@redhat.com \
--cc=dinguyen@kernel.org \
--cc=dwesterg@gmail.com \
--cc=eric@eukrea.com \
--cc=eric@nelint.com \
--cc=festevam@gmail.com \
--cc=francesco.montefoschi@udoo.org \
--cc=holger.brunck@hitachienergy.com \
--cc=hs@denx.de \
--cc=hsnaves@gmail.com \
--cc=ian.ray@ge.com \
--cc=jagan@amarulasolutions.com \
--cc=jh80.chung@samsung.com \
--cc=kabel@kernel.org \
--cc=luka.kovacic@sartura.hr \
--cc=luka.perkov@sartura.hr \
--cc=lukma@denx.de \
--cc=lusus@denx.de \
--cc=marcel.ziswiler@toradex.com \
--cc=marex@denx.de \
--cc=mario.six@gdsys.cc \
--cc=martyn.welch@collabora.com \
--cc=matthias.winker@de.bosch.com \
--cc=michal.simek@amd.com \
--cc=nikita@compulab.co.il \
--cc=open-source@softing.de \
--cc=otavio@ossystems.com.br \
--cc=pali@kernel.org \
--cc=pan@semihalf.com \
--cc=patrick.delaunay@foss.st.com \
--cc=pavel@denx.de \
--cc=peng.fan@nxp.com \
--cc=pro@denx.de \
--cc=raffaele.recalcati@bticino.it \
--cc=rayagonda.kokatanur@broadcom.com \
--cc=rick@andestech.com \
--cc=rui.silva@linaro.org \
--cc=sbabic@denx.de \
--cc=simone.cianni@bticino.it \
--cc=sjg@chromium.org \
--cc=smoch@web.de \
--cc=sr@denx.de \
--cc=stephan@gerhold.net \
--cc=tharvey@gateworks.com \
--cc=thuth@redhat.com \
--cc=troy.kisky@boundarydevices.com \
--cc=u-boot@dh-electronics.com \
--cc=u-boot@lists.denx.de \
--cc=wg@aries-embedded.de \
--cc=wolfgang.wallner@br-automation.com \
--cc=yschu@nuvoton.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox