]> git.sur5r.net Git - u-boot/commit
fsl: verify writes to the MAC address EEPROM
authorTimur Tabi <timur@freescale.com>
Mon, 2 Aug 2010 18:03:23 +0000 (13:03 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 7 Oct 2010 14:49:47 +0000 (09:49 -0500)
commit3addcb9343dbf1d9c8465210a887180edc326270
tree466328c6511423fbe4dcbe54b75502fe3363f11c
parenta2d12f88129a0a1a7c18630b7a48ade22a48416e
fsl: verify writes to the MAC address EEPROM

Update the code which writes to the on-board EEPROM so that it can detect if
the write failed because the EEPROM is write-protected.  Most of the 8xxx-class
Freescale reference boards use an AT24C02 EEPROM to store MAC addresses and
similar information.  With this patch, if the EEPROM is protected, the
"mac save" command will display an error message indicating that the write
has not succeeded.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/common/sys_eeprom.c