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>
This commit is contained in:
parent
66dc2c2dc5
commit
ff9658d704
|
@ -98,7 +98,7 @@ static void qe_sdma_init(void)
|
||||||
out_be32(&p->sdaqmr, 0);
|
out_be32(&p->sdaqmr, 0);
|
||||||
|
|
||||||
/* Allocate 2KB temporary buffer for sdma */
|
/* Allocate 2KB temporary buffer for sdma */
|
||||||
sdma_buffer_base = qe_muram_alloc(2048, 64);
|
sdma_buffer_base = qe_muram_alloc(2048, 4096);
|
||||||
out_be32(&p->sdwbcr, sdma_buffer_base & QE_SDEBCR_BA_MASK);
|
out_be32(&p->sdwbcr, sdma_buffer_base & QE_SDEBCR_BA_MASK);
|
||||||
|
|
||||||
/* Clear sdma status */
|
/* Clear sdma status */
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define QE_NUM_OF_BRGS 16
|
#define QE_NUM_OF_BRGS 16
|
||||||
#define UCC_MAX_NUM 8
|
#define UCC_MAX_NUM 8
|
||||||
|
|
||||||
#define QE_DATAONLY_BASE (uint)(128)
|
#define QE_DATAONLY_BASE 0
|
||||||
#define QE_DATAONLY_SIZE (QE_MURAM_SIZE - QE_DATAONLY_BASE)
|
#define QE_DATAONLY_SIZE (QE_MURAM_SIZE - QE_DATAONLY_BASE)
|
||||||
|
|
||||||
/* QE threads SNUM
|
/* QE threads SNUM
|
||||||
|
|
Loading…
Reference in a new issue