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