[PATCH 0/3] platform: generic: add T-HEAD th1520 soc support
Inochi Amaoto
inochiama at outlook.com
Mon May 22 23:36:00 PDT 2023
The th1520 is a new 4-core c910 soc from T-HEAD. This soc is already
supported by the mainline sbi with no pmu support. So this patch adds
pmu support for the T-HEAD th1520.
Inochi Amaoto (3):
platform: generic: thead: move to thead c9xx header to vendor specific
postion
platform: generic: thead: separate implement of thead c9xx pmu
platform: generic: thead: add pmu detection for th1520
platform/generic/Kconfig | 8 +++
platform/generic/allwinner/sun20i-d1.c | 46 +---------------
platform/generic/configs/defconfig | 1 +
.../{thead_c9xx.h => thead/c9xx_encoding.h} | 4 +-
platform/generic/include/thead/c9xx_pmu.h | 16 ++++++
platform/generic/thead/Kconfig | 5 ++
platform/generic/thead/c9xx_pmu.c | 54 +++++++++++++++++++
platform/generic/thead/objects.mk | 8 +++
platform/generic/thead/th1520.c | 34 ++++++++++++
9 files changed, 130 insertions(+), 46 deletions(-)
rename platform/generic/include/{thead_c9xx.h => thead/c9xx_encoding.h} (98%)
create mode 100644 platform/generic/include/thead/c9xx_pmu.h
create mode 100644 platform/generic/thead/Kconfig
create mode 100644 platform/generic/thead/c9xx_pmu.c
create mode 100644 platform/generic/thead/objects.mk
create mode 100644 platform/generic/thead/th1520.c
--
2.40.1
More information about the opensbi
mailing list