From: Inochi Amaoto <inochiama@gmail.com>
To: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Yixun Lan <dlan@gentoo.org>,
Haylen Chu <heylenay@4d2.org>, Alex Elder <elder@riscstar.com>,
Inochi Amaoto <inochiama@gmail.com>,
Troy Mitchell <troy.mitchell@linux.spacemit.com>,
Charles Mirabile <cmirabil@redhat.com>,
Brian Masney <bmasney@redhat.com>,
Akhilesh Patil <akhilesh@ee.iitb.ac.in>
Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
Longbin Li <looong.bin@gmail.com>
Subject: [PATCH v4 2/2] clk: spacemit: Hide common clock driver from user controller
Date: Fri, 19 Dec 2025 09:28:18 +0800 [thread overview]
Message-ID: <20251219012819.440972-3-inochiama@gmail.com> (raw)
In-Reply-To: <20251219012819.440972-1-inochiama@gmail.com>
Since the common clock driver is only a dependency for other spacemit
clock driver, it should not be enabled individually, so hide this in
the Kconfig UI and let other spacemit clock driver select it.
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
drivers/clk/spacemit/Kconfig | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/clk/spacemit/Kconfig b/drivers/clk/spacemit/Kconfig
index 3854f6ae6d0e..3351e8bc801d 100644
--- a/drivers/clk/spacemit/Kconfig
+++ b/drivers/clk/spacemit/Kconfig
@@ -1,19 +1,17 @@
# SPDX-License-Identifier: GPL-2.0-only
+menu "Clock support for SpacemiT platforms"
+ depends on ARCH_SPACEMIT || COMPILE_TEST
+
config SPACEMIT_CCU
- tristate "Clock support for SpacemiT SoCs"
- depends on ARCH_SPACEMIT || COMPILE_TEST
+ tristate
select AUXILIARY_BUS
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
+ select SPACEMIT_CCU
help
Support for clock controller unit in SpacemiT K1 SoC.
-endif
+endmenu
--
2.52.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2025-12-19 1:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 1:28 [PATCH v4 0/2] clk: spacemit: Fix module build for spacemit common ccu driver Inochi Amaoto
2025-12-19 1:28 ` [PATCH v4 1/2] clk: spacemit: Respect Kconfig setting when building modules Inochi Amaoto
2025-12-19 1:28 ` Inochi Amaoto [this message]
2025-12-19 9:53 ` [PATCH v4 0/2] clk: spacemit: Fix module build for spacemit common ccu driver Yixun Lan
2025-12-25 2:22 ` Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251219012819.440972-3-inochiama@gmail.com \
--to=inochiama@gmail.com \
--cc=akhilesh@ee.iitb.ac.in \
--cc=bmasney@redhat.com \
--cc=cmirabil@redhat.com \
--cc=dlan@gentoo.org \
--cc=elder@riscstar.com \
--cc=heylenay@4d2.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=looong.bin@gmail.com \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=troy.mitchell@linux.spacemit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox