]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_m68k/board.c
Add bb_miiphy_init call before any ethernet bring-up code.
[karo-tx-uboot.git] / lib_m68k / board.c
index 3d885306e216178b0e2252e0900e82aefc522204..732023d67c008466c519bbf07840e8c495af1845 100644 (file)
 #include <spi.h>
 #endif
 
+#ifdef CONFIG_BITBANGMII
+#include <miiphy.h>
+#endif
+
 #include <nand.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -630,6 +634,9 @@ void board_init_r (gd_t *id, ulong dest_addr)
        nand_init();            /* go init the NAND */
 #endif
 
+#ifdef CONFIG_BITBANGMII
+       bb_miiphy_init();
+#endif
 #if defined(CONFIG_CMD_NET)
        WATCHDOG_RESET();
 #if defined(FEC_ENET)