[U-Boot] [PATCH 1/4]: arm: Kirkwood: Set MAC address during registration for kirkwood egiga

Simon Kagstrom simon.kagstrom at netinsight.net
Wed Jul 8 13:02:22 CEST 2009


This patch sets the MAC address during registration in addition to
during device init. Since U-boot might not access the ethernet device,
Linux might end up with the MAC address unset.

Signed-off-by: Simon Kagstrom <simon.kagstrom at netinsight.net>
---
 drivers/net/kirkwood_egiga.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c
index 3c5db19..d760e1d 100644
--- a/drivers/net/kirkwood_egiga.c
+++ b/drivers/net/kirkwood_egiga.c
@@ -653,6 +653,8 @@ int kirkwood_egiga_initialize(bd_t * bis)
 		dev->send = (void *)kwgbe_send;
 		dev->recv = (void *)kwgbe_recv;
 
+		port_uc_addr_set(dkwgbe->regs, dev->enetaddr);
+
 		eth_register(dev);
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-- 
1.6.0.4



More information about the U-Boot mailing list