Add Ethernet hardware MAC address framework to usbnet
authorSimon Glass <sjg@chromium.org>
Thu, 5 May 2011 16:52:07 +0000 (09:52 -0700)
committerRicardo Salveti de Araujo <ricardo.salveti@canonical.com>
Fri, 20 May 2011 03:53:47 +0000 (00:53 -0300)
commitf9e1329069452b23134048da461154bed65dd8bc
treecbca4893b8e959d11ea7021f9a66604c9545b4b2
parentbafd244893a95ad43476bd2e24d0ee0b4f7cb296
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.

TEST=build, test on harmony, with setenv usbethaddr c0:c1:c0:13:0b:b8, bootp,
tftp ...

Signed-off-by: Simon Glass <sjg@chromium.org>
board/davinci/common/misc.c
drivers/net/designware.c
drivers/usb/eth/usb_ether.c
include/net.h
net/eth.c