]> git.sur5r.net Git - u-boot/commitdiff
drivers/net/fec_mxc.c: write mac address in init
authorJohn Rigby <john.rigby@linaro.org>
Wed, 13 Oct 2010 20:31:08 +0000 (14:31 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 19 Oct 2010 21:27:19 +0000 (23:27 +0200)
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>
drivers/net/fec_mxc.c

index 2d4ffed4fa67b246744073fd50aac70b656037f6..3f09c2b65263c324c5bc3d2cd14bd21ce45641e0 100644 (file)
@@ -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