diff options
| author | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | 2008-03-30 01:22:13 -0500 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2008-04-13 23:03:02 -0700 | 
| commit | 0f3ba7e9783f352318f197a3148f6d5cc3d75bea (patch) | |
| tree | b79b5b64167a6c7e5162db258a5343e64c46cf93 | |
| parent | f33fca22e76f20e4e4793810ca7a06a4805a6cf4 (diff) | |
| download | olio-uboot-2014.01-0f3ba7e9783f352318f197a3148f6d5cc3d75bea.tar.xz olio-uboot-2014.01-0f3ba7e9783f352318f197a3148f6d5cc3d75bea.zip | |
Add CONFIG_MII_INIT support to related boards
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.
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
| -rw-r--r-- | board/fads/fads.h | 1 | ||||
| -rw-r--r-- | common/cmd_mii.c | 2 | ||||
| -rw-r--r-- | include/configs/Adder.h | 1 | ||||
| -rw-r--r-- | include/configs/EB+MCF-EV123.h | 1 | ||||
| -rw-r--r-- | include/configs/EP88x.h | 1 | ||||
| -rw-r--r-- | include/configs/GEN860T.h | 1 | ||||
| -rw-r--r-- | include/configs/M5235EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/M5271EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/M5275EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/M5282EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/M5329EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/M5373EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/M54455EVB.h | 4 | ||||
| -rw-r--r-- | include/configs/M5475EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/M5485EVB.h | 1 | ||||
| -rw-r--r-- | include/configs/NETPHONE.h | 1 | ||||
| -rw-r--r-- | include/configs/NETTA.h | 1 | ||||
| -rw-r--r-- | include/configs/NETTA2.h | 1 | ||||
| -rw-r--r-- | include/configs/TK885D.h | 2 | ||||
| -rw-r--r-- | include/configs/TOP860.h | 1 | ||||
| -rw-r--r-- | include/configs/TQM885D.h | 1 | ||||
| -rw-r--r-- | include/configs/cobra5272.h | 1 | ||||
| -rw-r--r-- | include/configs/idmr.h | 3 | ||||
| -rw-r--r-- | include/configs/spc1920.h | 1 | ||||
| -rw-r--r-- | include/configs/stxxtc.h | 1 | ||||
| -rw-r--r-- | include/configs/uc100.h | 1 | 
26 files changed, 29 insertions, 4 deletions
| diff --git a/board/fads/fads.h b/board/fads/fads.h index 83c67049c..ffa72cbb4 100644 --- a/board/fads/fads.h +++ b/board/fads/fads.h @@ -96,6 +96,7 @@  #ifdef CONFIG_FEC_ENET  #define CFG_DISCOVER_PHY +#define CONFIG_MII_INIT		1  #endif diff --git a/common/cmd_mii.c b/common/cmd_mii.c index fa753dd67..bcbd7aa4e 100644 --- a/common/cmd_mii.c +++ b/common/cmd_mii.c @@ -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 diff --git a/include/configs/Adder.h b/include/configs/Adder.h index 79199912d..8a76c264c 100644 --- a/include/configs/Adder.h +++ b/include/configs/Adder.h @@ -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 */ diff --git a/include/configs/EB+MCF-EV123.h b/include/configs/EB+MCF-EV123.h index ea49a5d93..5ba7585bc 100644 --- a/include/configs/EB+MCF-EV123.h +++ b/include/configs/EB+MCF-EV123.h @@ -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 diff --git a/include/configs/EP88x.h b/include/configs/EP88x.h index 89e0eebee..c2ab18a79 100644 --- a/include/configs/EP88x.h +++ b/include/configs/EP88x.h @@ -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 */ diff --git a/include/configs/GEN860T.h b/include/configs/GEN860T.h index 3eb3131d4..c8b5a6d8a 100644 --- a/include/configs/GEN860T.h +++ b/include/configs/GEN860T.h @@ -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  /* diff --git a/include/configs/M5235EVB.h b/include/configs/M5235EVB.h index 3b4bff306..3ee2b395a 100644 --- a/include/configs/M5235EVB.h +++ b/include/configs/M5235EVB.h @@ -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 diff --git a/include/configs/M5271EVB.h b/include/configs/M5271EVB.h index 47e1e038b..e1cc720e7 100644 --- a/include/configs/M5271EVB.h +++ b/include/configs/M5271EVB.h @@ -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 diff --git a/include/configs/M5275EVB.h b/include/configs/M5275EVB.h index 599f8dcb4..283c873d8 100644 --- a/include/configs/M5275EVB.h +++ b/include/configs/M5275EVB.h @@ -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 diff --git a/include/configs/M5282EVB.h b/include/configs/M5282EVB.h index 7bb9f60f7..826778c35 100644 --- a/include/configs/M5282EVB.h +++ b/include/configs/M5282EVB.h @@ -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 diff --git a/include/configs/M5329EVB.h b/include/configs/M5329EVB.h index 1a15c77bd..42692d69f 100644 --- a/include/configs/M5329EVB.h +++ b/include/configs/M5329EVB.h @@ -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 diff --git a/include/configs/M5373EVB.h b/include/configs/M5373EVB.h index da4156c74..3b9da17e4 100644 --- a/include/configs/M5373EVB.h +++ b/include/configs/M5373EVB.h @@ -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 diff --git a/include/configs/M54455EVB.h b/include/configs/M54455EVB.h index a3c71e37d..3a022afaf 100644 --- a/include/configs/M54455EVB.h +++ b/include/configs/M54455EVB.h @@ -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 diff --git a/include/configs/M5475EVB.h b/include/configs/M5475EVB.h index a4e6c5d12..6bb461913 100644 --- a/include/configs/M5475EVB.h +++ b/include/configs/M5475EVB.h @@ -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 diff --git a/include/configs/M5485EVB.h b/include/configs/M5485EVB.h index 9121023f8..cba51c87c 100644 --- a/include/configs/M5485EVB.h +++ b/include/configs/M5485EVB.h @@ -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 diff --git a/include/configs/NETPHONE.h b/include/configs/NETPHONE.h index bb3d19d14..e3c6fd333 100644 --- a/include/configs/NETPHONE.h +++ b/include/configs/NETPHONE.h @@ -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 diff --git a/include/configs/NETTA.h b/include/configs/NETTA.h index 945f47f8f..20404a394 100644 --- a/include/configs/NETTA.h +++ b/include/configs/NETTA.h @@ -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) diff --git a/include/configs/NETTA2.h b/include/configs/NETTA2.h index fb8085d56..cf66e0470 100644 --- a/include/configs/NETTA2.h +++ b/include/configs/NETTA2.h @@ -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 diff --git a/include/configs/TK885D.h b/include/configs/TK885D.h index 50f1c6362..7310abfa6 100644 --- a/include/configs/TK885D.h +++ b/include/configs/TK885D.h @@ -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" diff --git a/include/configs/TOP860.h b/include/configs/TOP860.h index 66f7a1150..8237ba1af 100644 --- a/include/configs/TOP860.h +++ b/include/configs/TOP860.h @@ -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  /*----------------------------------------------------------------------- diff --git a/include/configs/TQM885D.h b/include/configs/TQM885D.h index a254bcd84..f075442f3 100644 --- a/include/configs/TQM885D.h +++ b/include/configs/TQM885D.h @@ -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 diff --git a/include/configs/cobra5272.h b/include/configs/cobra5272.h index 104d94ec1..c7e3899e6 100644 --- a/include/configs/cobra5272.h +++ b/include/configs/cobra5272.h @@ -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 diff --git a/include/configs/idmr.h b/include/configs/idmr.h index a15f69aa1..2ed51f778 100644 --- a/include/configs/idmr.h +++ b/include/configs/idmr.h @@ -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 diff --git a/include/configs/spc1920.h b/include/configs/spc1920.h index 6f2425fc7..f46c464cb 100644 --- a/include/configs/spc1920.h +++ b/include/configs/spc1920.h @@ -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 diff --git a/include/configs/stxxtc.h b/include/configs/stxxtc.h index f12765d66..a3ab79897 100644 --- a/include/configs/stxxtc.h +++ b/include/configs/stxxtc.h @@ -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 diff --git a/include/configs/uc100.h b/include/configs/uc100.h index c1c2e0329..3c2de40df 100644 --- a/include/configs/uc100.h +++ b/include/configs/uc100.h @@ -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 */ |