]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
TI OMAP3: SDP3430 FIX NET_MULTI Warning
authorNishanth Menon <nm@ti.com>
Fri, 16 Oct 2009 05:06:36 +0000 (00:06 -0500)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 14 Dec 2009 05:31:26 +0000 (21:31 -0800)
Enable the NET MULTI option and remove build warning

Tested: SDP3430

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
board/ti/sdp3430/sdp.c
include/configs/omap3_sdp3430.h

index 40cf26f42ae17e03e6a62187c4693b4555490f28..0d8e20dc7cf3b6f30c79f5399881a0ffc6a538b0 100644 (file)
@@ -22,6 +22,7 @@
  * MA 02111-1307 USA
  */
 #include <common.h>
+#include <netdev.h>
 #include <twl4030.h>
 #include <asm/io.h>
 #include <asm/arch/mux.h>
@@ -125,12 +126,13 @@ int board_init(void)
 #define ETH_CONTROL_REG                (CONFIG_LAN91C96_BASE + 0x30b)
 
 /**
- * @brief ether_init Take the Ethernet controller out of reset and wait
+ * @brief board_eth_init Take the Ethernet controller out of reset and wait
  * for the EEPROM load to complete.
  */
-static void ether_init(void)
+int board_eth_init(bd_t *bis)
 {
-#ifdef CONFIG_DRIVER_LAN91C96
+       int rc = 0;
+#ifdef CONFIG_LAN91C96
        int cnt = 20;
 
        writew(0x0, LAN_RESET_REGISTER);
@@ -155,10 +157,11 @@ static void ether_init(void)
 
        writeb(readb(ETH_CONTROL_REG) & ~0x1, ETH_CONTROL_REG);
        udelay(1000);
+       rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
 reset_err_out:
-       return;
 
 #endif
+       return rc;
 }
 
 /**
@@ -187,7 +190,6 @@ int misc_init_r(void)
         *   VSIM  - off (init, variable) for MMC1.DAT[3..7], SIM
         *   VPLL2 - 1.8V
         */
-       ether_init();
 
        return 0;
 }
index d91c8ffa84bf6bc28b63df5e0be2cd3c2f0d591a..fa2ad534340816e46a66df9519c39c5c71e0b884 100644 (file)
  */
 #if defined(CONFIG_CMD_NET)
 
-#define CONFIG_DRIVER_LAN91C96
+#define CONFIG_NET_MULTI
+#define CONFIG_LAN91C96
 #define CONFIG_LAN91C96_BASE   DEBUG_BASE
 #define CONFIG_LAN91C96_EXT_PHY