nb/intel/x4x: Fix unpopulated value
Previously, 0x0 was the value being used for an unpopulated dimm on spd[62], however some DDR2 dimms have 0x0 as a valid value. Now use 0xff which is an unused value even on DDR2/DDR3. Change-Id: I55a91a6c3fe3733a7bb2abc45ca352c955c07c99 Signed-off-by: Damien Zammit <damien@zamaudio.com> Reviewed-on: https://review.coreboot.org/15058 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Martin Roth
parent
062ef1cca6
commit
68e1dcfdd9
@@ -41,14 +41,14 @@ static void sdram_read_spds(struct sysinfo *s)
|
||||
FOR_EACH_DIMM(i) {
|
||||
if (s->spd_map[i] == 0) {
|
||||
/* Non-existent SPD address */
|
||||
s->dimms[i].card_type = 0;
|
||||
s->dimms[i].card_type = RAW_CARD_UNPOPULATED;
|
||||
continue;
|
||||
}
|
||||
for (j = 0; j < 64; j++) {
|
||||
status = spd_read_byte(s->spd_map[i], j);
|
||||
if (status < 0) {
|
||||
/* No SPD here */
|
||||
s->dimms[i].card_type = 0;
|
||||
s->dimms[i].card_type = RAW_CARD_UNPOPULATED;
|
||||
break;
|
||||
}
|
||||
s->dimms[i].spd_data[j] = (u8) status;
|
||||
|
Reference in New Issue
Block a user