]> git.sur5r.net Git - u-boot/blobdiff - board/renesas/ap325rxa/ap325rxa.c
Convert SMC911X Ethernet driver to CONFIG_NET_MULTI API
[u-boot] / board / renesas / ap325rxa / ap325rxa.c
index 9f1112a4360941222415c2a6bc8293d7eab99808..be919f5454a10cb1667f18962c3392ba71cfe564 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 
@@ -160,3 +161,12 @@ void ide_set_reset(int idereset)
        udelay(FPGA_NAND_RST_WAIT);
        outw(FPGA_NAND_INIT, FPGA_NAND_CTL);
 }
+
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC911X
+       rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
+#endif
+       return rc;
+}