[U-Boot] [PATCH v2 4/5] arm: ls102xa: Add SystemID EEPROM support for LS1021ATWR board

York Sun
2014-11-25T17:56:01Z

> SystemID information could be read through I2C1 from EEPROM
> on LS1021ATWR board.
>
> As LS1 is a little-endian processor, getting the version ID by
> be32_to_cpu() is wrong. Fix it by using e.version directly.
> This change will be compatible for both ARM and PowerPC.
>
> As there is an errata that I2C1 could not work in SD boot,
> reading EEPROM through I2C1 is disabled too in SD boot.
>
> Signed-off-by: Alison Wang <alison.wang@freescale.com>
> ---
> Change log:
> v2: Add the compatibility in SD boot.
>
> board/freescale/common/sys_eeprom.c | 4 ++--
> include/configs/ls1021atwr.h | 11 +++++++++++
> 2 files changed, 13 insertions(+), 2 deletions(-)