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

Anup Patel anup at brainfault.org
Fri Dec 16 21:29:38 PST 2022


On Mon, Dec 12, 2022 at 1:53 PM Icenowy Zheng <uwu at icenowy.me> wrote:
>
> 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

Applied this series to the riscv/opensbi repo.

Thanks,
Anup

>
>  lib/utils/ipi/fdt_ipi_mswi.c       |  1 +
>  lib/utils/timer/aclint_mtimer.c    | 11 ++++++---
>  lib/utils/timer/fdt_timer_mtimer.c | 36 +++++++++++++++++++++---------
>  3 files changed, 35 insertions(+), 13 deletions(-)
>
> --
> 2.38.1
>



More information about the opensbi mailing list