summaryrefslogtreecommitdiff
path: root/arch/csky
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-03-25 15:44:06 +0100
committerChristoph Hellwig <hch@lst.de>2019-05-06 15:04:40 +0200
commit13bf5ced93775ffccb53527a9d862e023a9daa03 (patch)
tree8841a56889a7b6468e7c81215428376358345211 /arch/csky
parent148a97d5a02a62f81b5d6176f871c94a65e1f3af (diff)
dma-mapping: add a Kconfig symbol to indicate arch_dma_prep_coherent presence
Add a Kconfig symbol that indicates an architecture provides a arch_dma_prep_coherent implementation, and provide a stub otherwise. This will allow the generic dma-iommu code to use it while still allowing to be built for cache coherent architectures. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/csky')
-rw-r--r--arch/csky/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig
index 725a115759c9..2c3178848b7d 100644
--- a/arch/csky/Kconfig
+++ b/arch/csky/Kconfig
@@ -1,6 +1,7 @@
config CSKY
def_bool y
select ARCH_32BIT_OFF_T
+ select ARCH_HAS_DMA_PREP_COHERENT
select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_USE_BUILTIN_BSWAP