From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Tue, 25 Nov 2014 09:56:01 -0800 Subject: [U-Boot] [PATCH v2 4/5] arm: ls102xa: Add SystemID EEPROM support for LS1021ATWR board In-Reply-To: <1413530796-12881-4-git-send-email-b18965@freescale.com> References: <1413530796-12881-1-git-send-email-b18965@freescale.com> <1413530796-12881-4-git-send-email-b18965@freescale.com> Message-ID: <5474C2B1.1070602@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/17/2014 12:26 AM, Alison Wang wrote: > 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 > --- > 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(-) > Applied to u-boot-fsl-qoriq master. Awaiting upstream. Thanks. York