From 6b63f23648d04dd4d0dee2d878b1457da6b5cf53 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Tue, 7 Apr 2009 17:08:26 +0000 Subject: =?UTF-8?q?Patch=20by=20Rafa=C3=ABl=20Carr=C3=A9=20-=20Sansa=20AMS?= =?UTF-8?q?:=20Fix=20a=20few=20mistakes=20in=20DMA=20code=20DMAC=5FINT=5FT?= =?UTF-8?q?C=5FCLEAR=20is=20a=20write-only=20reg=20HIGH=20bits=20of=20DMAC?= =?UTF-8?q?=5FSYNC=20mean=20synchronisation=20logic=20disabled.=20Also,=20?= =?UTF-8?q?according=20to=20the=20OF=20and=20to=20tests,=20all=20the=20per?= =?UTF-8?q?ipherals=20we=20use=20run=20at=20the=20same=20frequency=20(PCLK?= =?UTF-8?q?=3F).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20643 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/dma-pl081.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/firmware/target/arm/as3525/dma-pl081.c b/firmware/target/arm/as3525/dma-pl081.c index 8a97986..52fd90f 100644 --- a/firmware/target/arm/as3525/dma-pl081.c +++ b/firmware/target/arm/as3525/dma-pl081.c @@ -48,7 +48,7 @@ void dma_release(void) void dma_init(void) { - DMAC_SYNC = 0; + DMAC_SYNC = 0xffff; /* disable synchronisation logic */ VIC_INT_ENABLE |= INTERRUPT_DMAC; } @@ -88,9 +88,6 @@ void dma_enable_channel(int channel, void *src, void *dst, int peri, DMAC_CH_CONTROL(channel) = control; - /* only needed if DMAC and Peripheral do not run at the same clock speed */ - DMAC_SYNC |= (1<