coreboot-kgpe-d16/src
Angel Pons 90ae08922d nb/intel/haswell: Consolidate memory-down SPD handling
Mainboards do not need to know about `pei_data` to tell northbridge code
where to find the SPD data. Adjust `mb_get_spd_map` to take a pointer to
a struct instead of an array, and update all the mainboards accordingly.

Currently, the only board with memory-down in the tree is google/slippy.
Mainboard code now obtains the SPD index in `mb_get_spd_map` and adjusts
the channel population accordingly. Then, northbridge code reads the SPD
file and uses the index that was read in `mb_get_spd_map`, and copies it
to channel 0 slot 0 unconditionally. MRC only uses the first position of
the `spd_data` array, and ignores the other positions. In coreboot code,
`setup_sdram_meminfo` uses the data of each SPD index, so `copy_spd` has
to account for this.

Tested on Asrock B85M Pro4, still boots and still resumes from S3.

Change-Id: Ibaed5c6de9853db6abd08f53bbfda8800d207c3e
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51448
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-03-19 11:20:06 +00:00
..
acpi acpi: Move PCI functions to separate file 2021-03-01 08:26:23 +00:00
arch cbfs: Remove prog_locate() for payloads (SELF and FIT) 2021-03-17 00:13:53 +00:00
commonlib cbfs: Move stage header into a CBFS attribute 2021-03-17 08:10:00 +00:00
console
cpu cpu/x86/mp_init.c: Calculate perm_smbase from ramstage data 2021-03-18 08:14:32 +00:00
device pciexp_device: Rewrite LTR configuration 2021-03-15 06:04:38 +00:00
drivers cbfs: Replace more instances of cbfs_boot_locate() with newer APIs 2021-03-17 08:10:20 +00:00
ec ec/system76/ec: Add OLED screen toggle 2021-02-27 09:38:19 +00:00
include cpu/x86/smm: Move apic_id_to_cpu map to smm_stub params 2021-03-18 08:13:33 +00:00
lib spd_bin: Replace get_spd_cbfs_rdev() with spd_cbfs_map() 2021-03-17 08:10:35 +00:00
mainboard nb/intel/haswell: Consolidate memory-down SPD handling 2021-03-19 11:20:06 +00:00
northbridge nb/intel/haswell: Consolidate memory-down SPD handling 2021-03-19 11:20:06 +00:00
security cbfs: Replace more instances of cbfs_boot_locate() with newer APIs 2021-03-17 08:10:20 +00:00
soc soc/amd/common: Make fch_spi_config_modes static 2021-03-18 17:19:06 +00:00
southbridge sb/intel/lynxpoint: Move S3 check out of `early_pch_init` 2021-03-15 06:00:31 +00:00
superio
vendorcode vc/google/chromeos/acpi: Add type to OIPG declaration 2021-03-18 18:10:35 +00:00
Kconfig southbridge: Ensure common Kconfig gets included last 2021-02-18 10:11:39 +00:00