]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
timer: sifive_clint: Add GHRTv2 compaible string
authorJimmy Ho <jimmy.ho@sifive.com>
Mon, 13 Oct 2025 02:24:25 +0000 (10:24 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 28 Oct 2025 11:15:10 +0000 (19:15 +0800)
The current sifive_clint driver can fully support GHRTv2 clint.
Add the compatible of GHRTv2 clint, sifive,clint2, to sifive_clint_ids
list.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Wayling Chen <wayling.chen@sifive.com>
Signed-off-by: Max Hsu <max.hsu@sifive.com>
Signed-off-by: Jimmy Ho <jimmy.ho@sifive.com>
drivers/timer/riscv_aclint_timer.c

index 35da1ea2fd2d3a2b8f2df4184052402b682d8281..175956bcfd359ded4b432e3cee7f3023d4a92daf 100644 (file)
@@ -83,6 +83,7 @@ static int riscv_aclint_timer_probe(struct udevice *dev)
 static const struct udevice_id riscv_aclint_timer_ids[] = {
        { .compatible = "riscv,clint0", .data = CLINT_MTIME_OFFSET },
        { .compatible = "sifive,clint0", .data = CLINT_MTIME_OFFSET },
+       { .compatible = "sifive,clint2", .data = CLINT_MTIME_OFFSET },
        { .compatible = "riscv,aclint-mtimer", .data = ACLINT_MTIME_OFFSET },
        { }
 };