FSL: Fix get_cpu_board_revision() return value.
PATCH 1/1 FSL: Fix get_cpu_board_revision() return value.
get_cpu_board_revision() returned board revision based on information stored in global static struct eeprom. It should instead use one from local struct board_eeprom, to which the data is actually read from EEPROM. The bug led to system hang after printing L1 cache information on U-Boot startup. The problem was observed on MPC8555CDS system and possibly affects other Freescale MPC85xx boards using CFG_I2C_EEPROM_CCID.
The change has been successfully tested on MPC8555CDS system.
---
This patch should be applied before 2008.10 release to render MPC8555CDS and other Freescale MPC85xx boards (which use CFG_I2C_EEPROM_CCID) operational.
board/freescale/common/sys_eeprom.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
board/freescale/common/sys_eeprom.c +1 -1
@@ -463,6 +463,6 @@ unsigned int get_cpu_board_revision(void)if ((be.major ==0xff ) && (be.minor ==0xff ))return MPC85XX_CPU_BOARD_REV (0 ,0 ); - return MPC85XX_CPU_BOARD_REV(e.major, e.minor); + return MPC85XX_CPU_BOARD_REV(be.major, be.minor); }#endif
Signature · 1 line
1.5.2.2
Andy Fleming
AppliedPATCH 1/1 FSL: Fix get_cpu_board_revision() return value.
Quoted 10 lines · Rafal Czubak
get_cpu_board_revision()returned board revision based on information stored in global static struct eeprom. It should instead use one from local structboard_eeprom, to which the data is actually read from EEPROM. The bug led to system hang after printing L1 cache information on U-Boot startup. The problem was observed on MPC8555CDS system and possibly affects other Freescale MPC85xx boards usingCFG_I2C_EEPROM_CCID.The change has been successfully tested on MPC8555CDS system.
Signed-off-by Rafal Czubak <[email protected]>
Applied, thanks