Skip to contentSkip to conversation

Add CONFIG_MII_INIT support to related boards

PATCH New Tsi-Chung Liew 3 participants 3 messages Mar 30, 2008 – Apr 14, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add CONFIG_MII_INIT support to related boards

From: TsiChung Liew <[email protected]>

Replace CONFIG_8xx and CONFIG_MCF532x to CONFIG_MII_INIT in cmd_init.c. Add CONFIG_MII_INIT to board configuration files that use mii_init() in cmd_init.c.

---
 board/fads/fads.h              |    1 +
 common/cmd_mii.c               |    2 +-
 include/configs/Adder.h        |    1 +
 include/configs/EB+MCF-EV123.h |    1 +
 include/configs/EP88x.h        |    1 +
 include/configs/GEN860T.h      |    1 +
 include/configs/M5235EVB.h     |    1 +
 include/configs/M5271EVB.h     |    1 +
 include/configs/M5275EVB.h     |    1 +
 include/configs/M5282EVB.h     |    1 +
 include/configs/M5329EVB.h     |    1 +
 include/configs/M5373EVB.h     |    1 +
 include/configs/M54455EVB.h    |    4 ++--
 include/configs/M5475EVB.h     |    1 +
 include/configs/M5485EVB.h     |    1 +
 include/configs/NETPHONE.h     |    1 +
 include/configs/NETTA.h        |    1 +
 include/configs/NETTA2.h       |    1 +
 include/configs/TK885D.h       |    2 ++
 include/configs/TOP860.h       |    1 +
 include/configs/TQM885D.h      |    1 +
 include/configs/cobra5272.h    |    1 +
 include/configs/idmr.h         |    3 ++-
 include/configs/spc1920.h      |    1 +
 include/configs/stxxtc.h       |    1 +
 include/configs/uc100.h        |    1 +
 26 files changed, 29 insertions(+), 4 deletions(-)
board/fads/fads.h +1 -0
index dea8a0d..b217068 100644
@@ -96,6 +96,7 @@
 
 #ifdef CONFIG_FEC_ENET
 #define CFG_DISCOVER_PHY
+#define CONFIG_MII_INIT		1
 #endif
 
 
common/cmd_mii.c +1 -1
index fa753dd..bcbd7aa 100644
@@ -306,7 +306,7 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 		return 1;
 	}
 
-#if defined(CONFIG_8xx) || defined(CONFIG_MCF532x) || defined(CONFIG_MII_INIT)
+#if defined(CONFIG_MII_INIT)
 	mii_init ();
 #endif
 
include/configs/Adder.h +1 -0
index 7919991..8a76c26 100644
@@ -42,6 +42,7 @@
 
 #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
 #define CFG_DISCOVER_PHY
+#define CONFIG_MII_INIT		1
 #define FEC_ENET
 #endif /* CONFIG_ETHER_ON_FEC || CONFIG_ETHER_ON_FEC2 */
 
include/configs/EB+MCF-EV123.h +1 -0
index ea49a5d..5ba7585 100644
@@ -88,6 +88,7 @@
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/EP88x.h +1 -0
index 89e0eeb..c2ab18a 100644
@@ -42,6 +42,7 @@
 #define	CONFIG_ETHER_ON_FEC2			/* Enable Ethernet on FEC2	*/
 #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
 #define CFG_DISCOVER_PHY
+#define CONFIG_MII_INIT		1
 #define FEC_ENET
 #endif /* CONFIG_FEC_ENET */
 
include/configs/GEN860T.h +1 -0
index 3eb3131..c8b5a6d 100644
@@ -147,6 +147,7 @@
 #define CONFIG_FEC_ENET
 #define CFG_DISCOVER_PHY
 #define CONFIG_MII
+#define CONFIG_MII_INIT			1
 #define CONFIG_PHY_ADDR         		0
 
 /*
include/configs/M5235EVB.h +1 -0
index 3b4bff3..3ee2b39 100644
@@ -77,6 +77,7 @@
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/M5271EVB.h +1 -0
index 47e1e03..e1cc720 100644
@@ -88,6 +88,7 @@
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/M5275EVB.h +1 -0
index 599f8dc..283c873 100644
@@ -89,6 +89,7 @@
 #ifdef CONFIG_MCFFEC
 #define CONFIG_NET_MULTI	1
 #define CONFIG_MII		1
+#define CONFIG_MII_INIT		1
 #define CFG_DISCOVER_PHY
 #define CFG_RX_ETH_BUFFER	8
 #define CFG_FAULT_ECHO_LINK_DOWN
include/configs/M5282EVB.h +1 -0
index 7bb9f60..826778c 100644
@@ -75,6 +75,7 @@
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/M5329EVB.h +1 -0
index 1a15c77..42692d6 100644
@@ -70,6 +70,7 @@
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/M5373EVB.h +1 -0
index da4156c..3b9da17 100644
@@ -70,6 +70,7 @@
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/M54455EVB.h +2 -2
index a3c71e3..3a022af 100644
@@ -83,9 +83,9 @@
 /* Network configuration */
 #define CONFIG_MCFFEC
 #ifdef CONFIG_MCFFEC
-#	define CONFIG_NET_MULTI	1
+#	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
-#	define CONFIG_CF_DOMII
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/M5475EVB.h +1 -0
index a4e6c5d..6bb4619 100644
@@ -69,6 +69,7 @@
 #ifdef CONFIG_FSLDMAFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CONFIG_HAS_ETH1
 
 #	define CFG_DISCOVER_PHY
include/configs/M5485EVB.h +1 -0
index 9121023..cba51c8 100644
@@ -69,6 +69,7 @@
 #ifdef CONFIG_FSLDMAFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CONFIG_HAS_ETH1
 
 #	define CFG_DISCOVER_PHY
include/configs/NETPHONE.h +1 -0
index bb3d19d..e3c6fd3 100644
@@ -101,6 +101,7 @@
 #define	FEC_ENET		1	/* eth.c needs it that way... */
 #undef CFG_DISCOVER_PHY
 #define CONFIG_MII		1
+#define CONFIG_MII_INIT		1
 #define CONFIG_RMII		1	/* use RMII interface */
 
 #define CONFIG_ETHER_ON_FEC1	1
include/configs/NETTA.h +1 -0
index 945f47f..20404a3 100644
@@ -97,6 +97,7 @@
 #define	FEC_ENET		1	/* eth.c needs it that way... */
 #undef  CFG_DISCOVER_PHY		/* do not discover phys */
 #define CONFIG_MII		1
+#define CONFIG_MII_INIT		1
 #define CONFIG_RMII		1	/* use RMII interface */
 
 #if defined(CONFIG_NETTA_ISDN)
include/configs/NETTA2.h +1 -0
index fb8085d..cf66e04 100644
@@ -102,6 +102,7 @@
 #define	FEC_ENET		1	/* eth.c needs it that way... */
 #undef CFG_DISCOVER_PHY
 #define CONFIG_MII		1
+#define CONFIG_MII_INIT		1
 #define CONFIG_RMII		1	/* use RMII interface */
 
 #define CONFIG_ETHER_ON_FEC1	1
include/configs/TK885D.h +2 -0
index 50f1c63..7310abf 100644
@@ -510,6 +510,8 @@
 #define CONFIG_FEC2_PHY	2
 #endif
 
+#define CONFIG_MII_INIT	1
+
 #define CONFIG_NET_RETRY_COUNT	3
 #define CONFIG_ETHPRIME		"FEC ETHERNET"
 
include/configs/TOP860.h +1 -0
index 66f7a11..8237ba1 100644
@@ -205,6 +205,7 @@
 #define	FEC_ENET			1	/* eth.c needs it that way... */
 #define CFG_DISCOVER_PHY	1
 #define CONFIG_MII			1
+#define CONFIG_MII_INIT		1
 #define CONFIG_PHY_ADDR		31
 
 /*-----------------------------------------------------------------------
include/configs/TQM885D.h +1 -0
index a254bcd..f075442 100644
@@ -497,6 +497,7 @@
 
 #if defined(CONFIG_CMD_MII)
 #define CFG_DISCOVER_PHY
+#define CONFIG_MII_INIT	1
 #endif
 
 #define CONFIG_NET_RETRY_COUNT 1	/* reduce max. timeout before
include/configs/cobra5272.h +1 -0
index 104d94e..c7e3899 100644
@@ -158,6 +158,7 @@
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
 #	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/idmr.h +2 -1
index a15f69a..2ed51f7 100644
@@ -156,7 +156,8 @@
 #define CONFIG_MCFFEC
 #ifdef CONFIG_MCFFEC
 #	define CONFIG_NET_MULTI		1
-#define CONFIG_MII		1
+#	define CONFIG_MII		1
+#	define CONFIG_MII_INIT		1
 #	define CFG_DISCOVER_PHY
 #	define CFG_RX_ETH_BUFFER	8
 #	define CFG_FAULT_ECHO_LINK_DOWN
include/configs/spc1920.h +1 -0
index 2efc8f1..729f3c0 100644
@@ -31,6 +31,7 @@
 #undef	CONFIG_8xx_CONS_NONE
 
 #define CONFIG_MII
+#define CONFIG_MII_INIT		1
 #undef CONFIG_ETHER_ON_FEC1
 #define CONFIG_ETHER_ON_FEC2
 #define FEC_ENET
include/configs/stxxtc.h +1 -0
index f12765d..a3ab798 100644
@@ -97,6 +97,7 @@
 #define	FEC_ENET		1	/* eth.c needs it that way... */
 #undef CFG_DISCOVER_PHY
 #define CONFIG_MII		1
+#define CONFIG_MII_INIT		1
 #undef CONFIG_RMII
 
 #define CONFIG_ETHER_ON_FEC1	1
include/configs/uc100.h +1 -0
index c1c2e03..3c2de40 100644
@@ -510,6 +510,7 @@
 #define	CONFIG_FEC_ENET		1	/* use FEC ethernet  */
 #define FEC_ENET
 #define CONFIG_MII
+#define CONFIG_MII_INIT		1
 #define CFG_DISCOVER_PHY	1
 
 #endif	/* __CONFIG_H */
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 Add CONFIG_MII_INIT support to related boards

Quoted 8 lines · Tsi-Chung Liew

From: TsiChung Liew <[email protected]>

Replace CONFIG_8xx and CONFIG_MCF532x to CONFIG_MII_INIT in cmd_init.c. Add CONFIG_MII_INIT to board configuration files that use mii_init() in cmd_init.c.

Quoted 2 lines

---

Wolfgang - This patch depends on code that is in the net tree, but I can't pull it in because it contains files that the net tree doesn't know about.

regards,
Ben

#2 lore raw

PATCH 1/1 Add CONFIG_MII_INIT support to related boards

In reply to Tsi-Chung Liew
Quoted 27 lines · In message <[email protected]>…

From: TsiChung Liew <[email protected]>

Replace CONFIG_8xx and CONFIG_MCF532x to CONFIG_MII_INIT in cmd_init.c. Add CONFIG_MII_INIT to board configuration files that use mii_init() in cmd_init.c.

---
 board/fads/fads.h              |    1 +
 common/cmd_mii.c               |    2 +-
 include/configs/Adder.h        |    1 +
 include/configs/EB+MCF-EV123.h |    1 +
 include/configs/EP88x.h        |    1 +
 include/configs/GEN860T.h      |    1 +
 include/configs/M5235EVB.h     |    1 +
 include/configs/M5271EVB.h     |    1 +
 include/configs/M5275EVB.h     |    1 +
 include/configs/M5282EVB.h     |    1 +
 include/configs/M5329EVB.h     |    1 +
 include/configs/M5373EVB.h     |    1 +
 include/configs/M54455EVB.h    |    4 ++--
 include/configs/M5475EVB.h     |    1 +
 include/configs/M5485EVB.h     |    1 +
 include/configs/NETPHONE.h     |    1 +
 include/configs/NETTA.h        |    1 +
 include/configs/NETTA2.h       |    1 +
 include/configs/TK885D.h       |    2 ++
Quoted 8 lines
 include/configs/TOP860.h       |    1 +
 include/configs/TQM885D.h      |    1 +
 include/configs/cobra5272.h    |    1 +
 include/configs/idmr.h         |    3 ++-
 include/configs/spc1920.h      |    1 +
 include/configs/stxxtc.h       |    1 +
 include/configs/uc100.h        |    1 +
 26 files changed, 29 insertions(+), 4 deletions(-)

Applied, thanks.

Viele Gr??e,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is dangerous to be right on a subject  on  which  the  established
authorities are wrong.                                    -- Voltaire