From b91dc0862633149877dc6dc91d33795744752b1b Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 26 Jan 2024 19:20:00 +0000 Subject: [PATCH] Recognize the T-Head PLIC implementation. ok jca@ --- sys/arch/riscv64/dev/plic.c | 5 +++-- 1 file 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 @@ -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 -- 2.20.1