summaryrefslogtreecommitdiffstats
path: root/lib_i386
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2005-10-28 22:30:33 +0200
committerMarian Balakowicz <m8@semihalf.com>2005-10-28 22:30:33 +0200
commit63ff004c4fcad9f690bf44dbd15d568bb47aac2d (patch)
tree7b64074a85da8118b6c862f14de1171b36ade0f7 /lib_i386
parentfe93483a0ab9dcbf7794ffbf0b029ba138380e81 (diff)
downloadtalos-obmc-uboot-63ff004c4fcad9f690bf44dbd15d568bb47aac2d.tar.gz
talos-obmc-uboot-63ff004c4fcad9f690bf44dbd15d568bb47aac2d.zip
Add support for multiple PHYs.
Diffstat (limited to 'lib_i386')
-rw-r--r--lib_i386/board.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib_i386/board.c b/lib_i386/board.c
index a1808142e0..e90eb6e569 100644
--- a/lib_i386/board.c
+++ b/lib_i386/board.c
@@ -317,15 +317,6 @@ void start_i386boot (void)
misc_init_r();
#endif
-
-#if (CONFIG_COMMANDS & CFG_CMD_NET) && (0)
- WATCHDOG_RESET();
-# ifdef DEBUG
- puts ("Reset Ethernet PHY\n");
-# endif
- reset_phy();
-#endif
-
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA) && !(CONFIG_COMMANDS & CFG_CMD_IDE)
WATCHDOG_RESET();
puts ("PCMCIA:");
@@ -387,12 +378,22 @@ void start_i386boot (void)
doc_init();
#endif
-#if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_NET_MULTI)
+#if (CONFIG_COMMANDS & CFG_CMD_NET)
+#if defined(CONFIG_NET_MULTI)
WATCHDOG_RESET();
puts("Net: ");
+#endif
eth_initialize(gd->bd);
#endif
+#if (CONFIG_COMMANDS & CFG_CMD_NET) && (0)
+ WATCHDOG_RESET();
+# ifdef DEBUG
+ puts ("Reset Ethernet PHY\n");
+# endif
+ reset_phy();
+#endif
+
#ifdef CONFIG_LAST_STAGE_INIT
WATCHDOG_RESET();
/*
OpenPOWER on IntegriCloud