linux/drivers/clk/spacemit
Inochi Amaoto e9ed7237b8 clk: spacemit: Respect Kconfig setting when building modules
[ Upstream commit 5ec8cbbc54 ]

Currently, the SPACEMIT_CCU entry is only a switch for enabling entry
SPACEMIT_K1_CCU. It does not guide the build for common clock codes
even if it is a tristate entry. This makes this entry useless.

Change the Makefile to add a separate build for common clock logic,
so the SPACEMIT_CCU entry takes effect, also add necessary
MODULE_LICENSE()/MODULE_DESCRIPTION()/EXPORT_SYMBOL() for the module
build.

Fixes: 1b72c59db0 ("clk: spacemit: Add clock support for SpacemiT K1 SoC")
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Reviewed-by: Yixun Lan <dlan@gentoo.org>
Link: https://lore.kernel.org/r/20251219012819.440972-2-inochiama@gmail.com
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:28 -08:00
..
ccu-k1.c clk: spacemit: Respect Kconfig setting when building modules 2026-02-26 14:59:28 -08:00
ccu_common.c clk: spacemit: Respect Kconfig setting when building modules 2026-02-26 14:59:28 -08:00
ccu_common.h clk: spacemit: Add clock support for SpacemiT K1 SoC 2025-04-17 03:22:53 +08:00
ccu_ddn.c clk: spacemit: Respect Kconfig setting when building modules 2026-02-26 14:59:28 -08:00
ccu_ddn.h clk: spacemit: introduce pre-div for ddn clock 2025-09-19 22:54:44 -07:00
ccu_mix.c clk: spacemit: Respect Kconfig setting when building modules 2026-02-26 14:59:28 -08:00
ccu_mix.h clk: spacemit: mark K1 pll1_d8 as critical 2025-07-04 09:06:33 +08:00
ccu_pll.c clk: spacemit: Respect Kconfig setting when building modules 2026-02-26 14:59:28 -08:00
ccu_pll.h clk: spacemit: Add clock support for SpacemiT K1 SoC 2025-04-17 03:22:53 +08:00
Kconfig clk: spacemit: set up reset auxiliary devices 2025-07-03 23:24:00 +08:00
Makefile clk: spacemit: Respect Kconfig setting when building modules 2026-02-26 14:59:28 -08:00