[PATCH v6 6/6] riscv: defconfig: enable clock controller unit support for SpacemiT K1
Haylen Chu
heylenay at 4d2.org
Wed Apr 9 21:12:17 PDT 2025
On Tue, Apr 08, 2025 at 02:37:35PM -0500, Alex Elder wrote:
> On 4/1/25 12:24 PM, Haylen Chu wrote:
> > Clock controller unit, or CCU, generates various clocks frequency for
> > peripherals integrated in SpacemiT K1 SoC and is essential for normal
> > operation. Let's enable it in defconfig.
> >
> > Signed-off-by: Haylen Chu <heylenay at 4d2.org>
> > ---
> > arch/riscv/configs/defconfig | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
> > index 0f7dcbe3c45b..011788d16d93 100644
> > --- a/arch/riscv/configs/defconfig
> > +++ b/arch/riscv/configs/defconfig
> > @@ -252,6 +252,8 @@ CONFIG_CLK_SOPHGO_CV1800=y
> > CONFIG_CLK_SOPHGO_SG2042_PLL=y
> > CONFIG_CLK_SOPHGO_SG2042_CLKGEN=y
> > CONFIG_CLK_SOPHGO_SG2042_RPGATE=y
> > +CONFIG_SPACEMIT_CCU=y
> > +CONFIG_SPACEMIT_K1_CCU=y
>
> Maybe these could be specified with default values that
> are based on the value of CONFIG_ARCH_SPACEMIT instead of
> forcing them to be defined here?
As mentioned by Inochi earlier[1], putting defaults configuration in
defconfig instead through a "default" kconfig property is the preference
of clk subsystem, so I'd like to follow.
> -Alex
>
> > CONFIG_SUN8I_DE2_CCU=m
> > CONFIG_SUN50I_IOMMU=y
> > CONFIG_RPMSG_CHAR=y
>
Regards,
Haylen Chu
[1] https://lore.kernel.org/all/xwo2jjqy634z4rimgyrbjmxlgzxzauxmqzl57qr5oasph74qwj@7we45fnhwfzh/
More information about the linux-riscv
mailing list