summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2024-01-26 19:20:01 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2024-01-26 19:20:01 +0000
commitbb059e6142930f9d9396d84fa98584fd21e1e0df (patch)
treeeb8cc396fe7c496011ed6bae2dc1628b6f673f6e /sys
parent92da321f41700924895d9c82abbed76f516ae1bf (diff)
Recognize the T-Head PLIC implementation.
ok jca@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/riscv64/dev/plic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/riscv64/dev/plic.c b/sys/arch/riscv64/dev/plic.c
index 755fd9262e7..0a292c6dce4 100644
--- a/sys/arch/riscv64/dev/plic.c
+++ b/sys/arch/riscv64/dev/plic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: plic.c,v 1.11 2022/08/09 04:49:08 cheloha Exp $ */
+/* $OpenBSD: plic.c,v 1.12 2024/01/26 19:20:00 kettenis Exp $ */
/*
* Copyright (c) 2020, Mars Li <mengshi.li.mars@gmail.com>
@@ -153,7 +153,8 @@ plic_match(struct device *parent, void *cfdata, void *aux)
return 0; // Only expect one instance of PLIC
return (OF_is_compatible(faa->fa_node, "riscv,plic0") ||
- OF_is_compatible(faa->fa_node, "sifive,plic-1.0.0"));
+ OF_is_compatible(faa->fa_node, "sifive,plic-1.0.0") ||
+ OF_is_compatible(faa->fa_node, "thead,c900-plic"));
}
void