Skip to content
Snippets Groups Projects
Commit bea3f28d authored by Haiying Wang's avatar Haiying Wang Committed by Jon Loeliger
Browse files

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: default avatarHaiying Wang <haiying.wang@freescale.com>
Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
parent fcb28e76
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment