From 2a01b611c9e18640656d50271d12739c91f22584 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Wed, 23 Aug 2023 17:33:38 +0800 Subject: [PATCH] lib: utils/ipi: add T-Head C9xx CLINT compatible backport commit a8ee82cd8c008f09c91b5c307de4c9b37660ff71 upstream 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 Reviewed-by: Anup Patel --- lib/utils/ipi/fdt_ipi_clint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/ipi/fdt_ipi_clint.c b/lib/utils/ipi/fdt_ipi_clint.c index 529f978..9fefdc6 100644 --- a/lib/utils/ipi/fdt_ipi_clint.c +++ b/lib/utils/ipi/fdt_ipi_clint.c @@ -37,6 +37,7 @@ static int ipi_clint_cold_init(void *fdt, int nodeoff, static const struct fdt_match ipi_clint_match[] = { { .compatible = "riscv,clint0" }, { .compatible = "sifive,clint0" }, + { .compatible = "thead,c900-clint" }, { }, };