summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-12-12 15:19:41 -0600
committerTom Rini <[email protected]>2025-12-12 15:20:54 -0600
commitf4b50e75014249242a99a58d5024d575e1c95c2f (patch)
tree752a4c0c8598c1b7581da2ed3d5dce4ffc20031c
parent86d2747a9c92dacccf0bedd57d586252e2c9532d (diff)
parentf75f8397e813c3aacb147e5177ab969071d759b2 (diff)
Merge patch series "clk: ti: Cleanup common functions and omap-cm"
Markus Schneider-Pargmann (TI.com) <[email protected]> says: This series cleans up the direct dependency of ARCH_OMAP2PLUS to compile ti/clk.c which holds common functions for other clock drivers. It creates its own config symbols for these common functions and for the omap-cm driver as well. The omap-cm driver config symbol is added as default enabled. Link: https://lore.kernel.org/r/20251128-topic-am33-clk-regmap-dep-v2026-01-v2-0-451b4f4e7e85@baylibre.com/
-rw-r--r--drivers/clk/ti/Kconfig18
-rw-r--r--drivers/clk/ti/Makefile4
2 files changed, 20 insertions, 2 deletions
diff --git a/drivers/clk/ti/Kconfig b/drivers/clk/ti/Kconfig
index 34fba089992..3b995ab8f47 100644
--- a/drivers/clk/ti/Kconfig
+++ b/drivers/clk/ti/Kconfig
@@ -3,9 +3,24 @@
# Copyright (C) 2020 Dario Binacchi <[email protected]>
#
+config CLK_TI_OMAP2PLUS
+ bool
+ depends on CLK
+ select REGMAP
+ help
+ Common clock functions used in some TI clock drivers.
+
+config CLK_TI_OMAP4_CM
+ bool "TI OMAP4 clock manager driver"
+ depends on CLK && ARCH_OMAP2PLUS
+ default y
+ help
+ This enables the OMAP4 clock manager (CM) stub driver.
+
config CLK_TI_AM3_DPLL
bool "TI AM33XX Digital Phase-Locked Loop (DPLL) clock drivers"
depends on CLK && OF_CONTROL && ARCH_OMAP2PLUS
+ select CLK_TI_OMAP2PLUS
help
This enables the DPLL clock drivers support on AM33XX SoCs. The DPLL
provides all interface clocks and functional clocks to the processor.
@@ -19,18 +34,21 @@ config CLK_TI_CTRL
config CLK_TI_DIVIDER
bool "TI divider clock driver"
depends on CLK && OF_CONTROL && CLK_CCF && ARCH_OMAP2PLUS
+ select CLK_TI_OMAP2PLUS
help
This enables the divider clock driver support on TI's SoCs.
config CLK_TI_GATE
bool "TI gate clock driver"
depends on CLK && OF_CONTROL && ARCH_OMAP2PLUS
+ select CLK_TI_OMAP2PLUS
help
This enables the gate clock driver support on TI's SoCs.
config CLK_TI_MUX
bool "TI mux clock driver"
depends on CLK && OF_CONTROL && CLK_CCF && ARCH_OMAP2PLUS
+ select CLK_TI_OMAP2PLUS
help
This enables the mux clock driver support on TI's SoCs.
diff --git a/drivers/clk/ti/Makefile b/drivers/clk/ti/Makefile
index a58f19f46d9..74e4329a343 100644
--- a/drivers/clk/ti/Makefile
+++ b/drivers/clk/ti/Makefile
@@ -3,13 +3,13 @@
# Copyright (C) 2020 Dario Binacchi <[email protected]>
#
-obj-$(CONFIG_ARCH_OMAP2PLUS) += clk.o omap4-cm.o
-
obj-$(CONFIG_CLK_TI_AM3_DPLL) += clk-am3-dpll.o clk-am3-dpll-x2.o
obj-$(CONFIG_CLK_TI_CTRL) += clk-ctrl.o
obj-$(CONFIG_CLK_TI_DIVIDER) += clk-divider.o
obj-$(CONFIG_CLK_TI_GATE) += clk-gate.o
obj-$(CONFIG_CLK_TI_MUX) += clk-mux.o
+obj-$(CONFIG_CLK_TI_OMAP2PLUS) += clk.o
+obj-$(CONFIG_CLK_TI_OMAP4_CM) += omap4-cm.o
obj-$(CONFIG_CLK_TI_SCI) += clk-sci.o
obj-$(CONFIG_$(PHASE_)CLK_K3_PLL) += clk-k3-pll.o
obj-$(CONFIG_$(PHASE_)CLK_K3) += clk-k3.o