[PATCH v2 0/4] platform: generic: Add Sophgo sg2042 support

Inochi Amaoto inochiama at outlook.com
Sun Oct 8 05:15:52 PDT 2023


As the dts of sg2042 in the mainline kernel is considered as stable, it is
time to port sg2042 soc.

This patch depends other two series:
1. platform: generic: add T-HEAD th1520 soc support
2. lib: sbi: Add sub-regions check for sanitizing domain

Link: https://lore.kernel.org/linux-riscv/cover.1696433229.git.unicorn_wang@outlook.com/

Changed from v1:
1. make number of entries in tlb fifo auto deteted.

Inochi Amaoto (4):
  lib: utils/timer: mtimer: add separate T-Head C9xx CLINT mtimer
    compatible
  lib: utils/ipi: mswi: add separate T-Head C9xx CLINT mswi compatible
  platform: Allow platform uses hart count as the size of tlb info
  platform: generic: Add Sophgo sg2042 platform support

 lib/utils/ipi/fdt_ipi_mswi.c       |  1 +
 lib/utils/timer/fdt_timer_mtimer.c |  2 +
 platform/generic/Kconfig           |  6 +++
 platform/generic/configs/defconfig |  1 +
 platform/generic/platform.c        |  7 ++++
 platform/generic/sophgo/objects.mk |  9 +++++
 platform/generic/sophgo/sg2042.c   | 64 ++++++++++++++++++++++++++++++
 7 files changed, 90 insertions(+)
 create mode 100644 platform/generic/sophgo/objects.mk
 create mode 100644 platform/generic/sophgo/sg2042.c

--
2.42.0




More information about the opensbi mailing list