Skip to content
Snippets Groups Projects
Commit 66f119e5 authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Joe Hershberger
Browse files

net/designware: Consecutive writes to the same register to be avoided


This commit is an add-on to f6c4191f. There are a few registers where
consecutive writes to the same location should be avoided or have a delay.

According to Synopsys, here is a list of the registers and bit(s) where
consecutive writes should be avoided or a delay is required:

DMA Registers:
Register 0        Bit 7
Register 6        All bits except for 24, 16-13, 2-1.

GMAC Registers:
Registers 0-3     All bits
Registers 6-7     All bits
Register 10       All bits
Register 11       All bits except for 5-6.
Registers 16-47   All bits
Register 48       All bits except for 18-16, 14.
Register 448      Bit 4.
Register 459      Bits 0-3.

Signed-off-by: default avatarDinh Nguyen <dinguyen@altera.com>
Reviewed-by: default avatarMatthew Gerlach <mgerlach@altera.com>
Acked-by: default avatarAmit Virdi <amit.virdi@st.com>
parent c59ab092
No related branches found
No related tags found
No related merge requests found
...@@ -171,8 +171,8 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis) ...@@ -171,8 +171,8 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis)
writel(FIXEDBURST | PRIORXTX_41 | BURST_16, writel(FIXEDBURST | PRIORXTX_41 | BURST_16,
&dma_p->busmode); &dma_p->busmode);
writel(FLUSHTXFIFO | readl(&dma_p->opmode), &dma_p->opmode); writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD |
writel(STOREFORWARD | TXSECONDFRAME, &dma_p->opmode); TXSECONDFRAME, &dma_p->opmode);
conf = FRAMEBURSTENABLE | DISABLERXOWN; conf = FRAMEBURSTENABLE | DISABLERXOWN;
......
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