From: Markus Schneider-Pargmann (TI.com) Date: Fri, 28 Nov 2025 20:22:18 +0000 (+0100) Subject: clk: ti: Split common omap2plus functions into new symbol X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f2d0090f9842c5ff2e5f4344fe6cb1f5f515595;p=thirdparty%2Fu-boot.git clk: ti: Split common omap2plus functions into new symbol Create a new symbol for the common clock functions used by some of the omap2plus clock drivers. These drivers now select this new symbol when they need the functions. Note these common functions are not ARCH_OMAP2PLUS specific. Note that the common functions are using regmap, so select it here. Reviewed-by: Tom Rini Signed-off-by: Markus Schneider-Pargmann (TI.com) --- diff --git a/drivers/clk/ti/Kconfig b/drivers/clk/ti/Kconfig index fdda283d6d3..7b8da69712e 100644 --- a/drivers/clk/ti/Kconfig +++ b/drivers/clk/ti/Kconfig @@ -3,9 +3,17 @@ # Copyright (C) 2020 Dario Binacchi # +config CLK_TI_OMAP2PLUS + bool + depends on CLK + select REGMAP + help + Common clock functions used in some TI clock drivers. + 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 +27,21 @@ config CLK_TI_CTRL config CLK_TI_DIVIDER bool "TI divider clock driver" depends on CLK && OF_CONTROL && CLK_CCF + 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 + 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 + 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..329fae67889 100644 --- a/drivers/clk/ti/Makefile +++ b/drivers/clk/ti/Makefile @@ -3,13 +3,14 @@ # Copyright (C) 2020 Dario Binacchi # -obj-$(CONFIG_ARCH_OMAP2PLUS) += clk.o omap4-cm.o +obj-$(CONFIG_ARCH_OMAP2PLUS) += 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_SCI) += clk-sci.o obj-$(CONFIG_$(PHASE_)CLK_K3_PLL) += clk-k3-pll.o obj-$(CONFIG_$(PHASE_)CLK_K3) += clk-k3.o