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
..
2005-09-23 11:05:55 +02:00
2004-06-06 21:35:06 +00:00
2005-04-06 13:52:31 +00:00
2005-10-28 22:30:33 +02:00
2005-09-23 11:05:55 +02:00
2005-04-04 12:44:11 +00:00
2005-10-28 22:30:33 +02:00
2005-04-04 12:44:11 +00:00
2006-04-21 18:30:47 +02:00
2005-09-23 11:05:55 +02:00
2005-04-04 12:44:11 +00:00
2003-06-27 21:31:46 +00:00
2005-04-02 22:37:54 +00:00
2005-09-23 11:05:55 +02:00
2006-03-06 13:03:37 +01:00
2005-09-23 11:05:55 +02:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2005-04-02 22:37:54 +00:00
2005-09-23 11:05:55 +02:00
2006-04-11 14:53:29 +02:00
2006-04-12 12:26:32 +02:00
2005-04-04 12:44:11 +00:00
2005-09-23 11:05:55 +02:00
2005-09-23 11:05:55 +02:00
2005-08-06 01:42:58 +02:00
2005-09-23 11:05:55 +02:00
2003-06-27 21:31:46 +00:00
2005-04-04 12:44:11 +00:00
2006-03-12 02:55:22 +01:00
2002-08-19 11:57:05 +00:00
2005-04-02 22:37:54 +00:00
2005-04-04 12:44:11 +00:00
2002-08-19 11:57:05 +00:00
2006-03-12 16:51:59 +01:00
2004-07-01 16:30:44 +00:00
2005-10-04 23:10:28 +02:00
2005-10-04 23:10:28 +02:00
2006-03-12 16:51:59 +01:00
2003-07-17 23:16:40 +00:00
2005-04-04 12:44:11 +00:00
2005-09-23 11:05:55 +02:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2005-07-04 00:03:16 +00:00
2004-02-12 00:47:09 +00:00
2004-02-12 00:47:09 +00:00
2002-08-19 11:57:05 +00:00
2003-06-27 21:31:46 +00:00
2005-09-23 11:05:55 +02:00
2006-03-12 16:51:59 +01:00
2005-09-23 11:05:55 +02:00
2005-09-23 11:05:55 +02:00
2003-06-27 21:31:46 +00:00
2006-04-16 10:51:58 +02:00
2005-10-28 22:30:33 +02:00
2003-06-27 21:31:46 +00:00
2005-04-04 12:44:11 +00:00
2002-08-20 16:13:03 +00:00
2005-09-23 11:05:55 +02:00
2005-09-23 11:05:55 +02:00
2004-01-03 00:43:19 +00:00
2005-09-23 11:05:55 +02:00
2006-03-12 16:51:59 +01:00
2005-03-30 23:28:18 +00:00
2005-04-04 12:44:11 +00:00
2005-10-28 22:30:33 +02:00
2005-08-08 00:47:14 +02:00
2006-03-12 16:51:59 +01:00
2003-12-07 22:27:15 +00:00
2003-12-07 22:27:15 +00:00
2006-03-12 16:51:59 +01:00
2006-03-17 11:42:53 +01:00
2006-03-12 01:48:55 +01:00
2006-03-12 16:51:59 +01:00
2006-03-12 16:51:59 +01:00
2006-03-12 16:51:59 +01:00
2005-07-25 14:05:07 -05:00
2005-07-25 14:05:07 -05:00
2005-07-25 14:05:07 -05:00
2003-06-27 21:31:46 +00:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2005-05-16 15:23:22 +00:00
2006-03-12 02:55:22 +01:00
2005-07-25 14:05:07 -05:00
2005-04-04 12:44:11 +00:00
2005-04-04 12:44:11 +00:00
2004-12-16 21:44:03 +00:00
2006-03-12 16:51:59 +01:00
2006-03-12 16:51:59 +01:00
2005-11-15 10:35:59 +01:00
2005-09-23 11:05:55 +02:00
2005-09-23 11:05:55 +02:00
2005-04-04 12:44:11 +00:00
2005-08-04 19:45:01 +02:00
2005-04-04 12:44:11 +00:00
2005-09-23 11:05:55 +02:00
2005-10-28 22:30:33 +02:00