[PATCH v3 1/3] platform: generic: spacemit: add K1

Troy Mitchell troy.mitchell at linux.spacemit.com
Thu Oct 16 22:56:49 PDT 2025


On Fri, Sep 26, 2025 at 03:17:23PM +0800, Xiang W wrote:
> 在 2025-09-25四的 17:48 +0800,Troy Mitchell写道:
> > From: Xianbin Zhu <xianbin.zhu at linux.spacemit.com>
> > 
> > Add initial platform support for the SpacemiT K1 SoC, including
> > early/final init hooks, cold boot handling, and CCI-550 snoop/DVM
> > enablement.
> > 
> > Co-authored-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
> > Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
> > Signed-off-by: Xianbin Zhu <xianbin.zhu at linux.spacemit.com>
> > ---
> >  platform/generic/Kconfig               |   4 ++
> >  platform/generic/include/spacemit/k1.h |  98 +++++++++++++++++++++++++++
> >  platform/generic/spacemit/k1.c         | 119 +++++++++++++++++++++++++++++++++
> >  3 files changed, 221 insertions(+)
> > 
[...]
> > +static bool spacemit_cold_boot_allowed(u32 hartid)
> > +{
> > +	csr_set(CSR_ML2SETUP, 1 << (hartid % PLATFORM_MAX_CPUS_PER_CLUSTER));
> > +
> > +	return !hartid;
> > +}
> Only the primary core will be brought up, so we do not need to implement 
> cold_boot_allowed. The CSR operation here can be moved to nascent_init
> 
> Regards,
> Xiang W
I'm not sure if everyone received this email [1]...
it doesn't seem to form a proper thread.

                          - Troy

Link: https://lore.kernel.org/all/15169E392597D319+aOcKujCl8mz4XK4L@kernel.org/ [1]



More information about the opensbi mailing list