Merge branch '2023-01-27-apple-soc-updates'
authorTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 19:48:22 +0000 (14:48 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 19:48:22 +0000 (14:48 -0500)
commitf147aa80f52989c7455022ca1ab959e8545feccc
tree5e513d166bf3859bf649601099110312406c4c34
parentaa7c61f62923a1c9e9ec7f588ad37016d8c7323c
parente330c8b83e8784d23614f80ca3f12b11ceb515d8
Merge branch '2023-01-27-apple-soc-updates'

First, to quote the author:
This series adds support for the PCIe controller found on Apple M1 and
M2 machines and enables support for PCIe XHCI controllers.  This makes
the type-A USB ports on the M1 Mac mini work.  Since the use of Apples
DART IOMMU is mandatory (these PCIe DARTs don't support bypass mode),
this adds DMA mapping operations to the IOMMU uclass and implements
them for the Apple DART.  It modifies the XHCI driver code to go map
DMA buffers through the IOMMU if there is one.  Since the M1 Mac mini
now has two types of XHCI controllers with different number of ports
(2 for the DWC3 controllers, 8 for the Fresco Logic PCIe controller)
this uncovered an issue in with the way the hub descriptor is
implemented in the XHCI driver.

Second, Mark also fixes some Apple-specific instances of
CONFIG_IS_ENABLED that should be IS_ENABLED.