[PATCH 0/3] T-Head C9xx CLINT support

Icenowy Zheng uwu at icenowy.me
Thu Dec 8 23:01:17 PST 2022


This patchset tries to add support for T-Head C9xx's CLINT to OpenSBI.

For MSWI part, the T-Head CLINT is fully compatible with the SiFive one,
so it's just simply adding a compatible string.

For MTIMER part, it's first needed to implement a quirk for
MTIME-less timer (thus only MTIMECMP is present), then the compatible
string is added and bound to the quirk.

To instantiate such a T-Head flavored CLINT via DT, this patchset
depends on DT bindings declared in [1].

[1] https://www.spinics.net/lists/kernel/msg4597447.html

Icenowy Zheng (3):
  lib: utils/ipi: mswi: add T-Head C9xx CLINT compatible
  lib: utils/timer: mtimer: add a quirk for lacking mtime register
  lib: utils/timer: mtimer: add T-Head C9xx CLINT compatible

 include/sbi_utils/timer/aclint_mtimer.h |  1 +
 lib/utils/ipi/fdt_ipi_mswi.c            |  1 +
 lib/utils/timer/aclint_mtimer.c         | 19 ++++++++++----
 lib/utils/timer/fdt_timer_mtimer.c      | 35 ++++++++++++++++++-------
 4 files changed, 42 insertions(+), 14 deletions(-)

-- 
2.38.1




More information about the opensbi mailing list