]> git.sur5r.net Git - u-boot/blobdiff - board/ssv/adnpesc1/adnpesc1.c
Convert CS8900 Ethernet driver to CONFIG_NET_MULTI API
[u-boot] / board / ssv / adnpesc1 / adnpesc1.c
index 9d32741499ee7bf5997caa1a5cbb2a1acfa1d187..72810d036aea9a73e89c9b4e07f5d2a2efcd5677 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <nios-io.h>
 #include <spi.h>
 
@@ -100,3 +101,14 @@ int post_hotkeys_pressed(void)
        return 0;       /* No hotkeys supported */
 }
 #endif /* CONFIG_POST */
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_CS8900
+       rc = cs8900_initialize(0, CONFIG_CS8900_BASE);
+#endif
+       return rc;
+}
+#endif