]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mx31ads/mx31ads.c
Convert CS8900 Ethernet driver to CONFIG_NET_MULTI API
[u-boot] / board / freescale / mx31ads / mx31ads.c
index c24c47c57f885a6f006db0b6eb7080d00338b260..bc25c6deb5cb8c04b6b07c5d15f5935eaa843cf3 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/mx31.h>
 #include <asm/arch/mx31-regs.h>
@@ -104,3 +105,14 @@ int checkboard (void)
        printf("Board: MX31ADS\n");
        return 0;
 }
+
+#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