summaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-31 08:57:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-01 09:02:04 +0100
commit314dcbc09ae7f3274583b55df1a61a0f8f830417 (patch)
tree6c2a5bf5b60fbd3246ad224bd99647ce8fa6ea68 /arch/arm/Kconfig
parent6e8f41b475ecbfc8cfe8eaddf2c99897bf0698ff (diff)
downloadbarebox-314dcbc09ae7f3274583b55df1a61a0f8f830417.tar.gz
barebox-314dcbc09ae7f3274583b55df1a61a0f8f830417.tar.xz
ARM: stm32mp: allow driver reuse for STM32 MCUs
Most peripheral driver are usable for both STM32 MPUs and MCUs, but so far we they were only used for STM32MP1. In preparation for adding MCU support, introduce a new ARCH_STM32 selected by ARCH_STM32MP and migrate common drivers to it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220131075725.1873026-12-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r--arch/arm/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fecbe39233..299e0ab080 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -29,6 +29,12 @@ config TEXT_BASE
menu "System Type"
+config ARCH_STM32
+ bool
+ help
+ Selected by both STM32 MCUs and MPUs to restrict driver
+ visibility.
+
choice
prompt "ARM system type"
@@ -185,6 +191,7 @@ config ARCH_S3C64xx
config ARCH_STM32MP
bool "STMicroelectronics STM32MP"
+ select ARCH_STM32
select CPU_V7
select HAVE_PBL_MULTI_IMAGES
select CLKDEV_LOOKUP