diff options
author | John Rigby <john.rigby@linaro.org> | 2010-10-13 14:31:08 -0600 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-19 23:27:19 +0200 |
commit | e9319f111d366294b9a1e8b1f66875242a5de3dd (patch) | |
tree | 7f712013f0ac07c007bcebdd7e3ec93bcd3ec327 | |
parent | 284170309cab2006e7730c65454458680921b16a (diff) | |
download | u-boot-imx-e9319f111d366294b9a1e8b1f66875242a5de3dd.zip u-boot-imx-e9319f111d366294b9a1e8b1f66875242a5de3dd.tar.gz u-boot-imx-e9319f111d366294b9a1e8b1f66875242a5de3dd.tar.bz2 |
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 <john.rigby@linaro.org>
CC: Ben Warren <biggerbadderben@gmail.com>
-rw-r--r-- | drivers/net/fec_mxc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 2d4ffed..3f09c2b 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 |