S3C64XX DMA: AUTOSTART flag implementation
Subsystems (3)
PATCH 7/7 S3C64XX DMA: AUTOSTART flag implementation
Implemented the S3C2410_DMAF_AUTOSTART flag as is available for S3C24XX Dma driver.
Signed-off-by Jassi <[email protected]>
--- arch/arm/mach-s3c6400/include/mach/dma.h | 1 + arch/arm/plat-s3c64xx/dma.c | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-s3c6400/include/mach/dma.h +1 -0
@@ -67,6 +67,7 @@ static __inline__ int s3c_dma_has_circular(void) }#define S3C2410_DMAF_CIRCULAR (1 << 0) +#define S3C2410_DMAF_AUTOSTART (1 << 1)#include <plat/dma.h>
arch/arm/plat-s3c64xx/dma.c +3 -0
@@ -394,6 +394,9 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id, chan->end = buff;s3c64xx_lli_to_regs (chan, lli); + +if (chan->flags &S3C2410_DMAF_AUTOSTART ) +return s3c2410_dma_ctrl (channel,S3C2410_DMAOP_START ); }local_irq_restore (flags);
Signature · 1 line
1.6.2.5