]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/gaisler/gr_ep2s60/gr_ep2s60.c
Convert SMC91111 Ethernet driver to CONFIG_NET_MULTI API
[people/ms/u-boot.git] / board / gaisler / gr_ep2s60 / gr_ep2s60.c
index 2904d32586b3eccc1fe7b94599a67c3e8073bee5..7241c6d1a4a28a6970886c03af25aa68999cd525 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <config.h>
 #include <asm/leon.h>
 
@@ -37,3 +38,14 @@ int misc_init_r(void)
 {
        return 0;
 }
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC91111
+       rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+       return rc;
+}
+#endif