diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-08-02 17:37:00 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-08-21 17:20:28 (GMT) |
commit | ddb636bd66f527e6680faed5a6adced69836517d (patch) | |
tree | 40f22a2f5df90adb1ca549fe02ebc8cf2cc1eab3 /drivers/net | |
parent | 0cfb8afed3939e2db4e028a86ea4803f7475941f (diff) | |
download | u-boot-ddb636bd66f527e6680faed5a6adced69836517d.tar.xz |
fec_mxc: set ethaddr if fuses burned and not previously set
Without this change, the following message is generated:
Warning: FEC using MAC address from net device
See doc/README.enetaddr for details.
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fec_mxc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index e14a359..690e572 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -980,6 +980,8 @@ static int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr, if (fec_get_hwaddr(edev, dev_id, ethaddr) == 0) { debug("got MAC%d address from fuse: %pM\n", dev_id, ethaddr); memcpy(edev->enetaddr, ethaddr, 6); + if (!getenv("ethaddr")) + eth_setenv_enetaddr("ethaddr", ethaddr); } return ret; err3: |