Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932248AbbEVHya (ORCPT ); Fri, 22 May 2015 03:54:30 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:59597 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbbEVHy2 convert rfc822-to-8bit (ORCPT ); Fri, 22 May 2015 03:54:28 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Stefan Agner , linux@arm.linux.org.uk, manabian@gmail.com, linux-kernel@vger.kernel.org, mcoquelin.stm32@gmail.com, u.kleine-koenig@pengutronix.de, olof@lixom.net Subject: Re: [PATCH soc] ARM: use ARM_SINGLE_ARMV7M for ARMv7-M platforms Date: Fri, 22 May 2015 09:53:51 +0200 Message-ID: <3824169.vxchxyBt3o@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1432161344-1930-1-git-send-email-stefan@agner.ch> References: <1432161344-1930-1-git-send-email-stefan@agner.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Provags-ID: V03:K0:I8FwoDCTw3RwPMGv88d+nOqEVaIKxl+0UKIs1p2Md4q/8ogLVNO qkvT56ZUsc2yHxHOIDrkFIbXwWNHCMRa9ao2aVxoI0fH5hrrTFGVxWuUTQIm6R/+OJ2TBtz 3XCOILBOJhkrqCQVmOJxB2VV3i5EjJzpNwPwBFf+cwviDa4TgL+F7+ZNd+9ucgFDqAIwMWB re8ESWAsCS90lA25z13iw== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3515 Lines: 101 On Thursday 21 May 2015 00:35:44 Stefan Agner wrote: > Use the new config symbol ARM_SINGLE_ARMV7M which groups config > symbols used by modern ARMv7-M platforms. This allows supporting > multiple ARMv7-M platforms in one kernel image. However, a common > kernel image requires the combined platforms to share the same > main memory layout to be bootable. > > Acked-by: Uwe Kleine-K?nig > Signed-off-by: Stefan Agner > --- > Since this is essentially only a shift of config symbols, it > should not change runtime behavior, at least when selecting > only one platform. > > Uwe, this is essentially the same I had in my patchset, just > converting the other platforms too. I was bold and added your > Ack anyway... > > Joachim, Maxime, I test compiled with your defconfigs, compiled > fine on my machine. > > arch/arm/Kconfig | 86 ++++++++++++++++++-------------------------------- > arch/arm/Kconfig.debug | 5 ++- > 2 files changed, 32 insertions(+), 59 deletions(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 75920ed..9b777e3 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -334,6 +334,7 @@ config ARM_SINGLE_ARMV7M > depends on !MMU > select ARCH_WANT_OPTIONAL_GPIOLIB > select ARM_NVIC > + select AUTO_ZRELADDR > select CLKSRC_OF > select COMMON_CLK > select CPU_V7M I just got a build failure for VF610 because of the lack of AUTO_ZRELADDR, so this patch should fix that. Good. > menu "Multiple platform selection" > @@ -1006,6 +951,35 @@ source "arch/arm/mach-zx/Kconfig" > > source "arch/arm/mach-zynq/Kconfig" > > +# ARMv7-M architecture > +config ARCH_EFM32 > + bool "Energy Micro efm32" > + depends on ARM_SINGLE_ARMV7M > + select ARCH_REQUIRE_GPIOLIB > + help > + Support for Energy Micro's (now Silicon Labs) efm32 Giant Gecko > + processors. > + > +config ARCH_LPC18XX > + bool "NXP LPC18xx/LPC43xx" > + depends on ARM_SINGLE_ARMV7M > + select ARCH_HAS_RESET_CONTROLLER > + select ARM_AMBA > + select CLKSRC_LPC32XX > + select PINCTRL > + help > + Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4 > + high performance microcontrollers. > + > +config ARCH_STM32 > + bool "STMicrolectronics STM32" > + depends on ARM_SINGLE_ARMV7M > + select ARCH_HAS_RESET_CONTROLLER > + select ARMV7M_SYSTICK > + select RESET_CONTROLLER > + help > + Support for STMicroelectronics STM32 processors. > + Should we move those options into the respective subdirectories, for consistency with the other platforms? The current top-level Kconfig file is much too large at the moment, so that would reduce the clutter a bit, but then again, all three of these currently don't need a Kconfig file for themselves, so that might be a bit silly as well. Another option might be to consolidate these three into a single directory, if someone can come up with a good name. The machine files are all trivial, so they could even be merged into one as far as I can tell, we just need slightly different 'select' statements above. If we do that, is it possible to merge Vybrid into that as well? I guess the main question here is how much other infrastructure (if any) from mach-imx is used on vf610, and if there is some other way to do that. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/