* [U-Boot] [PATCH v2] net/designware: Consecutive writes to the same register to be avoided
@ 2012-06-08 15:26 Dinh Nguyen
2012-06-11 4:26 ` Amit Virdi
2012-07-11 18:27 ` Joe Hershberger
0 siblings, 2 replies; 3+ messages in thread
From: Dinh Nguyen @ 2012-06-08 15:26 UTC (permalink / raw)
To: u-boot
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.
Reviewd-by: Matthew Gerlach <mgerlach@altera.com>
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..980b92f 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
* [U-Boot] [PATCH v2] net/designware: Consecutive writes to the same register to be avoided
2012-06-08 15:26 [U-Boot] [PATCH v2] net/designware: Consecutive writes to the same register to be avoided Dinh Nguyen
@ 2012-06-11 4:26 ` Amit Virdi
2012-07-11 18:27 ` Joe Hershberger
1 sibling, 0 replies; 3+ messages in thread
From: Amit Virdi @ 2012-06-11 4:26 UTC (permalink / raw)
To: u-boot
On 6/8/2012 8:56 PM, Dinh Nguyen wrote:
> 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.
>
> Reviewd-by: Matthew Gerlach<mgerlach@altera.com>
> 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..980b92f 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;
>
Acked-by: Amit Virdi <amit.virdi@st.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] net/designware: Consecutive writes to the same register to be avoided
2012-06-08 15:26 [U-Boot] [PATCH v2] net/designware: Consecutive writes to the same register to be avoided Dinh Nguyen
2012-06-11 4:26 ` Amit Virdi
@ 2012-07-11 18:27 ` Joe Hershberger
1 sibling, 0 replies; 3+ messages in thread
From: Joe Hershberger @ 2012-07-11 18:27 UTC (permalink / raw)
To: u-boot
Hi Dinh Nguyen,
On Fri, Jun 8, 2012 at 10:26 AM, Dinh Nguyen <gills702@gmail.com> wrote:
> 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.
>
> Reviewd-by: Matthew Gerlach <mgerlach@altera.com>
> Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
> ---
Applied to next, thanks.
-Joe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-11 18:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-08 15:26 [U-Boot] [PATCH v2] net/designware: Consecutive writes to the same register to be avoided Dinh Nguyen
2012-06-11 4:26 ` Amit Virdi
2012-07-11 18:27 ` Joe Hershberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox