]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/pxa255_idp/pxa_idp.c
Convert SMC91111 Ethernet driver to CONFIG_NET_MULTI API
[people/ms/u-boot.git] / board / pxa255_idp / pxa_idp.c
index e9e479c4bad50feca63da6aae222103b821d534f..05e30ecf001077e4ac42cbacc78e074066266782 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <command.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -133,3 +134,14 @@ U_BOOT_CMD(idpcmd, CONFIG_SYS_MAXARGS, 0, do_idpcmd,
 );
 
 #endif
+
+#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