Commit ff9658d7049bf8c8e8e0a05dbe5e9f7e91aa5a5d

Authored by Dave Liu
Committed by Kim Phillips
1 parent 66dc2c2dc5

mpc83xx: Fix the align bug of SDMA buffer

According to the latest user manual, the SDMA temporary
buffer base address must be 4KB aligned.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -98,7 +98,7 @@
98 98 out_be32(&p->sdaqmr, 0);
99 99  
100 100 /* Allocate 2KB temporary buffer for sdma */
101   - sdma_buffer_base = qe_muram_alloc(2048, 64);
  101 + sdma_buffer_base = qe_muram_alloc(2048, 4096);
102 102 out_be32(&p->sdwbcr, sdma_buffer_base & QE_SDEBCR_BA_MASK);
103 103  
104 104 /* Clear sdma status */
... ... @@ -29,7 +29,7 @@
29 29 #define QE_NUM_OF_BRGS 16
30 30 #define UCC_MAX_NUM 8
31 31  
32   -#define QE_DATAONLY_BASE (uint)(128)
  32 +#define QE_DATAONLY_BASE 0
33 33 #define QE_DATAONLY_SIZE (QE_MURAM_SIZE - QE_DATAONLY_BASE)
34 34  
35 35 /* QE threads SNUM