Skip to contentSkip to conversation

net: Support DMA threshold mode in DWMAC driver

PATCH In review Sonic Zhang 2 participants 2 messages Jan 29, 2015 – Mar 6, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

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.

---

 drivers/net/designware.c |    5 +++++
 1 file changed, 5 insertions(+)
drivers/net/designware.c +5 -0
index 51eff85..bc3c88f 100644
@@ -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
#1 lore raw
Quoted 5 lines · Sonic Zhang

From: Sonic Zhang <[email protected]>

- DMA threshold mode can be selected in board config head file.

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>