]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mx31ads/mx31ads.c
IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers
[u-boot] / board / freescale / mx31ads / mx31ads.c
index c24c47c57f885a6f006db0b6eb7080d00338b260..a298e0530f52b4707d9c39f11bc131bcf4fc0fd0 100644 (file)
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <asm/io.h>
-#include <asm/arch/mx31.h>
-#include <asm/arch/mx31-regs.h>
+#include <asm/arch/clock.h>
+#include <asm/arch/imx-regs.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -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