haswell: add CBMEM_MEMINFO table when initing RAM

Hardware / Coreboot - Matt DeVillier [gmail.com] - 16 June 2017 10:08 EDT

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.

Change-Id: Iea837d23f2c9c1c943e0db28cf81b265f054e9d1

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(+)

Upstream: review.coreboot.org


  • Share