pci: pcie-brcmstb: Fix inbound window configurations 34/268134/1
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tue, 12 Jan 2021 12:55:21 +0000 (13:55 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 16 Dec 2021 11:37:58 +0000 (20:37 +0900)
commitd31161b2882bf67614b457dec623bf1b9ce6e8e8
tree12b768b29a45ded6f7a4b8b1ab0e4ad68951af36
parentf34dfbd774c2182a7818cd464f96269c463442cd
pci: pcie-brcmstb: Fix inbound window configurations

So far we've assumed a fixed configuration for inbound windows as we had
a single user for this controller. But the controller's DMA constraints
were improved starting with BCM2711's B1 revision of the SoC, notably
available in CM4 and Pi400. They allow for wider inbound windows. We can
now cover the whole address space, whereas before we where limited to
the lower 3GB.

This information is passed to us through DT's 'dma-ranges' property and
it's specially important for us to honor it since some interactions with
the board's co-processor assume we're doing so (specifically the XHCI
firmware load operation, which is handled by the co-processor after
u-boot has correctly configured the PCIe controller).

Change-Id: Ic4a66168064c67222d3d32ade482b2a76bbc0a4e
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/pci/pcie_brcmstb.c