aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2010-09-08 13:54:02 -0600
committerJohn Rigby <john.rigby@linaro.org>2010-09-08 14:10:20 -0600
commited70d71fb66bea3ba080f4431a9d693cca338057 (patch)
tree3dbe7b3855b4fc123840c0ca6243c1e042778e27
parent84f8af47e3234273c8f11ade3daece015604eee5 (diff)
drivers/net/fec_mxc.c: write mac address in initlinaro-stable-pre-v1020
call fec_set_hwaddr in init routine to setup MAC address so when ethaddr is set late the change will propagate to the hw Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--drivers/net/fec_mxc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 2d4ffed4f..050c0e1c1 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -414,6 +414,8 @@ 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