From: kettenis Date: Fri, 26 Jan 2024 19:20:00 +0000 (+0000) Subject: Recognize the T-Head PLIC implementation. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b91dc0862633149877dc6dc91d33795744752b1b;p=openbsd Recognize the T-Head PLIC implementation. ok jca@ --- 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 @@ -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