]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/altera/ep1s40/ep1s40.c
Convert SMC91111 Ethernet driver to CONFIG_NET_MULTI API
[people/ms/u-boot.git] / board / altera / ep1s40 / ep1s40.c
index c0eca17b92d28ceac3d09760f4fc418acca5b1c4..6395de7293bb44bfc6b2a3a8509712c6e6fafde7 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 
 int checkboard (void)
 {
@@ -33,3 +34,14 @@ phys_size_t initdram (int board_type)
 {
        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