net: configure DWMAC DMA by default AXI burst length
PATCH v3 1/1 net: configure DWMAC DMA by default AXI burst length
From: Sonic Zhang <[email protected]>
Board can define its own AXI burst length to improve DWMAC DMA performance.
v2-changes:
- Avoid write burst len register when the Macro is not defined.
v3-changes:
- Add axi_bus register member to struct eth_dma_regs.
---
drivers/net/designware.c | 4 ++++ drivers/net/designware.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/net/designware.c +4 -0
@@ -256,6 +256,10 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis)writel (readl (&dma_p->opmode) |RXSTART |TXSTART , &dma_p->opmode); +#ifdef CONFIG_DW_AXI_BURST_LEN +writel ((CONFIG_DW_AXI_BURST_LEN &0x1FF >>1 ), &dma_p->axibus); +#endif +/* Start up the PHY */ if (phy_startup (priv->phydev)) { printf("Could not initialize PHY %s\n",
drivers/net/designware.h +3 -1
@@ -68,7 +68,9 @@ struct eth_dma_regs {u32 status;/* 0x14 */ u32 opmode;/* 0x18 */ u32 intenable;/* 0x1c */ -u8 reserved[40 ]; +u32 reserved1[2 ]; +u32 axibus;/* 0x28 */ +u32 reserved2[7 ];u32 currhosttxdesc;/* 0x48 */ u32 currhostrxdesc;/* 0x4c */ u32 currhosttxbuffaddr;/* 0x50 */
Signature · 1 line
1.7.9.5
PATCH v3 1/1 net: configure DWMAC DMA by default AXI burst length
Quoted 4 lines · Sonic Zhang
From: Sonic Zhang <[email protected]>
Board can define its own AXI burst length to improve DWMAC DMA
performance.
Quoted 9 lines
v2-changes:
- Avoid write burst len register when the Macro is not defined.v3-changes:
- Addaxi_busregister member to structeth_dma_regs.Signed-off-by Sonic Zhang <[email protected]>---
PATCH v3 1/1 net: configure DWMAC DMA by default AXI burst length
In reply to Sonic ZhangQuoted 4 lines · Sonic Zhang
From: Sonic Zhang <[email protected]>
Board can define its own AXI burst length to improve DWMAC DMA performance.
Quoted 8 lines
v2-changes:
- Avoid write burst len register when the Macro is not defined.v3-changes:
- Addaxi_busregister member to structeth_dma_regs.Signed-off-by Sonic Zhang <[email protected]>Acked-by Joe Hershberger <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150306/495cc82d/attachment.sig>