diff mbox series

[v2,2/8] ARM: stm32: use different EXTI driver on ARMv7m and ARMv7a

Message ID 20240507131051.980313-3-antonio.borneo@foss.st.com (mailing list archive)
State New, archived
Headers show
Series irqchip/stm32-exti: split MCU and MPU code, allow module build | expand

Commit Message

Antonio Borneo May 7, 2024, 1:10 p.m. UTC
Build the proper driver by selecting the appropriate config flag.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
 arch/arm/mach-stm32/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index 98145031586f1..41bfcf31f8a76 100644
--- a/arch/arm/mach-stm32/Kconfig
+++ b/arch/arm/mach-stm32/Kconfig
@@ -11,7 +11,8 @@  menuconfig ARCH_STM32
 	select CLKSRC_STM32
 	select PINCTRL
 	select RESET_CONTROLLER
-	select STM32_EXTI
+	select STM32MP_EXTI if ARCH_MULTI_V7
+	select STM32_EXTI if ARM_SINGLE_ARMV7M
 	help
 	  Support for STMicroelectronics STM32 processors.