mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
powerpc/mpc8xxx: Fix DDR SPD failed message
Since empty DIMM slot is allowed on other than the first slot, remove the error message if SPD is not found in this case. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
89b7809568
commit
82968a7ab5
@ -77,7 +77,19 @@ static void __get_spd(generic_spd_eeprom_t *spd, u8 i2c_address)
|
|||||||
sizeof(generic_spd_eeprom_t));
|
sizeof(generic_spd_eeprom_t));
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printf("DDR: failed to read SPD from address %u\n", i2c_address);
|
if (i2c_address ==
|
||||||
|
#ifdef SPD_EEPROM_ADDRESS
|
||||||
|
SPD_EEPROM_ADDRESS
|
||||||
|
#elif defined(SPD_EEPROM_ADDRESS1)
|
||||||
|
SPD_EEPROM_ADDRESS1
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
|
printf("DDR: failed to read SPD from address %u\n",
|
||||||
|
i2c_address);
|
||||||
|
} else {
|
||||||
|
debug("DDR: failed to read SPD from address %u\n",
|
||||||
|
i2c_address);
|
||||||
|
}
|
||||||
memset(spd, 0, sizeof(generic_spd_eeprom_t));
|
memset(spd, 0, sizeof(generic_spd_eeprom_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user