From 3745939ceb8ba71f45c4cfad205912cedbc76bd9 Mon Sep 17 00:00:00 2001 From: Inochi Amaoto Date: Sat, 23 Sep 2023 12:08:45 +0800 Subject: [PATCH] lib: ipi/timer: in favor of upstream linux settings Signed-off-by: Inochi Amaoto --- 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 10989178..1bce6dc2 100644 --- a/lib/utils/ipi/fdt_ipi_mswi.c +++ b/lib/utils/ipi/fdt_ipi_mswi.c @@ -57,6 +57,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 = "sophgo,sg2042-clint-mswi", .data = &clint_offset }, { .compatible = "thead,c900-clint-mswi", .data = &clint_offset }, { .compatible = "riscv,aclint-mswi" }, { }, diff --git a/lib/utils/timer/fdt_timer_mtimer.c b/lib/utils/timer/fdt_timer_mtimer.c index 69b27507..df355351 100644 --- a/lib/utils/timer/fdt_timer_mtimer.c +++ b/lib/utils/timer/fdt_timer_mtimer.c @@ -143,6 +143,8 @@ static const struct fdt_match timer_mtimer_match[] = { { .compatible = "thead,c900-clint", .data = &thead_clint_quirks }, { .compatible = "thead,c900-clint-mtimer", .data = &thead_clint_sep_quirks }, + { .compatible = "sophgo,sg2042-clint-mtimer", + .data = &thead_clint_sep_quirks }, { .compatible = "riscv,aclint-mtimer" }, { }, };