]> git.sur5r.net Git - u-boot/blobdiff - board/csb226/csb226.c
Convert CS8900 Ethernet driver to CONFIG_NET_MULTI API
[u-boot] / board / csb226 / csb226.c
index 80caf8b464e17e5bda816760a9248a799845454b..0a6c13dd29b046ff89c46b46d134d6a5966edecb 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <asm/arch/pxa-regs.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -151,3 +152,14 @@ void show_boot_progress (int status)
 
        return;
 }
+
+#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