]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Add support for reading and writing mac addresses to or from ID EEPROM.
authorHaiying Wang <haiying.wang@freescale.com>
Wed, 12 Jul 2006 14:48:05 +0000 (10:48 -0400)
committerJon Loeliger <jdl@freescale.com>
Thu, 13 Jul 2006 15:57:37 +0000 (10:57 -0500)
commitbea3f28d285942bf3f7ab339ce85178ded544225
treeeb3ef76fa25a4dcd89d09dbbaa7f7772fa4e662f
parentfcb28e763415e0e4e66b0f45842d1557ae198e5e
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>
board/mpc8641hpcn/Makefile
board/mpc8641hpcn/sys_eeprom.c [new file with mode: 0644]
common/Makefile
common/cmd_mac.c [new file with mode: 0644]
include/common.h
include/configs/MPC8641HPCN.h
lib_ppc/board.c