[U-Boot-Users] MPC8540ADS CONFIG_HAS_FEC patch

Jon Loeliger jdl at freescale.com
Thu Feb 10 19:43:13 CET 2005


Wolfgang,

Here is a simple patch that introduces the CONFIG_HAS_FEC
option to the MPC8540 ADS board.

Thanks,
jdl


* Patch by Jon Loeliger, 2005-Feb-10
  Add config option CONFIG_HAS_FEC calling out 8540 FEC features.


diff -r --exclude=CVS -u u-boot/doc/README.mpc85xxads u-boot-pq3/doc/README.mpc85xxads
--- u-boot/doc/README.mpc85xxads	2005-02-09 14:49:14.000000000 -0600
+++ u-boot-pq3/doc/README.mpc85xxads	2005-02-10 12:20:35.998989000 -0600
@@ -143,6 +143,7 @@
     CONFIG_DDR_ECC	    only for ECC DDR module
     CONFIG_DDR_DLL	    DLL fix on some ADS boards needed for more
 			    stability.
+    CONFIG_HAS_FEC	    If an FEC is on chip, set to 1, else 0.
 
 Other than the above definitions, the rest in the config files are
 straightforward.
diff -r --exclude=CVS -u u-boot/include/configs/MPC8540ADS.h u-boot-pq3/include/configs/MPC8540ADS.h
--- u-boot/include/configs/MPC8540ADS.h	2005-01-09 11:12:34.000000000 -0600
+++ u-boot-pq3/include/configs/MPC8540ADS.h	2005-02-10 12:19:35.502593000 -0600
@@ -41,6 +41,10 @@
 #define CONFIG_MPC8540		1	/* MPC8540 specific */
 #define CONFIG_MPC8540ADS	1	/* MPC8540ADS board specific */
 
+#ifndef CONFIG_HAS_FEC
+#define CONFIG_HAS_FEC		1	/* 8540 has FEC */
+#endif
+
 #define CONFIG_PCI
 #define CONFIG_TSEC_ENET 		/* tsec ethernet support */
 #define CONFIG_ENV_OVERWRITE
@@ -344,9 +348,12 @@
 #define TSEC1_PHYIDX		0
 #define TSEC2_PHYIDX		0
 
+
+#if CONFIG_HAS_FEC
 #define CONFIG_MPC85XX_FEC	1
-#define FEC_PHY_ADDR		3
+#define FEC_PHY_ADDR		3
 #define FEC_PHYIDX		0
+#endif
 
 #define CONFIG_ETHPRIME		"MOTO ENET0"
 






More information about the U-Boot mailing list