dmaengine: omap-dma: move register read/writes into omap-dma.c
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 10 Dec 2013 11:08:01 +0000 (11:08 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Apr 2014 23:31:49 +0000 (00:31 +0100)
commit596c471b69249764d8e241b004736878204daa0f
tree9d5b253c7372d0e36965c85617e183418918b4b7
parent34a378fcb9273d73dbd6b209952d2f6bf88a3dd0
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>
arch/arm/mach-omap1/dma.c
arch/arm/mach-omap2/dma.c
drivers/dma/omap-dma.c
include/linux/omap-dma.h