Skip to content
Snippets Groups Projects
Commit c4239b53 authored by Sonic Zhang's avatar Sonic Zhang
Browse files

blackfin: limit the max memory dma peripheral transfer size to 4 bytes.


Othersize, the bf609 memory dma halts after being enabled.

Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
parent 1cd9158e
No related branches found
No related tags found
No related merge requests found
...@@ -128,10 +128,12 @@ static void dma_calc_size(unsigned long ldst, unsigned long lsrc, size_t count, ...@@ -128,10 +128,12 @@ static void dma_calc_size(unsigned long ldst, unsigned long lsrc, size_t count,
unsigned long limit; unsigned long limit;
#ifdef MSIZE #ifdef MSIZE
limit = 6; /* The max memory DMA memory transfer size is 32 bytes. */
limit = 5;
*dshift = MSIZE_P; *dshift = MSIZE_P;
#else #else
limit = 3; /* The max memory DMA memory transfer size is 4 bytes. */
limit = 2;
*dshift = WDSIZE_P; *dshift = WDSIZE_P;
#endif #endif
...@@ -170,7 +172,8 @@ void dma_memcpy_nocache(void *dst, const void *src, size_t count) ...@@ -170,7 +172,8 @@ void dma_memcpy_nocache(void *dst, const void *src, size_t count)
mod = 1 << bpos; mod = 1 << bpos;
#ifdef PSIZE #ifdef PSIZE
dsize |= min(3, bpos) << PSIZE_P; /* The max memory DMA peripheral transfer size is 4 bytes. */
dsize |= min(2, bpos) << PSIZE_P;
#endif #endif
/* Copy sram functions from sdram to sram */ /* Copy sram functions from sdram to sram */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment