mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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
This commit is contained in:
parent
9a64005837
commit
6f1f29f65f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354604
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue