]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
reset: Create subdirectory for SpacemiT drivers
authorGuodong Xu <guodong@riscstar.com>
Tue, 20 Jan 2026 11:10:50 +0000 (19:10 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Sat, 24 Jan 2026 15:53:02 +0000 (16:53 +0100)
commit2875b4b5d2657ff2fd979103d88e9afcae51481c
treea87c7db4b6f792f7abff9defc2da909091361542
parent216e0a5e98e5f0f02a818884e8acf340892cecae
reset: Create subdirectory for SpacemiT drivers

Create a dedicated subdirectory for SpacemiT reset drivers to allow
for better organization as support for more SoCs is added.

Move the existing K1 reset driver into this new directory and rename
it to reset-spacemit-k1.c.

Rename the Kconfig symbol to RESET_SPACEMIT_K1 and update its default
from ARCH_SPACEMIT to SPACEMIT_K1_CCU. The reset driver depends on the
clock driver to register reset devices as an auxiliary device, so the
default should reflect this dependency.

Also sort the drivers/reset/Kconfig entries alphabetically.

Reviewed-by: Alex Elder <elder@riscstar.com>
Signed-off-by: Guodong Xu <guodong@riscstar.com>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://lore.kernel.org/spacemit/20260114092742-GYC7933267@gentoo.org/
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig
drivers/reset/Makefile
drivers/reset/spacemit/Kconfig [new file with mode: 0644]
drivers/reset/spacemit/Makefile [new file with mode: 0644]
drivers/reset/spacemit/reset-spacemit-k1.c [moved from drivers/reset/reset-spacemit.c with 100% similarity]