mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
arm generic_timer: fix armv8 timer desc
In the FDT based probe, check for "arm,armv8-timer" before "arm,armv7-timer". This gets the description right when the timer node has both entries in compatible list.
This commit is contained in:
parent
97a9d3b5c5
commit
47fa06ab35
1 changed files with 4 additions and 4 deletions
|
|
@ -323,12 +323,12 @@ arm_tmr_fdt_probe(device_t dev)
|
|||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "arm,armv7-timer")) {
|
||||
device_set_desc(dev, "ARMv7 Generic Timer");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
} else if (ofw_bus_is_compatible(dev, "arm,armv8-timer")) {
|
||||
if (ofw_bus_is_compatible(dev, "arm,armv8-timer")) {
|
||||
device_set_desc(dev, "ARMv8 Generic Timer");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
} else if (ofw_bus_is_compatible(dev, "arm,armv7-timer")) {
|
||||
device_set_desc(dev, "ARMv7 Generic Timer");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
}
|
||||
|
||||
return (ENXIO);
|
||||
|
|
|
|||
Loading…
Reference in a new issue