[U-Boot] [PATCH v3 9/9] net/designware: Reduce DMA burst length

Ian Campbell
2014-04-18T18:05:50Z

From: Jens Kuske <jenskuske@gmail.com>

The GMAC module in Allwinner sunxi SoCs seems to have problems with
burst lengths > 8.

Signed-off-by: Jens Kuske <jenskuske@gmail.com>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: Chen-Yu Tsai <wens@csie.org>
---
v3: New. cherry-picked from u-boot-sunxi.git tree.
---
drivers/net/designware.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index c45593b..6ece479 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -249,7 +249,7 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis)
rx_descs_init(dev);
tx_descs_init(dev);

- writel(FIXEDBURST | PRIORXTX_41 | BURST_16, &dma_p->busmode);
+ writel(FIXEDBURST | PRIORXTX_41 | BURST_8, &dma_p->busmode);

writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD,
&dma_p->opmode);
--
1.9.0