Skip to content
Commit 4f8cad8c authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

pcie-brcmstb: Remove brcm_to_*, add pcie_to_dma40



The DMA framework performs the necessary address conversions for the
common cases based on the dma-ranges DT property. brcm_to_pci and
brcm_to_cpu were probably designed for non-DT use cases, something
which isn't an issue for 2711. This second level of mapping causes
breakage with a non-identity PCIe<->system address mapping, so remove
it completely.

The non-identity mapping also broke the DMA40 support, so add back a
simple translation from PCIe to sys addresses.

arm64 builds also require a wider coherent_dma_mask, otherwise the
bounce buffer allocation is rejected.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent a52668f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment