arm64: Allow for different DMA and CPU bus offsets
authorAlexander Graf <agraf@suse.de>
Fri, 3 Jun 2016 06:18:22 +0000 (08:18 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 6 Jun 2016 20:48:54 +0000 (13:48 -0700)
commit1a9a0536d8ad0ad804758f1f2ce1f2dc0c5e053a
tree84c660bd5b898ab4fa0d832aeb19955683d628dd
parent1a695a905c18548062509178b98bc91e67510864
arm64: Allow for different DMA and CPU bus offsets

On arm64, all SoCs we supported so far either have an IOMMU or have bus
addresses equal to CPU addresses.

However, with the Raspberry Pi 3 coming up, this is no longer true. To
allow DMA to work with an AArch64 kernel on those devices, let's allow
devices to have DMA offsets again.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
arch/arm64/include/asm/dma-mapping.h