soc/intel/xeon_sp/cpx: Allow motherboards to set FSP-M parameters

We need to allow motherboards to configure certain parameters that
are specific to it. Hence, invoke this function. Also, provide a
weak motherboard implementation that does nothing.

Change-Id: Ifa2824811273236a66e742404856fbe17d4cf496
Signed-off-by: Andrey Petrov <anpetrov@fb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40552
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Andrey Petrov 2020-04-20 17:16:53 -07:00 committed by Andrey Petrov
parent ddb3359754
commit 6d9dc243c7
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include <arch/romstage.h> #include <arch/romstage.h>
#include <fsp/api.h> #include <fsp/api.h>
#include <soc/romstage.h>
#include "chip.h" #include "chip.h"
void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
@ -10,4 +11,6 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
FSP_M_CONFIG *m_cfg = &mupd->FspmConfig; FSP_M_CONFIG *m_cfg = &mupd->FspmConfig;
(void)m_cfg; (void)m_cfg;
mainboard_memory_init_params(mupd);
} }

View File

@ -55,3 +55,8 @@ asmlinkage void car_stage_entry(void)
run_postcar_phase(&pcf); run_postcar_phase(&pcf);
} }
__weak void mainboard_memory_init_params(FSPM_UPD *mupd)
{
printk(BIOS_SPEW, "WARNING: using default FSP-M parameters!\n");
}