projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ddaf13
)
net: Support DMA threshold mode in DWMAC driver
author
Sonic Zhang
<sonic.zhang@analog.com>
Thu, 29 Jan 2015 06:38:50 +0000
(14:38 +0800)
committer
Tom Rini
<trini@konsulko.com>
Thu, 5 Mar 2015 16:17:53 +0000
(11:17 -0500)
- DMA threshold mode can be selected in board config head file.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
drivers/net/designware.c
patch
|
blob
|
history
diff --git
a/drivers/net/designware.c
b/drivers/net/designware.c
index 7469e59d49fb8fd3a2f36774bccf6084f32d4fbc..cc01604e6026bc90c52b4e91a615b1c837067b4b 100644
(file)
--- a/
drivers/net/designware.c
+++ b/
drivers/net/designware.c
@@
-253,8
+253,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);