ARM: stm32: create dedicated kconfig for STM32 machine
authorAlexandre TORGUE <alexandre.torgue@st.com>
Mon, 30 Jan 2017 16:33:13 +0000 (17:33 +0100)
committerAlexandre TORGUE <alexandre.torgue@st.com>
Fri, 24 Mar 2017 08:35:12 +0000 (09:35 +0100)
Create a dedicated Kconfig file in mach-stm32/ and move existing stm32
configs inside.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
arch/arm/Kconfig
arch/arm/mach-stm32/Kconfig [new file with mode: 0644]

index 0d4e71b..4386fd8 100644 (file)
@@ -819,6 +819,8 @@ source "arch/arm/mach-spear/Kconfig"
 
 source "arch/arm/mach-sti/Kconfig"
 
+source "arch/arm/mach-stm32/Kconfig"
+
 source "arch/arm/mach-s3c24xx/Kconfig"
 
 source "arch/arm/mach-s3c64xx/Kconfig"
@@ -877,28 +879,6 @@ config ARCH_LPC18XX
          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 CLKSRC_STM32
-       select PINCTRL
-       select RESET_CONTROLLER
-       select STM32_EXTI
-       help
-         Support for STMicroelectronics STM32 processors.
-
-config MACH_STM32F429
-       bool "STMicrolectronics STM32F429"
-       depends on ARCH_STM32
-       default y
-
-config MACH_STM32F746
-       bool "STMicrolectronics STM32F746"
-       depends on ARCH_STM32
-       default y
-
 config ARCH_MPS2
        bool "ARM MPS2 platform"
        depends on ARM_SINGLE_ARMV7M
diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
new file mode 100644 (file)
index 0000000..40115fa
--- /dev/null
@@ -0,0 +1,21 @@
+config ARCH_STM32
+       bool "STMicrolectronics STM32"
+       depends on ARM_SINGLE_ARMV7M
+       select ARCH_HAS_RESET_CONTROLLER
+       select ARMV7M_SYSTICK
+       select CLKSRC_STM32
+       select PINCTRL
+       select RESET_CONTROLLER
+       select STM32_EXTI
+       help
+         Support for STMicroelectronics STM32 processors.
+
+config MACH_STM32F429
+       bool "STMicrolectronics STM32F429"
+       depends on ARCH_STM32
+       default y
+
+config MACH_STM32F746
+       bool "STMicrolectronics STM32F746"
+       depends on ARCH_STM32
+       default y