aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/omap-dma.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-12-10 06:08:01 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-04-03 19:31:49 -0400
commit596c471b69249764d8e241b004736878204daa0f (patch)
tree9d5b253c7372d0e36965c85617e183418918b4b7 /include/linux/omap-dma.h
parent34a378fcb9273d73dbd6b209952d2f6bf88a3dd0 (diff)
dmaengine: omap-dma: move register read/writes into omap-dma.c
Export the DMA register information from the SoC specific data, such that we can access the registers directly in omap-dma.c, mapping the register region ourselves as well. Rather than calculating the DMA channel register in its entirety for each access, we pre-calculate an offset base address for the allocated DMA channel and then just use the appropriate register offset. Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/omap-dma.h')
-rw-r--r--include/linux/omap-dma.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h
index 7813636a193d..41a13e70f41f 100644
--- a/include/linux/omap-dma.h
+++ b/include/linux/omap-dma.h
@@ -285,6 +285,8 @@ struct omap_dma_reg {
285 285
286/* System DMA platform data structure */ 286/* System DMA platform data structure */
287struct omap_system_dma_plat_info { 287struct omap_system_dma_plat_info {
288 const struct omap_dma_reg *reg_map;
289 unsigned channel_stride;
288 struct omap_dma_dev_attr *dma_attr; 290 struct omap_dma_dev_attr *dma_attr;
289 u32 errata; 291 u32 errata;
290 void (*show_dma_caps)(void); 292 void (*show_dma_caps)(void);