mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-23 15:41:33 +00:00
net: lpc32xx: eth buffers base config
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 <slemieux@tycoint.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
fcd78fa604
commit
68a776687e
1 changed files with 5 additions and 3 deletions
|
@ -353,15 +353,17 @@ int lpc32xx_eth_phy_write(struct mii_dev *bus, int phy_addr, int dev_addr,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
* Provide default Ethernet buffers base address if target did not.
|
||||||
* Locate buffers in SRAM at 0x00001000 to avoid cache issues and
|
* Locate buffers in SRAM at 0x00001000 to avoid cache issues and
|
||||||
* maximize throughput.
|
* maximize throughput.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(CONFIG_LPC32XX_ETH_BUFS_BASE)
|
||||||
#define LPC32XX_ETH_BUFS 0x00001000
|
#define CONFIG_LPC32XX_ETH_BUFS_BASE 0x00001000
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct lpc32xx_eth_device lpc32xx_eth = {
|
static struct lpc32xx_eth_device lpc32xx_eth = {
|
||||||
.regs = (struct lpc32xx_eth_registers *)LPC32XX_ETH_BASE,
|
.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)
|
#if defined(CONFIG_RMII)
|
||||||
.phy_rmii = true,
|
.phy_rmii = true,
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue