[U-Boot-Users] [Patch] Second Eth enabled for MPC885ADS and MPC8272ADS

Wolfgang, I agree that hardcoded MAC is not a good thing since it is not really required. I noticed that 8272ADS also has the only FCC - the relevant change for it is also included.
Attached a patch which enables the second Ethernet address in MPC885ADS and MPC8272ADS configurations.
Patch made against current CVS.
CHANGELOG: * Second Ethernet address enabled in the configurations for MPC885ADS and MPC8272ADS.
-- Sincerely, Vitaly
? include/configs/MPC8260ADS.my.h Index: include/configs/MPC8260ADS.h =================================================================== RCS file: /cvsroot/u-boot/u-boot/include/configs/MPC8260ADS.h,v retrieving revision 1.20 diff -p -u -r1.20 MPC8260ADS.h --- include/configs/MPC8260ADS.h 31 Dec 2004 09:32:53 -0000 1.20 +++ include/configs/MPC8260ADS.h 30 Mar 2005 15:36:06 -0000 @@ -390,4 +390,8 @@
#define CFG_RESET_ADDRESS 0x04400000
+#if CONFIG_ADSTYPE == CFG_8272ADS +#define CONFIG_HAS_ETH1 +#endif + #endif /* __CONFIG_H */ Index: include/configs/MPC885ADS.h =================================================================== RCS file: /cvsroot/u-boot/u-boot/include/configs/MPC885ADS.h,v retrieving revision 1.1 diff -p -u -r1.1 MPC885ADS.h --- include/configs/MPC885ADS.h 6 Jun 2004 21:35:08 -0000 1.1 +++ include/configs/MPC885ADS.h 30 Mar 2005 15:36:07 -0000 @@ -42,4 +42,6 @@ #define CFG_OR5_PRELIM 0xFFFF8110 /* 64Kbyte address space */ #define CFG_BR5_PRELIM (CFG_PHYDEV_ADDR | BR_PS_8 | BR_V)
+#define CONFIG_HAS_ETH1 + #endif /* __CONFIG_H */

In message 424AD0B3.3050106@ru.mvista.com you wrote:
CHANGELOG:
- Second Ethernet address enabled in the configurations for MPC885ADS
and MPC8272ADS.
Added,t hanks.
Best regards,
Wolfgang Denk
participants (2)
-
Vitaly Bordug
-
Wolfgang Denk