From d44e14b5fcf362154bd6a18e15446932f510cecf Mon Sep 17 00:00:00 2001
From: wdenk <wdenk>
Date: Tue, 10 May 2005 15:51:35 +0000
Subject: [PATCH] Add support for 2 x TSEC interfaces on the TQM8540 board.

---
 CHANGELOG                 | 2 ++
 include/configs/TQM8540.h | 7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index dbede2691d..d2cdd8d123 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes for U-Boot 1.1.3:
 ======================================================================
 
+* Add support for 2 x TSEC interfaces on the TQM8540 board.
+
 * On LWMON we must use the watchdog to reset the board as the CPU
   genereated HRESET pulse is too short to reset the external
   circuitry.
diff --git a/include/configs/TQM8540.h b/include/configs/TQM8540.h
index d28d2f311e..9dc77c4bd2 100644
--- a/include/configs/TQM8540.h
+++ b/include/configs/TQM8540.h
@@ -279,7 +279,7 @@
 #endif
 
 #define CONFIG_MII		1	/* MII PHY management */
-#undef CONFIG_MPC85XX_TSEC1
+#define CONFIG_MPC85XX_TSEC1	1
 #define CONFIG_MPC85XX_TSEC2	1
 #define TSEC1_PHY_ADDR		0
 #define TSEC2_PHY_ADDR		1
@@ -287,9 +287,12 @@
 #define TSEC2_PHYIDX		0
 
 #define CONFIG_MPC85XX_FEC	1
-#define FEC_PHY_ADDR		0
+#define FEC_PHY_ADDR		2
 #define FEC_PHYIDX		0
 
+#define CONFIG_HAS_ETH1
+#define CONFIG_HAS_ETH2
+
 #define CONFIG_ETHPRIME		"ENET1"
 
 #endif	/* CONFIG_TSEC_ENET */
-- 
2.39.5