public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net/designware: Add-on: Consecutive writes must have delay
@ 2012-06-07 21:28 Dinh Nguyen
  2012-06-07 22:32 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Dinh Nguyen @ 2012-06-07 21:28 UTC (permalink / raw)
  To: u-boot

This commit is an add-on to f6c4191f. There are a few other registers where
consecutive writes must have a delay.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
---
 drivers/net/designware.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index e8e669b..34952c0 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -163,8 +163,8 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis)
 	writel(FIXEDBURST | PRIORXTX_41 | BURST_16,
 			&dma_p->busmode);
 
-	writel(FLUSHTXFIFO | readl(&dma_p->opmode), &dma_p->opmode);
-	writel(STOREFORWARD | TXSECONDFRAME, &dma_p->opmode);
+	writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD | \
+		TXSECONDFRAME, &dma_p->opmode);
 
 	conf = FRAMEBURSTENABLE | DISABLERXOWN;
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-07 23:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07 21:28 [U-Boot] [PATCH] net/designware: Add-on: Consecutive writes must have delay Dinh Nguyen
2012-06-07 22:32 ` Wolfgang Denk
     [not found]   ` <71B37E0559AC6849A68C5BA94C509FB458298D3C24@SJ-ITMSG02.altera.priv.altera.com>
2012-06-07 23:07     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox