net: lpc32xx: eth buffers base config
Subsystems (2)
PATCH 7/7 net: lpc32xx: eth buffers base config
From: Sylvain Lemieux <[email protected]>
Add support to specify the Ethernet buffer base address;
if none are supply by the board, the default value is use (from existing code).
Signed-off-by Sylvain Lemieux <[email protected]>
--- drivers/net/lpc32xx_eth.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/net/lpc32xx_eth.c +5 -3
@@ -353,15 +353,17 @@ int lpc32xx_eth_phy_write(struct mii_dev *bus, int phy_addr, int dev_addr,#endif /* +* Provide default Ethernet buffers base address if target did not. * Locate buffers in SRAM at 0x00001000 to avoid cache issues and * maximize throughput. */ - -#define LPC32XX_ETH_BUFS 0x00001000 +#if !defined(CONFIG_LPC32XX_ETH_BUFS_BASE ) +#define CONFIG_LPC32XX_ETH_BUFS_BASE 0x00001000 +#endif static struct lpc32xx_eth_device lpc32xx_eth = { .regs = (struct lpc32xx_eth_registers *)LPC32XX_ETH_BASE , - .bufs = (struct lpc32xx_eth_buffers *)LPC32XX_ETH_BUFS , + .bufs = (struct lpc32xx_eth_buffers *)CONFIG_LPC32XX_ETH_BUFS_BASE , #if defined(CONFIG_RMII) .phy_rmii = true, #endif
Signature · 1 line
1.8.3.1
PATCH 7/7 net: lpc32xx: eth buffers base config
Hi Sylvain,
Quoted 6 lines · On Mon, Jul 27, 2015 at 12:37 PM, <[email protected]> wrote:
From: Sylvain Lemieux <[email protected]>
Add support to specify the Ethernet buffer base address;
if none are supply by the board, the default value is use (from existing code).Signed-off-by Sylvain Lemieux <[email protected]>
Acked-by Joe Hershberger <[email protected]>
PATCH 7/7 net: lpc32xx: eth buffers base config
In reply to slemieux.tyco at gmail.comQuoted 7 lines · slemieux.tyco at gmail.com
From: Sylvain Lemieux <[email protected]>
Add support to specify the Ethernet buffer base address;
if none are supply by the board, the default value is use (from existing code).Signed-off-by Sylvain Lemieux <[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/20150813/f9391f9d/attachment.sig>