summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-10-11 18:42:58 +0200
committerTom Rini <trini@ti.com>2014-11-07 16:27:04 -0500
commit99dd6ab40505d2b11424dc8750f12e32ccb478f4 (patch)
tree93864a506247425771196901ae40462a0f8863c7
parent389b89c70f5e8df9056cb960bcc500c5e9a57393 (diff)
downloadu-boot-imx-99dd6ab40505d2b11424dc8750f12e32ccb478f4.zip
u-boot-imx-99dd6ab40505d2b11424dc8750f12e32ccb478f4.tar.gz
u-boot-imx-99dd6ab40505d2b11424dc8750f12e32ccb478f4.tar.bz2
net: smc911x: Keep MAC programmed
Make sure to keep the MAC address programmed in the SMC911x ADDRH and ADDRL registers. Linux can read those registers to determine the MAC address on EEPROM-less configurations. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Tom Rini <trini@ti.com>
-rw-r--r--drivers/net/smc911x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index b097c1a..5959672 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -187,6 +187,7 @@ static int smc911x_send(struct eth_device *dev, void *packet, int length)
static void smc911x_halt(struct eth_device *dev)
{
smc911x_reset(dev);
+ smc911x_handle_mac_address(dev);
}
static int smc911x_rx(struct eth_device *dev)