Unverified Commit 1b72c59d authored by Haylen Chu's avatar Haylen Chu Committed by Yixun Lan
Browse files

clk: spacemit: Add clock support for SpacemiT K1 SoC



The clock tree of K1 SoC contains three main types of clock hardware
(PLL/DDN/MIX) and has control registers split into several multifunction
devices: APBS (PLLs), MPMU, APBC and APMU.

All register operations are done through regmap to ensure atomicity
between concurrent operations of clock driver and reset,
power-domain driver that will be introduced in the future.

Signed-off-by: default avatarHaylen Chu <heylenay@4d2.org>
Reviewed-by: default avatarAlex Elder <elder@riscstar.com>
Reviewed-by: default avatarInochi Amaoto <inochiama@outlook.com>
Reviewed-by: default avatarYixun Lan <dlan@gentoo.org>
Link: https://lore.kernel.org/r/20250416135406.16284-4-heylenay@4d2.org


Signed-off-by: default avatarYixun Lan <dlan@gentoo.org>
parent 80908040
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -517,6 +517,7 @@ source "drivers/clk/samsung/Kconfig"
source "drivers/clk/sifive/Kconfig"
source "drivers/clk/socfpga/Kconfig"
source "drivers/clk/sophgo/Kconfig"
source "drivers/clk/spacemit/Kconfig"
source "drivers/clk/sprd/Kconfig"
source "drivers/clk/starfive/Kconfig"
source "drivers/clk/sunxi/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -145,6 +145,7 @@ obj-$(CONFIG_COMMON_CLK_SAMSUNG) += samsung/
obj-$(CONFIG_CLK_SIFIVE)		+= sifive/
obj-y					+= socfpga/
obj-y					+= sophgo/
obj-y					+= spacemit/
obj-$(CONFIG_PLAT_SPEAR)		+= spear/
obj-y					+= sprd/
obj-$(CONFIG_ARCH_STI)			+= st/
+18 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

config SPACEMIT_CCU
	tristate "Clock support for SpacemiT SoCs"
	depends on ARCH_SPACEMIT || COMPILE_TEST
	select MFD_SYSCON
	help
	  Say Y to enable clock controller unit support for SpacemiT SoCs.

if SPACEMIT_CCU

config SPACEMIT_K1_CCU
	tristate "Support for SpacemiT K1 SoC"
	depends on ARCH_SPACEMIT || COMPILE_TEST
	help
	  Support for clock controller unit in SpacemiT K1 SoC.

endif
+5 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_SPACEMIT_K1_CCU)	= spacemit-ccu-k1.o
spacemit-ccu-k1-y		= ccu_pll.o ccu_mix.o ccu_ddn.o
spacemit-ccu-k1-y		+= ccu-k1.o
+1154 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading