From deea2c357aa6e3b0dcbbc273920d80b7848d5aac Mon Sep 17 00:00:00 2001 From: Xiaoguang Xing Date: Thu, 18 Jan 2024 11:26:56 +0800 Subject: [PATCH] lib: add mtimer and mswi support for bm1690 ap and tp mswi and mtimer' address of bm1690 ap and tp is not contiguous, so make them separately. 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 c78dead1ba..0c9b3037d6 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 458e8881a1..bc8a392c57 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" },