]> git.sur5r.net Git - u-boot/blobdiff - board/ti/omap2420h4/omap2420h4.c
Net: Clean up LAN91C96 Support
[u-boot] / board / ti / omap2420h4 / omap2420h4.c
index 8d1823900c5350e6ea18aabc58bc4db0883cefba..1c98e1b82ae1a7fa1ce1e7ba5e06f6f7bf8f7528 100644 (file)
@@ -22,6 +22,7 @@
  * MA 02111-1307 USA
  */
 #include <common.h>
+#include <netdev.h>
 #include <asm/arch/omap2420.h>
 #include <asm/io.h>
 #include <asm/arch/bits.h>
@@ -842,3 +843,14 @@ void update_mux(u32 btype,u32 mtype)
                }
        }
 }
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_LAN91C96
+       rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
+#endif
+       return rc;
+}
+#endif