summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/mmp_dma.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2018-06-17 19:02:04 +0200
committerRobert Jarzmik <robert.jarzmik@free.fr>2018-06-18 21:28:44 +0200
commit420c0117db25db38b72b6230223f7a976d3070ea (patch)
tree86bf48f8125d43fdbd0cb67fe1088001298167a6 /include/linux/platform_data/mmp_dma.h
parentce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff)
downloadlinux-420c0117db25db38b72b6230223f7a976d3070ea.tar.bz2
dmaengine: pxa: use a dma slave map
In order to remove the specific knowledge of the dma mapping from PXA drivers, add a default slave map for pxa architectures. This won't impact MMP architecture, but is aimed only at all PXA boards. This is the first step, and once all drivers are converted, pxad_filter_fn() will be made static, and the DMA resources removed from device.c. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Reported-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/platform_data/mmp_dma.h')
-rw-r--r--include/linux/platform_data/mmp_dma.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/platform_data/mmp_dma.h b/include/linux/platform_data/mmp_dma.h
index d1397c8ed94e..6397b9c8149a 100644
--- a/include/linux/platform_data/mmp_dma.h
+++ b/include/linux/platform_data/mmp_dma.h
@@ -12,9 +12,13 @@
#ifndef MMP_DMA_H
#define MMP_DMA_H
+struct dma_slave_map;
+
struct mmp_dma_platdata {
int dma_channels;
int nb_requestors;
+ int slave_map_cnt;
+ const struct dma_slave_map *slave_map;
};
#endif /* MMP_DMA_H */