]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/omap3/evm/evm.c
Convert SMC911X Ethernet driver to CONFIG_NET_MULTI API
[karo-tx-uboot.git] / board / omap3 / evm / evm.c
index 5fd5efad9c2e6db29d19fd629dbd899306bb1107..bfd2688d7343d3cc5217ca03740cc0e024d34daf 100644 (file)
@@ -28,6 +28,7 @@
  * MA 02111-1307 USA
  */
 #include <common.h>
+#include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/mux.h>
@@ -122,3 +123,12 @@ static void setup_net_chip(void)
        udelay(1);
        writel(GPIO0, &gpio3_base->setdataout);
 }
+
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC911X
+       rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
+#endif
+       return rc;
+}