mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
net/designware: Make DMA burst length configurable and reduce by default
The correct value for this setting can vary across SoCs and boards, so make it configurable. Also reduce the default value to 8, which is the same default as used in the Linux driver. Signed-off-by: Ian Campbell <ijc@hellion.org.uk> Cc: Alexey Brodkin <abrodkin@synopsys.com>
This commit is contained in:
parent
1857075a7f
commit
49692c5f51
2 changed files with 7 additions and 7 deletions
|
@ -249,7 +249,7 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis)
|
|||
rx_descs_init(dev);
|
||||
tx_descs_init(dev);
|
||||
|
||||
writel(FIXEDBURST | PRIORXTX_41 | BURST_16, &dma_p->busmode);
|
||||
writel(FIXEDBURST | PRIORXTX_41 | DMA_PBL, &dma_p->busmode);
|
||||
|
||||
writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD,
|
||||
&dma_p->opmode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue