From 3990c8ee07de1bdce87f43cd6e5d2d8181a2d9c2 Mon Sep 17 00:00:00 2001 From: Yong-Xuan Wang Date: Wed, 17 Sep 2025 18:52:24 +0800 Subject: [PATCH] lib: utils/timer: mtimer: Add SiFive CLINT v2 support The SiFive CLINT v2 is the HRT that supports the Zicntr extension. It is incompatible with the SiFive CLINT v0 due to differences in their control methods. Signed-off-by: Vincent Chen Signed-off-by: Yong-Xuan Wang Co-developed-by: Yong-Xuan Wang Reviewed-by: Anup Patel Link: https://lore.kernel.org/r/20250917105224.78291-1-yongxuan.wang@sifive.com Signed-off-by: Anup Patel --- lib/utils/timer/fdt_timer_mtimer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/timer/fdt_timer_mtimer.c b/lib/utils/timer/fdt_timer_mtimer.c index 224534d8..e1fd0519 100644 --- a/lib/utils/timer/fdt_timer_mtimer.c +++ b/lib/utils/timer/fdt_timer_mtimer.c @@ -155,6 +155,7 @@ static const struct timer_mtimer_quirks thead_aclint_quirks = { static const struct fdt_match timer_mtimer_match[] = { { .compatible = "riscv,clint0", .data = &sifive_clint_quirks }, { .compatible = "sifive,clint0", .data = &sifive_clint_quirks }, + { .compatible = "sifive,clint2", .data = &sifive_clint_quirks }, { .compatible = "thead,c900-clint", .data = &thead_clint_quirks }, { .compatible = "thead,c900-aclint-mtimer", .data = &thead_aclint_quirks },