From: John Rigby Date: Wed, 13 Oct 2010 20:31:08 +0000 (-0600) Subject: drivers/net/fec_mxc.c: write mac address in init X-Git-Tag: v2010.12-rc1~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e9319f111d366294b9a1e8b1f66875242a5de3dd;p=u-boot drivers/net/fec_mxc.c: write mac address in init Call fec_set_hwaddr in init routine to setup MAC address so when ethaddr is set late via setenv the change will propagate to the hw. Signed-off-by: John Rigby CC: Ben Warren --- diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 2d4ffed4fa..3f09c2b652 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -414,6 +414,9 @@ static int fec_init(struct eth_device *dev, bd_t* bd) uint32_t base; struct fec_priv *fec = (struct fec_priv *)dev->priv; + /* Initialize MAC address */ + fec_set_hwaddr(dev); + /* * reserve memory for both buffer descriptor chains at once * Datasheet forces the startaddress of each chain is 16 byte