Explorar o código

nios2: Add missing Ethernet initialization to board_init().

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Scott McNutt %!s(int64=15) %!d(string=hai) anos
pai
achega
3fd2a1f3eb
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      lib_nios2/board.c

+ 7 - 0
lib_nios2/board.c

@@ -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 ();