mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
net: Support DMA threshold mode in DWMAC driver
- DMA threshold mode can be selected in board config head file. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
This commit is contained in:
parent
2ddaf13bd2
commit
d227922150
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue