]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/pxa255_idp/pxa_idp.c
Convert SMC91111 Ethernet driver to CONFIG_NET_MULTI API
[karo-tx-uboot.git] / board / pxa255_idp / pxa_idp.c
index b0aa8dda8895335c0c783b8587b6b4876716f6d5..05e30ecf001077e4ac42cbacc78e074066266782 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <command.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -128,8 +129,19 @@ int do_idpcmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(idpcmd, CONFIG_SYS_MAXARGS, 0, do_idpcmd,
-          "idpcmd    - custom IDP command\n",
-          "no args at this time\n"
+          "custom IDP command",
+          "no args at this time"
 );
 
 #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