diff options
| author | Yong-Xuan Wang <yongxuan.wang@sifive.com> | 2025-09-17 18:52:24 +0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2025-10-21 19:32:08 +0530 |
| commit | 3990c8ee07de1bdce87f43cd6e5d2d8181a2d9c2 (patch) | |
| tree | 13a74c840cc2904d2134e4210baed7585ce39469 /lib/utils/timer | |
| parent | ca380bcb106f0f43329bc2ff4bd5258fa0a8a218 (diff) | |
| download | opensbi-3990c8ee07de1bdce87f43cd6e5d2d8181a2d9c2.zip opensbi-3990c8ee07de1bdce87f43cd6e5d2d8181a2d9c2.tar.gz opensbi-3990c8ee07de1bdce87f43cd6e5d2d8181a2d9c2.tar.bz2 | |
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 <vincent.chen@sifive.com>
Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Co-developed-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250917105224.78291-1-yongxuan.wang@sifive.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/timer')
| -rw-r--r-- | lib/utils/timer/fdt_timer_mtimer.c | 1 |
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 224534d..e1fd051 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 }, |
