]> git.sur5r.net Git - u-boot/blobdiff - board/cm-bf548/cm-bf548.c
Convert SMC911X Ethernet driver to CONFIG_NET_MULTI API
[u-boot] / board / cm-bf548 / cm-bf548.c
index 1c2660046fb82a12e79ad316a8488954470b1528..796263d62b39b66a5f700be7563baefc0c64a351 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <config.h>
 #include <command.h>
+#include <netdev.h>
 #include <asm/blackfin.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -77,3 +78,12 @@ int board_early_init_f(void)
 
        return 0;
 }
+
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC911X
+       rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
+#endif
+       return rc;
+}