]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: spacemit: Respect Kconfig setting when building modules
authorInochi Amaoto <inochiama@gmail.com>
Fri, 19 Dec 2025 01:28:17 +0000 (09:28 +0800)
committerYixun Lan <dlan@gentoo.org>
Tue, 23 Dec 2025 02:28:28 +0000 (10:28 +0800)
commit5ec8cbbc54c82c0bdae4dbf0e5aecf9817bde2b9
tree37d343d4087c89709afd50d403d3b5a8e4294880
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
clk: spacemit: Respect Kconfig setting when building modules

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: 1b72c59db0ad ("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>
drivers/clk/spacemit/Makefile
drivers/clk/spacemit/ccu-k1.c
drivers/clk/spacemit/ccu_common.c [new file with mode: 0644]
drivers/clk/spacemit/ccu_ddn.c
drivers/clk/spacemit/ccu_mix.c
drivers/clk/spacemit/ccu_pll.c