Skip to content
Snippets Groups Projects
Commit d2279221 authored by Sonic Zhang's avatar Sonic Zhang Committed by Tom Rini
Browse files

net: Support DMA threshold mode in DWMAC driver


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

Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
parent 2ddaf13b
No related branches found
No related tags found
No related merge requests found
...@@ -253,8 +253,13 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis) ...@@ -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); writel(FIXEDBURST | PRIORXTX_41 | DMA_PBL, &dma_p->busmode);
#ifndef CONFIG_DW_MAC_FORCE_THRESHOLD_MODE
writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD, writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD,
&dma_p->opmode); &dma_p->opmode);
#else
writel(readl(&dma_p->opmode) | FLUSHTXFIFO,
&dma_p->opmode);
#endif
writel(readl(&dma_p->opmode) | RXSTART | TXSTART, &dma_p->opmode); writel(readl(&dma_p->opmode) | RXSTART | TXSTART, &dma_p->opmode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment