[U-Boot] [PATCH] fsl: verify writes to the MAC address EEPROM

Kumar Gala
2010-09-30T13:35:50Z

On Aug 2, 2010, at 1:03 PM, Timur Tabi wrote:

> 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>
> ---
> board/freescale/common/sys_eeprom.c | 18 +++++++++++++++++-
> 1 files changed, 17 insertions(+), 1 deletions(-)

applied to 85xx

- k