Skip to contentSkip to conversation

S3C64XX DMA: AUTOSTART flag implementation

PATCH New Jassi 1 participant 1 message Sep 15, 2009

Subsystems (3)
lore
Share & tools
lore

Jassi

author
#0 lore raw

PATCH 7/7 S3C64XX DMA: AUTOSTART flag implementation

Implemented the S3C2410_DMAF_AUTOSTART flag as is available for S3C24XX Dma driver.

---
 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
index 1067619..b96e663 100644
@@ -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
index 727072b..49bcfb8 100644
@@ -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