Populate a memory_info struct with PEI and SPD data, in order to inject the CBMEM_INFO table necessary to populate a type17 SMBIOS table.
On Broadwell, this is done by the MRC binary, but the older Haswell MRC binary doesn't populate the pei_data struct with all the info needed, so we have to pull it from the SPD.
Some values are hardcoded based on platform specifications.
5aaa8ce haswell: add CBMEM_MEMINFO table when initing RAM
src/cpu/intel/haswell/romstage.c | 2 ++
src/include/device/dram/ddr3.h | 13 ++++++++
src/northbridge/intel/haswell/raminit.c | 55 +++++++++++++++++++++++++++++++++
src/northbridge/intel/haswell/raminit.h | 1 +
4 files changed, 71 insertions(+)