浏览代码

nios2: Add missing Ethernet initialization to board_init().

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Scott McNutt 15 年之前
父节点
当前提交
3fd2a1f3eb
共有 1 个文件被更改,包括 7 次插入0 次删除
  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 ();