[U-Boot] ColdFire/M68K board.c initialization / order matters [PATCH] -- resent in git format

Michael Durrant mdurrant at arcturusnetworks.com
Wed Jan 20 19:33:45 CET 2010


lib_m68k_board.patch
   - eth_init() requires eth_current which is initialized in
eth_initialize()
     so eth_initialize (bd) should be called first then eth_init(bd)

Signed-off-by: David Wu <davidwu at arcturusnetworks.com>
Signed-off-by: Michael Durrant <mdurrant at arcturusnetworks.com>
---
 lib_m68k/board.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib_m68k/board.c b/lib_m68k/board.c
index 732023d..c17394b 100644
--- a/lib_m68k/board.c
+++ b/lib_m68k/board.c
@@ -639,13 +639,13 @@ void board_init_r (gd_t *id, ulong dest_
 #endif
 #if defined(CONFIG_CMD_NET)
     WATCHDOG_RESET();
-#if defined(FEC_ENET)
-    eth_init(bd);
-#endif
 #if defined(CONFIG_NET_MULTI)
     puts ("Net:   ");
     eth_initialize (bd);
 #endif
+#if defined(FEC_ENET)
+    eth_init(bd);
+#endif
 #endif
 
 #ifdef CONFIG_POST
-- 1.4.3.4



More information about the U-Boot mailing list