[U-Boot-Users] [PATCH 1/4] TQM885D: fix problem with PHY on FEC2

Martin Krause martin.krause at tqs.de
Tue Jul 24 10:58:34 CEST 2007


After the patch from Markus Klotzbuecher (Bugfix in FEC initialisation from 12. July 2006)
FEC2 on the TQM885D board is not working after boot. Only after a 'mii info' command
FEC2 could be used. The reason for this is that the PHY for FEC2 is not recognized
properly.

This patch changes the TQM885D configuration from automatic PHY detection to predefined
(fix) PHY types. With this FEC2 (and FEC + SCC) works without problems.

Signed-off-by: Martin Kraues <martin.krause at tqs.de>
---

 include/configs/TQM885D.h |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/include/configs/TQM885D.h b/include/configs/TQM885D.h
index d470ade..8bbac4c 100644
--- a/include/configs/TQM885D.h
+++ b/include/configs/TQM885D.h
@@ -479,7 +479,15 @@
 #define CONFIG_ETHER_ON_FEC2		/* ... for FEC2 */
 
 #if (CONFIG_COMMANDS & CFG_CMD_MII)
-#define CFG_DISCOVER_PHY
+/*
+ * The used PHYs are defined by fix values, because the automatic PHY
+ * detection (over #define CFG_DISCOVER_PHY) does not work properly. The
+ * reason for this is unknown. Maybe it has somthing to do with the fact, that
+ * the TQM885D has two PHYs and not only one.
+ */
+#define PHY_ID_LXT971		0x001378e0	/* LXT971 and 972 */
+#define CONFIG_FEC1_PHY		PHY_ID_LXT971
+#define CONFIG_FEC2_PHY		PHY_ID_LXT971
 #endif
 
 #define CONFIG_NET_RETRY_COUNT 1	/* reduce max. timeout before




More information about the U-Boot mailing list