Haiying Wang bea3f28d28 Add support for reading and writing mac addresses to or from ID EEPROM.
Added code for reading and writing Mac addresses to/from ID EEPROM(0x57).
With attached patch, we can use command "mac/mac read/mac save/"
to read and write EEPROM under u-boot prompt.

U-boot will calculate the checksum of EEPROM while bootup,
if it is right, then u-boot will check whether the mac address
of eTSEC0/1/2/3 is availalbe (non-zero).

If there is mac address availabe in EEPROM, u-boot will use it,
otherewise, u-boot will use the mac address defined in
MPC8641HPCN.h. This matches the requirement to set unique mac address
for each TSEC port.

Signed-off-by: Haiying Wang <haiying.wang@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
2006-07-13 10:57:37 -05:00
..
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2006-05-26 10:01:16 -05:00
2005-09-23 11:05:55 +02:00
2005-09-22 09:04:17 +02:00
2005-10-17 00:19:16 +02:00
2003-10-06 21:55:32 +00:00
2006-04-11 14:39:21 +02:00
2005-10-13 16:45:02 +02:00
2005-10-13 16:45:02 +02:00
2006-04-16 10:51:58 +02:00
2005-10-13 16:45:02 +02:00
2005-10-28 22:30:33 +02:00
2005-03-20 22:33:46 +00:00
2005-10-13 16:45:02 +02:00
2004-07-11 20:04:51 +00:00
2005-10-13 16:45:02 +02:00
2005-10-13 16:45:02 +02:00
2005-10-13 16:45:02 +02:00
2006-03-12 16:51:59 +01:00
2006-04-16 10:51:58 +02:00
2003-06-27 21:31:46 +00:00
2004-07-11 20:04:51 +00:00
2005-10-15 18:23:43 +02:00
2005-10-13 16:45:02 +02:00
2005-10-13 16:45:02 +02:00
2002-08-17 09:36:01 +00:00
2005-10-28 22:30:33 +02:00
2002-08-17 09:36:01 +00:00
2003-06-27 21:31:46 +00:00
2005-09-25 18:49:35 +02:00
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2005-10-13 16:45:02 +02:00
2006-04-16 10:51:58 +02:00