summaryrefslogtreecommitdiffstats
path: root/drivers/dma/Makefile
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2021-03-03 17:12:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-03-04 12:11:22 +0100
commit3f975f810bd34c56cfafd88d1d4e6eb669e74561 (patch)
tree4ee73d2980ee39d9c6bed962f04ddd4f7eb63430 /drivers/dma/Makefile
parent598217bad38f62aa1691742839cfe856ba2a99e2 (diff)
downloadbarebox-3f975f810bd34c56cfafd88d1d4e6eb669e74561.tar.gz
barebox-3f975f810bd34c56cfafd88d1d4e6eb669e74561.tar.xz
dma: move dma_map/unmap_single from ARM to common code
There's nothing ARM specific about these functions. Move them to a common location, so other arches can use them as well. This also fixes a bug on ARM MMU=n configurations: Previously these two functions these functions only respected dma-ranges translation when compiled with MMU support. DMA address translation is applicable regardless of CPU use of MMU though. Now, dma-ranges should be respected unconditionally. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/dma/Makefile')
-rw-r--r--drivers/dma/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile
index 7a3a3b2bd8..49d6d6573f 100644
--- a/drivers/dma/Makefile
+++ b/drivers/dma/Makefile
@@ -1 +1,2 @@
obj-$(CONFIG_MXS_APBH_DMA) += apbh_dma.o
+obj-$(CONFIG_HAS_DMA) += map.o