diff options
author | Andrey Petrov <anpetrov@fb.com> | 2020-04-20 17:16:53 -0700 |
---|---|---|
committer | Andrey Petrov <andrey.petrov@gmail.com> | 2020-04-24 19:42:45 +0000 |
commit | 6d9dc243c76dfeef7b5b15e421f4a36e0247faea (patch) | |
tree | eafd0afbe38daf45e8758e453e3b5530fc4ca833 | |
parent | ddb3359754317a536d75c8a234cb7722be515855 (diff) | |
download | coreboot-6d9dc243c76dfeef7b5b15e421f4a36e0247faea.tar.xz |
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>
-rw-r--r-- | src/soc/intel/xeon_sp/cpx/romstage.c | 3 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/romstage.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/romstage.c b/src/soc/intel/xeon_sp/cpx/romstage.c index 32ada9f4cb..e909b87ca8 100644 --- a/src/soc/intel/xeon_sp/cpx/romstage.c +++ b/src/soc/intel/xeon_sp/cpx/romstage.c @@ -3,6 +3,7 @@ #include <arch/romstage.h> #include <fsp/api.h> +#include <soc/romstage.h> #include "chip.h" 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; (void)m_cfg; + + mainboard_memory_init_params(mupd); } diff --git a/src/soc/intel/xeon_sp/romstage.c b/src/soc/intel/xeon_sp/romstage.c index 9d3665c9fe..7881b0adb9 100644 --- a/src/soc/intel/xeon_sp/romstage.c +++ b/src/soc/intel/xeon_sp/romstage.c @@ -55,3 +55,8 @@ asmlinkage void car_stage_entry(void) run_postcar_phase(&pcf); } + +__weak void mainboard_memory_init_params(FSPM_UPD *mupd) +{ + printk(BIOS_SPEW, "WARNING: using default FSP-M parameters!\n"); +} |