diff mbox series

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

Message ID 20180115142151.22225-1-benjamin.gaignard@st.com
State Superseded
Headers show
Series clk: stm32: add configuration flags for each of the stm32 drivers | expand

Commit Message

Benjamin Gaignard Jan. 15, 2018, 2:21 p.m. UTC
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.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

---
 drivers/clk/Kconfig  | 15 +++++++++++++++
 drivers/clk/Makefile |  4 ++--
 2 files changed, 17 insertions(+), 2 deletions(-)

-- 
2.15.0

Comments

Gabriel FERNANDEZ Jan. 17, 2018, 6:28 a.m. UTC | #1
Hi Benjamin,

Just remove the extra blanck line.

Otherwise you can addmy

Acked-by: Gabriel Fernandez <gabriel.fernandez@st.com>


Best regards
Gabriel

On 01/15/2018 03:21 PM, Benjamin Gaignard wrote:
> 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.

>

> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

> ---

>   drivers/clk/Kconfig  | 15 +++++++++++++++

>   drivers/clk/Makefile |  4 ++--

>   2 files changed, 17 insertions(+), 2 deletions(-)

>

> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig

> index 1c4e1aa6767e..c876eb828fc4 100644

> --- a/drivers/clk/Kconfig

> +++ b/drivers/clk/Kconfig

> @@ -226,6 +226,21 @@ 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

> +

> +

Removeextrablankline
>   source "drivers/clk/bcm/Kconfig"

>   source "drivers/clk/hisilicon/Kconfig"

>   source "drivers/clk/imgtec/Kconfig"

> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile

> index f7f761b02bed..4a8e063a7159 100644

> --- a/drivers/clk/Makefile

> +++ b/drivers/clk/Makefile

> @@ -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
diff mbox series

Patch

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 1c4e1aa6767e..c876eb828fc4 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -226,6 +226,21 @@  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"
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index f7f761b02bed..4a8e063a7159 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -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