net: Support DMA threshold mode in DWMAC driver
PATCH 1/1 net: Support DMA threshold mode in DWMAC driver
From: Sonic Zhang <[email protected]>
- DMA threshold mode can be selected in board config head file.
Signed-off-by Sonic Zhang <[email protected]>
---
drivers/net/designware.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/designware.c +5 -0
@@ -251,8 +251,13 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis)writel (FIXEDBURST |PRIORXTX_41 |DMA_PBL , &dma_p->busmode); +#ifndef CONFIG_DW_MAC_FORCE_THRESHOLD_MODE writel (readl (&dma_p->opmode) |FLUSHTXFIFO |STOREFORWARD , &dma_p->opmode); +#else +writel (readl (&dma_p->opmode) |FLUSHTXFIFO , + &dma_p->opmode); +#endif writel (readl (&dma_p->opmode) |RXSTART |TXSTART , &dma_p->opmode);
Signature · 1 line
1.7.9.5
Quoted 5 lines · Sonic Zhang
From: Sonic Zhang <[email protected]>
- DMA threshold mode can be selected in board config head file.
Signed-off-by Sonic Zhang <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150306/a539aba1/attachment.sig>