dma-mapping: detect and configure IOMMU in of_dma_configure
authorWill Deacon <will.deacon@arm.com>
Wed, 27 Aug 2014 15:24:20 +0000 (16:24 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 1 Dec 2014 16:50:45 +0000 (16:50 +0000)
commit97890ba9289c66e23f2f2d431937693b6498d6f6
treefce6fcfd86ad149adfdae5c04245cc75342d2608
parent461bfb3fe7d0cf64d9ee2190ad8507e460fab198
dma-mapping: detect and configure IOMMU in of_dma_configure

This patch extends of_dma_configure so that it sets up the IOMMU for a
device, as well as the coherent/non-coherent DMA mapping ops.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/dma-mapping.h
drivers/of/platform.c
include/linux/dma-mapping.h