[U-Boot] [PATCH v2] drivers/net/fec_mxc.c: write mac address in init
John Rigby
john.rigby at linaro.org
Wed Oct 13 22:31:08 CEST 2010
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 at linaro.org>
CC: Ben Warren <biggerbadderben at gmail.com>
---
v2 - add blank line as requested
better commit message
added CC
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
--
1.7.1
More information about the U-Boot
mailing list