Skip to contentSkip to conversation

mpc83xx: Fix the align bug of SDMA buffer

PATCH New Dave Liu 1 participant 1 message Jun 25, 2007

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 1/1 mpc83xx: Fix the align bug of SDMA buffer

From: Dave Liu <[email protected]>

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

---
 drivers/qe/qe.c |    2 +-
 drivers/qe/qe.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/qe/qe.c +1 -1
index 5f20962..0f5232a 100644
@@ -98,7 +98,7 @@ static void qe_sdma_init(void)
 	out_be32(&p->sdaqmr, 0);
 
 	/* 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);
 
 	/* Clear sdma status */
drivers/qe/qe.h +1 -1
index 0bcd0a9..400b1a6 100644
@@ -29,7 +29,7 @@
 #define QE_NUM_OF_BRGS	16
 #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)
 
 /* QE threads SNUM
Signature · 1 line
1.5.2.GIT