diff options
author | Simon Glass <sjg@chromium.org> | 2011-06-13 16:13:10 -0700 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-08-08 21:05:23 +0200 |
commit | 7616e7850804c7c69e0a22c179dfcba9e8f3f587 (patch) | |
tree | 9626807ab58412177023ab6ad472448b932d412c /drivers/net/designware.c | |
parent | 291391bed566a569a80b50c924a7c43747abc1b5 (diff) | |
download | u-boot-imx-7616e7850804c7c69e0a22c179dfcba9e8f3f587.zip u-boot-imx-7616e7850804c7c69e0a22c179dfcba9e8f3f587.tar.gz u-boot-imx-7616e7850804c7c69e0a22c179dfcba9e8f3f587.tar.bz2 |
Add Ethernet hardware MAC address framework to usbnet
Built-in Ethernet adapters support setting the mac address by means of a
ethaddr environment variable for each interface (ethaddr, eth1addr, eth2addr).
This adds similar support to the USB network side, using the names
usbethaddr, usbeth1addr, etc. They are kept separate since we don't want
a USB device taking the MAC address of a built-in device or vice versa.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Eric BĂ©nard <eric@eukrea.com>
Diffstat (limited to 'drivers/net/designware.c')
-rw-r--r-- | drivers/net/designware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/designware.c b/drivers/net/designware.c index bfa4384..1e34436 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -504,7 +504,7 @@ int designware_initialize(u32 id, ulong base_addr, u32 phy_addr) dev->iobase = (int)base_addr; dev->priv = priv; - eth_getenv_enetaddr_by_index(id, &dev->enetaddr[0]); + eth_getenv_enetaddr_by_index("eth", id, &dev->enetaddr[0]); priv->dev = dev; priv->mac_regs_p = (struct eth_mac_regs *)base_addr; |