nb/intel/sandybridge/raminit_mrc.c: Use DDR3_SPD_SODIMM macro

Change-Id: Ibbb6e6d44b1415b18aa59310f4d36d61b9a2a080
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61399
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Elyes HAOUAS 2022-01-26 07:51:28 +01:00 committed by Felix Held
parent 62b23c10e0
commit a233eb4b0a
1 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,7 @@
#include <device/pci_def.h> #include <device/pci_def.h>
#include <lib.h> #include <lib.h>
#include <mrc_cache.h> #include <mrc_cache.h>
#include <spd.h>
#include <smbios.h> #include <smbios.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
@ -429,7 +430,7 @@ void setup_sdram_meminfo(struct pei_data *pei_data)
dimm->mod_id = /* bytes 117/118 */ dimm->mod_id = /* bytes 117/118 */
(pei_data->spd_data[0][118] << 8) | (pei_data->spd_data[0][118] << 8) |
(pei_data->spd_data[0][117] & 0xFF); (pei_data->spd_data[0][117] & 0xFF);
dimm->mod_type = 3; /* SPD_SODIMM */ dimm->mod_type = DDR3_SPD_SODIMM;
dimm->bus_width = MEMORY_BUS_WIDTH_64; dimm->bus_width = MEMORY_BUS_WIDTH_64;
dimm_cnt++; dimm_cnt++;
} }
@ -453,7 +454,7 @@ void setup_sdram_meminfo(struct pei_data *pei_data)
dimm->mod_id = /* bytes 117/118 */ dimm->mod_id = /* bytes 117/118 */
(pei_data->spd_data[0][118] << 8) | (pei_data->spd_data[0][118] << 8) |
(pei_data->spd_data[0][117] & 0xFF); (pei_data->spd_data[0][117] & 0xFF);
dimm->mod_type = 3; /* SPD_SODIMM */ dimm->mod_type = DDR3_SPD_SODIMM;
dimm->bus_width = MEMORY_BUS_WIDTH_64; dimm->bus_width = MEMORY_BUS_WIDTH_64;
dimm_cnt++; dimm_cnt++;
} }