Date: Mon, 11 Nov 2019 01:39:07 +0000 (UTC) From: Mitchell Horne <mhorne@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354604 - head/sys/riscv/riscv Message-ID: <201911110139.xAB1d7QW033495@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mhorne Date: Mon Nov 11 01:39:06 2019 New Revision: 354604 URL: https://svnweb.freebsd.org/changeset/base/354604 Log: plic: check for sifive compatible string The Linux dts for the HiFive Unleashed does not contain the usual "riscv,plic0" compat string, but our PLIC driver is compatible. MFC after: 1 week Modified: head/sys/riscv/riscv/plic.c Modified: head/sys/riscv/riscv/plic.c ============================================================================== --- head/sys/riscv/riscv/plic.c Mon Nov 11 01:35:50 2019 (r354603) +++ head/sys/riscv/riscv/plic.c Mon Nov 11 01:39:06 2019 (r354604) @@ -174,7 +174,8 @@ plic_probe(device_t dev) if (!ofw_bus_status_okay(dev)) return (ENXIO); - if (!ofw_bus_is_compatible(dev, "riscv,plic0")) + if (!ofw_bus_is_compatible(dev, "riscv,plic0") && + !ofw_bus_is_compatible(dev, "sifive,plic-1.0.0")) return (ENXIO); device_set_desc(dev, "RISC-V PLIC");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911110139.xAB1d7QW033495>