u-boot-brain/lib_ppc
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
..
bat_rw.c Initial revision 2002-08-17 09:36:01 +00:00
board.c Add support for reading and writing mac addresses to or from ID EEPROM. 2006-07-13 10:57:37 -05:00
cache.c * Patch by Martin Winistoerfer, 23 Mar 2003 2003-03-31 17:27:09 +00:00
extable.c * Code cleanup: 2003-06-27 21:31:46 +00:00
interrupts.c * Cleanup lowboot code for MPC5200 2004-01-02 14:00:00 +00:00
kgdb.c * Code cleanup: 2003-06-27 21:31:46 +00:00
Makefile * Patch by Gleb Natapov, 19 Sep 2003: 2003-12-06 19:49:23 +00:00
ppcstring.S Initial revision 2000-07-19 14:09:16 +00:00
ticks.S Initial revision 2001-11-26 22:06:16 +00:00
time.c * Code cleanup: 2003-06-27 21:31:46 +00:00