nios2: Add missing Ethernet initialization to board_init().
authorScott McNutt <smcnutt@psyent.com>
Sun, 21 Mar 2010 17:26:33 +0000 (13:26 -0400)
committerScott McNutt <smcnutt@psyent.com>
Fri, 2 Apr 2010 16:28:40 +0000 (12:28 -0400)
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
lib_nios2/board.c

index 41d3297..8ec66a3 100644 (file)
@@ -139,6 +139,13 @@ void board_init (void)
        board_late_init ();
 #endif
 
+#if defined(CONFIG_CMD_NET)
+#if defined(CONFIG_NET_MULTI)
+       puts ("Net:   ");
+#endif
+       eth_initialize (bd);
+#endif
+
        /* main_loop */
        for (;;) {
                WATCHDOG_RESET ();