From cbf76ce346c25b7e9eb2332d0a8a8dd693588f10 Mon Sep 17 00:00:00 2001 From: Xiaoguang Xing Date: Thu, 18 Jan 2024 11:26:56 +0800 Subject: [PATCH] lib: add T-Head c900 clint mtimer and mswi support Signed-off-by: Xiaoguang Xing --- lib/utils/ipi/fdt_ipi_mswi.c | 1 + lib/utils/timer/fdt_timer_mtimer.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/utils/ipi/fdt_ipi_mswi.c b/lib/utils/ipi/fdt_ipi_mswi.c index a709abe150..aa16fbb8ed 100644 --- a/lib/utils/ipi/fdt_ipi_mswi.c +++ b/lib/utils/ipi/fdt_ipi_mswi.c @@ -56,6 +56,7 @@ 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 = "thead,c900-clint-mswi", .data = &clint_offset }, { .compatible = "thead,c900-aclint-mswi" }, { .compatible = "riscv,aclint-mswi" }, { }, diff --git a/lib/utils/timer/fdt_timer_mtimer.c b/lib/utils/timer/fdt_timer_mtimer.c index 9e27e3ab92..ee90a4f49a 100644 --- a/lib/utils/timer/fdt_timer_mtimer.c +++ b/lib/utils/timer/fdt_timer_mtimer.c @@ -156,6 +156,8 @@ static const struct fdt_match timer_mtimer_match[] = { { .compatible = "riscv,clint0", .data = &sifive_clint_quirks }, { .compatible = "sifive,clint0", .data = &sifive_clint_quirks }, { .compatible = "thead,c900-clint", .data = &thead_clint_quirks }, + { .compatible = "thead,c900-clint-mtimer", + .data = &thead_clint_quirks }, { .compatible = "thead,c900-aclint-mtimer", .data = &thead_aclint_quirks }, { .compatible = "riscv,aclint-mtimer" },