Skip to contentSkip to conversation

clk: stm32: add configuration flags for each of the stm32 drivers

PATCH Superseded Benjamin Gaignard 1 participant 2 messages Jan 17, 2018 – Feb 14, 2018 Common clk

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 clk: stm32: add configuration flags for each of the stm32 drivers

Add two configuration flags to be able to not compile all the time stm32f and stm32h7 drivers when ARCH_STM32 is set.
That help to save some space on those small platforms.

---
 drivers/clk/Kconfig  | 14 ++++++++++++++
 drivers/clk/Makefile |  4 ++--
 2 files changed, 16 insertions(+), 2 deletions(-)
drivers/clk/Kconfig +14 -0
index 1c4e1aa6767e..47243e8675c1 100644
@@ -226,6 +226,20 @@ config COMMON_CLK_VC5
 	  This driver supports the IDT VersaClock 5 and VersaClock 6
 	  programmable clock generators.
 
+config COMMON_CLK_STM32F
+	bool "Clock driver for stm32f4 and stm32f7 SoC families"
+	depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746
+	help
+	---help---
+	  Support for stm32f4 and stm32f7 SoC families clocks
+
+config COMMON_CLK_STM32H7
+	bool "Clock driver for stm32h7 SoC family"
+	depends on MACH_STM32H743
+	help
+	---help---
+	  Support for stm32h7 SoC family clocks
+
 source "drivers/clk/bcm/Kconfig"
 source "drivers/clk/hisilicon/Kconfig"
 source "drivers/clk/imgtec/Kconfig"
drivers/clk/Makefile +2 -2
index f7f761b02bed..956dce66587b 100644
@@ -44,8 +44,8 @@ obj-$(CONFIG_COMMON_CLK_SCPI)           += clk-scpi.o
 obj-$(CONFIG_COMMON_CLK_SI5351)		+= clk-si5351.o
 obj-$(CONFIG_COMMON_CLK_SI514)		+= clk-si514.o
 obj-$(CONFIG_COMMON_CLK_SI570)		+= clk-si570.o
-obj-$(CONFIG_ARCH_STM32)		+= clk-stm32f4.o
-obj-$(CONFIG_ARCH_STM32)		+= clk-stm32h7.o
+obj-$(CONFIG_COMMON_CLK_STM32F) 	+= clk-stm32f4.o
+obj-$(CONFIG_COMMON_CLK_STM32H7)	+= clk-stm32h7.o
 obj-$(CONFIG_ARCH_TANGO)		+= clk-tango4.o
 obj-$(CONFIG_CLK_TWL6040)		+= clk-twl6040.o
 obj-$(CONFIG_ARCH_U300)			+= clk-u300.o
Signature · 1 line
2.15.0
#1 lore raw

2018-01-17 10:38 GMT+01:00 Benjamin Gaignard <[email protected]>:

Quoted 6 lines

Add two configuration flags to be able to not compile all the time stm32f and stm32h7 drivers when ARCH_STM32 is set.
That help to save some space on those small platforms.

Gentle ping on this patch, thanks

Benjamin

Quoted 48 lines
---
 drivers/clk/Kconfig  | 14 ++++++++++++++
 drivers/clk/Makefile |  4 ++--
 2 files changed, 16 insertions(+), 2 deletions(-)
drivers/clk/Kconfig +14 -0
index 1c4e1aa6767e..47243e8675c1 100644
@@ -226,6 +226,20 @@ config COMMON_CLK_VC5
          This driver supports the IDT VersaClock 5 and VersaClock 6
          programmable clock generators.
 
+config COMMON_CLK_STM32F
+       bool "Clock driver for stm32f4 and stm32f7 SoC families"
+       depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746
+       help
+       ---help---
+         Support for stm32f4 and stm32f7 SoC families clocks
+
+config COMMON_CLK_STM32H7
+       bool "Clock driver for stm32h7 SoC family"
+       depends on MACH_STM32H743
+       help
+       ---help---
+         Support for stm32h7 SoC family clocks
+
 source "drivers/clk/bcm/Kconfig"
 source "drivers/clk/hisilicon/Kconfig"
 source "drivers/clk/imgtec/Kconfig"
drivers/clk/Makefile +2 -3
index f7f761b02bed..956dce66587b 100644
@@ -44,8 +44,8 @@ obj-$(CONFIG_COMMON_CLK_SCPI)           += clk-scpi.o
 obj-$(CONFIG_COMMON_CLK_SI5351)                += clk-si5351.o
 obj-$(CONFIG_COMMON_CLK_SI514)         += clk-si514.o
 obj-$(CONFIG_COMMON_CLK_SI570)         += clk-si570.o
-obj-$(CONFIG_ARCH_STM32)               += clk-stm32f4.o
-obj-$(CONFIG_ARCH_STM32)               += clk-stm32h7.o
+obj-$(CONFIG_COMMON_CLK_STM32F)        += clk-stm32f4.o
+obj-$(CONFIG_COMMON_CLK_STM32H7)       += clk-stm32h7.o
 obj-$(CONFIG_ARCH_TANGO)               += clk-tango4.o
 obj-$(CONFIG_CLK_TWL6040)              += clk-twl6040.o
 obj-$(CONFIG_ARCH_U300)                        += clk-u300.o
--

2.15.0