[PATCH 1/3] lib: utils/ipi: mswi: add T-Head C9xx CLINT compatible
Anup Patel
anup at brainfault.org
Sat Dec 10 08:45:17 PST 2022
On Fri, Dec 9, 2022 at 12:31 PM Icenowy Zheng <uwu at icenowy.me> wrote:
>
> Althoug the MTIMER part of a C9xx CLINT differs from a SiFive one, the
> MSWI part is compliant.
>
> Add T-Head C9xx CLINT compatible string to fdt_ipi_mswi code, sharing
> the same codepath with SiFive CLINT.
>
> Signed-off-by: Icenowy Zheng <uwu at icenowy.me>
Looks good to me.
Reviewed-by: Anup Patel <anup at brainfault.org>
Regards,
Anup
> ---
> lib/utils/ipi/fdt_ipi_mswi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/utils/ipi/fdt_ipi_mswi.c b/lib/utils/ipi/fdt_ipi_mswi.c
> index 0176941..4dc91f2 100644
> --- a/lib/utils/ipi/fdt_ipi_mswi.c
> +++ b/lib/utils/ipi/fdt_ipi_mswi.c
> @@ -56,6 +56,7 @@ static const unsigned long clint_offset = CLINT_MSWI_OFFSET;
> static const struct fdt_match ipi_mswi_match[] = {
> { .compatible = "riscv,clint0", .data = &clint_offset },
> { .compatible = "sifive,clint0", .data = &clint_offset },
> + { .compatible = "thead,c900-clint", .data = &clint_offset },
> { .compatible = "riscv,aclint-mswi" },
> { },
> };
> --
> 2.38.1
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list