]> git.sur5r.net Git - u-boot/blobdiff - board/ti/omap1610inn/omap1610innovator.c
nds32: asm/io.h: add __iormb __iowmb and inline io support
[u-boot] / board / ti / omap1610inn / omap1610innovator.c
index 2e04ad4bddb024819fe2eaf26483f089e7c6207d..16e823766a9a08a50a49cdaf8416e3633d5d13ac 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #if defined(CONFIG_OMAP1610)
 #include <./configs/omap1510.h>
 #endif
@@ -62,13 +63,6 @@ static inline void delay (unsigned long loops)
 
 int board_init (void)
 {
-       if (machine_is_omap_h2())
-               gd->bd->bi_arch_number = MACH_TYPE_OMAP_H2;
-       else if (machine_is_omap_innovator())
-               gd->bd->bi_arch_number = MACH_TYPE_OMAP_INNOVATOR;
-       else
-               gd->bd->bi_arch_number = MACH_TYPE_OMAP_GENERIC;
-
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x10000100;
 
@@ -302,3 +296,14 @@ void peripheral_power_enable (void)
 
        *SW_CLOCK_REQUEST |= UART1_48MHZ_ENABLE;
 }
+
+#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