mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
Sansa AMSv2: Do not disable DMA synchronization logic for as3525v2. The DMA controller and the SD controller run at different clock speeds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25532 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
286fcfe8b1
commit
d7c8d34999
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
#include "pl081.h"
|
#include "pl081.h"
|
||||||
#include "dma-target.h"
|
#include "dma-target.h"
|
||||||
#include "panic.h"
|
#include "panic.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
static int dma_used = 0;
|
static int dma_used = 0;
|
||||||
static void (*dma_callback[2])(void); /* 2 channels */
|
static void (*dma_callback[2])(void); /* 2 channels */
|
||||||
|
|
@ -48,7 +49,9 @@ void dma_release(void)
|
||||||
|
|
||||||
void dma_init(void)
|
void dma_init(void)
|
||||||
{
|
{
|
||||||
|
#if CONFIG_CPU == AS3525
|
||||||
DMAC_SYNC = 0xffff; /* disable synchronisation logic */
|
DMAC_SYNC = 0xffff; /* disable synchronisation logic */
|
||||||
|
#endif
|
||||||
VIC_INT_ENABLE = INTERRUPT_DMAC;
|
VIC_INT_ENABLE = INTERRUPT_DMAC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue