Page MenuHomeFreeBSD

Support both FDT and ACPI on arm64 in the pl011 driver
ClosedPublic

Authored by andrew on Feb 26 2018, 8:59 AM.
Tags
None
Referenced Files
F166968380: D14515.diff
Tue, Aug 18, 6:21 AM
Unknown Object (File)
Sun, Aug 16, 7:04 AM
Unknown Object (File)
Sat, Aug 15, 5:35 AM
Unknown Object (File)
Thu, Jul 30, 6:37 PM
Unknown Object (File)
Fri, Jul 24, 11:42 PM
Unknown Object (File)
Tue, Jul 21, 2:23 PM
Unknown Object (File)
Jul 19 2026, 8:30 AM
Unknown Object (File)
Jul 18 2026, 6:15 AM
Subscribers

Details

Summary

The Arm pl011 driver assumes it's running a devicetree based system.
It calls OF_* functions to check if it needs to implement workarounds.
This may not be the case on arm64 where we support both FDT and ACPI.
Fix this by checking if we are booting on FDT before calling these checks.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks fine to me.

It seems slightly more obfuscatory to me to split out IS_FDT and uart_pl011_bus_hwrev_fdt vs a couple of ifdefs in uart_pl011_bus_probe (although I don't object).

This revision is now accepted and ready to land.Feb 27 2018, 5:30 PM
This revision was automatically updated to reflect the committed changes.