]> git.sur5r.net Git - u-boot/blobdiff - lib_arm/board.c
Add bb_miiphy_init call before any ethernet bring-up code.
[u-boot] / lib_arm / board.c
index a0e56d5ae8f9fbd71c8f4863a37045602fa81039..5e3d7f65b1e95b3fd284413e5b891e938d53c26a 100644 (file)
 #include <onenand_uboot.h>
 #include <mmc.h>
 
+#ifdef CONFIG_BITBANGMII
+#include <miiphy.h>
+#endif
+
 #ifdef CONFIG_DRIVER_SMC91111
 #include "../drivers/net/smc91111.h"
 #endif
@@ -417,6 +421,9 @@ extern void davinci_eth_set_mac_addr (const u_int8_t *addr);
        mmc_initialize (gd->bd);
 #endif
 
+#ifdef CONFIG_BITBANGMII
+       bb_miiphy_init();
+#endif
 #if defined(CONFIG_CMD_NET)
 #if defined(CONFIG_NET_MULTI)
        puts ("Net:   ");