From 0007fa96a1a720fa1938259135d6a864452198f4 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 23 Jun 2021 15:27:43 +0530 Subject: soc/intel/alderlake: Update mainboard_memory_init_params() argument This patch updates mainboard_memory_init_params() function argument from FSPM_UPD to FSP_M_CONFIG. Ideally mainboard_memory_init_params() function don't need to override anything other than FSP_M_CONFIG UPDs hence passing config block alone rather passing entire FSP-M UPD structure. Change-Id: I238870478a1427918abf888d71ba9c9fa80d3427 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/55785 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/soc/intel/alderlake/include/soc/romstage.h | 2 +- src/soc/intel/alderlake/romstage/fsp_params.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/alderlake/include/soc/romstage.h b/src/soc/intel/alderlake/include/soc/romstage.h index 13a5b5f9ca..4d498be192 100644 --- a/src/soc/intel/alderlake/include/soc/romstage.h +++ b/src/soc/intel/alderlake/include/soc/romstage.h @@ -6,7 +6,7 @@ #include #include -void mainboard_memory_init_params(FSPM_UPD *mupd); +void mainboard_memory_init_params(FSP_M_CONFIG *m_cfg); void systemagent_early_init(void); /* Board type */ diff --git a/src/soc/intel/alderlake/romstage/fsp_params.c b/src/soc/intel/alderlake/romstage/fsp_params.c index c0f8e34f8a..f9b3d6022d 100644 --- a/src/soc/intel/alderlake/romstage/fsp_params.c +++ b/src/soc/intel/alderlake/romstage/fsp_params.c @@ -345,10 +345,10 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) config = config_of_soc(); soc_memory_init_params(m_cfg, config); - mainboard_memory_init_params(mupd); + mainboard_memory_init_params(m_cfg); } -__weak void mainboard_memory_init_params(FSPM_UPD *mupd) +__weak void mainboard_memory_init_params(FSP_M_CONFIG *m_cfg) { printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__); } -- cgit v1.2.3