summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-12-10 11:08:01 +0000
committerRajendra Nayak <rnayak@ti.com>2014-07-08 17:50:18 +0530
commit737721d6012501a5aa4bbe617bde581e7c777ab2 (patch)
tree856be76561849179c9290445a860529e03495263 /include
parentfac5ca4fdcdac53377b7185d2d69889ff6663b94 (diff)
dmaengine: omap-dma: move register read/writes into omap-dma.c
[ Upstream commit 596c471b69249764d8e241b004736878204daa0f ] 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')
-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 5906be52f58..0786181efe6 100644
--- a/include/linux/omap-dma.h
+++ b/include/linux/omap-dma.h
@@ -269,6 +269,8 @@ struct omap_dma_reg {
/* System DMA platform data structure */
struct omap_system_dma_plat_info {
+ const struct omap_dma_reg *reg_map;
+ unsigned channel_stride;
struct omap_dma_dev_attr *dma_attr;
u32 errata;
void (*show_dma_caps)(void);