David Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/75990?usp=email )
Change subject: mb/google/brya: Add support for variant_memcfg_init() ......................................................................
mb/google/brya: Add support for variant_memcfg_init()
This change adds support for variant_memcfg_init() that allows variant to update memory config.
BUG=b:281643325 BRANCH=firmware-brya-14505.B TEST=build pass
Change-Id: I4926139e36602f87c8317ab4b476636e02f87771 Signed-off-by: David Wu david_wu@quanta.corp-partner.google.com --- M src/mainboard/google/brya/romstage.c M src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h 2 files changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/75990/1
diff --git a/src/mainboard/google/brya/romstage.c b/src/mainboard/google/brya/romstage.c index 4e88eca..8c46a39 100644 --- a/src/mainboard/google/brya/romstage.c +++ b/src/mainboard/google/brya/romstage.c @@ -20,7 +20,12 @@ size_t pads_num;
memcfg_init(memupd, mem_config, &spd_info, half_populated); + variant_memcfg_init(memupd);
pads = variant_romstage_gpio_table(&pads_num); gpio_configure_pads(pads, pads_num); } + +void __weak variant_memcfg_init(FSPM_UPD *memupd) +{ +} diff --git a/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h index ad8eb05..b5b7826 100644 --- a/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h @@ -20,6 +20,7 @@
const struct mb_cfg *variant_memory_params(void); void variant_get_spd_info(struct mem_spd *spd_info); +void variant_memcfg_init(FSPM_UPD *memupd); int variant_memory_sku(void); bool variant_is_half_populated(void); void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config);