path: root/board/davinci
diff options
authorSimon Glass <sjg@chromium.org>2011-06-13 16:13:10 -0700
committerRemy Bohmer <linux@bohmer.net>2011-08-08 21:05:23 +0200
commit7616e7850804c7c69e0a22c179dfcba9e8f3f587 (patch)
tree9626807ab58412177023ab6ad472448b932d412c /board/davinci
parent291391bed566a569a80b50c924a7c43747abc1b5 (diff)
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 'board/davinci')
1 files changed, 1 insertions, 1 deletions
diff --git a/board/davinci/common/misc.c b/board/davinci/common/misc.c
index 610333921..89ae1115d 100644
--- a/board/davinci/common/misc.c
+++ b/board/davinci/common/misc.c
@@ -101,7 +101,7 @@ void davinci_sync_env_enetaddr(uint8_t *rom_enetaddr)
uint8_t env_enetaddr[6];
- eth_getenv_enetaddr_by_index(0, env_enetaddr);
+ eth_getenv_enetaddr_by_index("eth", 0, env_enetaddr);
if (!memcmp(env_enetaddr, "\0\0\0\0\0\0", 6)) {
/* There is no MAC address in the environment, so we initialize
* it from the value in the EEPROM. */