All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] platform: generic: spacemit: add K3 platform support
@ 2026-07-24  9:27 Troy Mitchell
  2026-07-24  9:27 ` [PATCH 1/3] platform: generic: spacemit: k1: rename cache flush operation Troy Mitchell
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Troy Mitchell @ 2026-07-24  9:27 UTC (permalink / raw)
  To: opensbi; +Cc: Xianbin Zhu, Anup Patel, Troy Mitchell

Add initial OpenSBI platform support for the SpacemiT K3 SoC. K3 has
16 harts split across four clusters: eight X100 harts in C0/C1 and
eight A100 harts in C2/C3.

The first patch corrects a misleading K1 cache-operation name without
changing its encoded value or behavior.

The second patch refactors the existing K1 support by moving the
definitions and CCI-550 programming helper needed by both SoCs into
common SpacemiT files. The K1 CCI topology, boot flow, and HSM
implementation remain K1-specific.

The third patch adds the K3 platform implementation. During cold boot,
the boot hart configures the cluster warm-boot vectors, enables CCI
snoop and DVM requests, disables core and cluster power-down on WFI,
and wakes the secondary harts. Per-hart initialization configures PMA
attributes, caches, L1 D-cache snooping, prefetch, and the H extension
on X100 harts.

The series has been build-tested with:
 - the generic default configuration
 - a K1-only configuration with the SpacemiT HSM driver
 - a K3-only configuration without the K1 HSM driver

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
---
Xianbin Zhu (3):
      platform: generic: spacemit: k1: rename cache flush operation
      platform: generic: spacemit: k1: refactor platform support
      platform: generic: spacemit: k3: add platform support

 lib/utils/hsm/fdt_hsm_spacemit.c             |   7 +-
 platform/generic/Kconfig                     |   9 +
 platform/generic/configs/defconfig           |   1 +
 platform/generic/include/spacemit/common.h   |  88 +++++++++
 platform/generic/include/spacemit/k1.h       |  96 ++--------
 platform/generic/include/spacemit/k3.h       | 144 +++++++++++++++
 platform/generic/include/spacemit/k3_asm.h   |  16 ++
 platform/generic/include/spacemit/spacemit.h |  14 ++
 platform/generic/spacemit/k1.c               |  33 +---
 platform/generic/spacemit/k3.c               | 264 +++++++++++++++++++++++++++
 platform/generic/spacemit/k3_asm.S           |  33 ++++
 platform/generic/spacemit/objects.mk         |   3 +
 platform/generic/spacemit/spacemit.c         |  36 ++++
 13 files changed, 636 insertions(+), 108 deletions(-)
---
base-commit: c0f87f10d1bfb9e72a84ddfafb5604ee1bfe9d04
change-id: 20260723-spacemit-k3-84720a7be53d

Best regards,
--  
Troy Mitchell <troy.mitchell@linux.spacemit.com>


-- 
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-26  1:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24  9:27 [PATCH 0/3] platform: generic: spacemit: add K3 platform support Troy Mitchell
2026-07-24  9:27 ` [PATCH 1/3] platform: generic: spacemit: k1: rename cache flush operation Troy Mitchell
2026-07-24  9:27 ` [PATCH 2/3] platform: generic: spacemit: k1: refactor platform support Troy Mitchell
2026-07-24  9:27 ` [PATCH 3/3] platform: generic: spacemit: k3: add " Troy Mitchell
2026-07-26  1:14 ` [PATCH 0/3] platform: generic: spacemit: add K3 " Bo Gan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.