Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: introduce ARM_SINGLE_ARMV7M for ARMv7-M platforms

This introduces a new top level config symbol ARM_SINGLE_ARMV7M
for non-MMU, ARMv7-M platforms. It also support multiple ARMv7-M
platforms in one kernel image since the cores share the same
basic memory layout and interrupt controller. However, this works
only if the combined platforms also have a similar (main) memory
layout.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Stefan Agner and committed by
Arnd Bergmann
9c77bc43 7505f042

+16 -2
+13
arch/arm/Kconfig
··· 329 329 select SPARSE_IRQ 330 330 select USE_OF 331 331 332 + config ARM_SINGLE_ARMV7M 333 + bool "ARMv7-M based platforms (Cortex-M0/M3/M4)" 334 + depends on !MMU 335 + select ARCH_WANT_OPTIONAL_GPIOLIB 336 + select ARM_NVIC 337 + select CLKSRC_OF 338 + select COMMON_CLK 339 + select CPU_V7M 340 + select GENERIC_CLOCKEVENTS 341 + select NO_IOPORT_MAP 342 + select SPARSE_IRQ 343 + select USE_OF 344 + 332 345 config ARCH_REALVIEW 333 346 bool "ARM Ltd. RealView family" 334 347 select ARCH_WANT_OPTIONAL_GPIOLIB
+3 -2
arch/arm/Kconfig.debug
··· 1579 1579 1580 1580 config DEBUG_UNCOMPRESS 1581 1581 bool 1582 - depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG 1582 + depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M 1583 1583 default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \ 1584 1584 (!DEBUG_TEGRA_UART || !ZBOOT_ROM) 1585 1585 help ··· 1597 1597 string 1598 1598 default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \ 1599 1599 PLAT_SAMSUNG || ARCH_EFM32 || \ 1600 - ARCH_SHMOBILE_LEGACY || ARCH_LPC18XX 1600 + ARCH_SHMOBILE_LEGACY || \ 1601 + ARCH_LPC18XX || ARM_SINGLE_ARMV7M 1601 1602 default "mach/uncompress.h" 1602 1603 1603 1604 config EARLY_PRINTK