From: Maxime Ripard Date: Tue, 7 Feb 2017 16:22:57 +0100 Subject: [U-Boot] [PATCH v3 04/13] sunxi: simplify ACTLR.SMP bit set #ifdef In-Reply-To: <36efe766-19b7-60d8-95ae-fdbc58d29f49@arm.com> References: <1485912970-7567-1-git-send-email-andre.przywara@arm.com> <1485912970-7567-5-git-send-email-andre.przywara@arm.com> <36efe766-19b7-60d8-95ae-fdbc58d29f49@arm.com> Message-ID: <20170207152257.4whjynlxatsaflds@lukather> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Feb 06, 2017 at 11:29:26AM +0000, Andre Przywara wrote: > Hi, > > On 03/02/17 10:52, Jagan Teki wrote: > > On Wed, Feb 1, 2017 at 2:36 AM, Andre Przywara wrote: > >> Instead of enumerating all SoC families that need that bit set, let's > >> just express this more clearly: The SMP bits needs to be set on > >> SMP capable ARMv7 CPUs. It's much easier in Kconfig to express it the > >> other way round, so we use ! CPU_IS_UP and ! ARM64. > >> > >> Signed-off-by: Andre Przywara > >> Acked-by: Maxime Ripard > >> --- > >> arch/arm/Kconfig | 4 ++++ > >> arch/arm/mach-sunxi/board.c | 5 +---- > >> board/sunxi/Kconfig | 2 ++ > >> 3 files changed, 7 insertions(+), 4 deletions(-) > >> > >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > >> index fc36723..98791c0 100644 > >> --- a/arch/arm/Kconfig > >> +++ b/arch/arm/Kconfig > >> @@ -126,6 +126,10 @@ config ENABLE_ARM_SOC_BOOT0_HOOK > >> ARM_SOC_BOOT0_HOOK which contains the required assembler > >> preprocessor code. > >> > >> +config ARM_CORTEX_CPU_IS_UP > >> + bool > >> + default n > > > > Better to place this in sunxi, since no other code using this expect > > sunxi and the name CORTEX may also refer arm64 use something 32 > > related. > > Sigh, can you please check back with Maxime on what's the right thing here? > http://lists.denx.de/pipermail/u-boot/2017-January/279417.html > > If it's about the name, shall we use ARM_CORTEX_V7_CPU_IS_UP? > > I was briefly tempted to unify all ACTLR.SMP bit sets from all over the > ARM code, but this looks like a can of worms to me, so I'd rather keep > this one closed. There's at least one other SoC in a similar situation (imx7 solo), so I think it should really be made generic. I don't really care about the name though, but keeping it in sunxi is just creating yet another candidate for a duplicated and redundant option. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: