summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong-Xuan Wang <[email protected]>2025-09-17 18:52:24 +0800
committerAnup Patel <[email protected]>2025-10-21 19:32:08 +0530
commit3990c8ee07de1bdce87f43cd6e5d2d8181a2d9c2 (patch)
tree13a74c840cc2904d2134e4210baed7585ce39469
parentca380bcb106f0f43329bc2ff4bd5258fa0a8a218 (diff)
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 <[email protected]> Signed-off-by: Yong-Xuan Wang <[email protected]> Co-developed-by: Yong-Xuan Wang <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
-rw-r--r--lib/utils/timer/fdt_timer_mtimer.c1
1 files changed, 1 insertions, 0 deletions
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 },