DMA: PL08x: avoid recalculating cctl at each prepare
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Thu, 21 Jul 2011 16:13:48 +0000 (17:13 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 26 Jul 2011 10:03:29 +0000 (15:03 +0530)
commit121c8476a3c39a483326c33526e72a07661df1fc
treee0cdeae942aebffac59c4c375bc7eef9f0f549dc
parentaa88cdaa149e1c1cfc935ff73e50f3f9f3b2e3a1
DMA: PL08x: avoid recalculating cctl at each prepare

Now that we have separate cctl values for M>P and P>M transfers, we can
avoid calculating the cctl value each time we prepare a transaction.
Move the bus selection and increment setting to the slave configuration
and initialization functions.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c