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 New Issue
Block a user