From 7eb014eba23b2141f262b7c7ba0172f16c759baa Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Tue, 5 Mar 2024 10:00:21 -0800 Subject: drivers/intel/fsp2_0: Add "silicon" to the multiphase callback name The `platform_fsp_multi_phase_init_cb' callback is specific to FSP-S, let's rename it 'platform_fsp_silicon_multi_phase_init_cb' to avoid any confusion. Change-Id: I86b69e2069f08023e6f48464f6df4593710aa9ee Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/81094 Tested-by: build bot (Jenkins) Reviewed-by: Dinesh Gehlot Reviewed-by: Subrata Banik --- src/drivers/intel/fsp2_0/include/fsp/api.h | 2 +- src/drivers/intel/fsp2_0/silicon_init.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/drivers/intel') diff --git a/src/drivers/intel/fsp2_0/include/fsp/api.h b/src/drivers/intel/fsp2_0/include/fsp/api.h index c035452e05..40a64e68c8 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/api.h +++ b/src/drivers/intel/fsp2_0/include/fsp/api.h @@ -48,7 +48,7 @@ void fsps_load(void); void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version); void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd); /* Callbacks for SoC/Mainboard specific overrides */ -void platform_fsp_multi_phase_init_cb(uint32_t phase_index); +void platform_fsp_silicon_multi_phase_init_cb(uint32_t phase_index); /* Check if MultiPhase Si Init is enabled */ bool fsp_is_multi_phase_init_enabled(void); /* diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c index e543628987..4be4b61c84 100644 --- a/src/drivers/intel/fsp2_0/silicon_init.c +++ b/src/drivers/intel/fsp2_0/silicon_init.c @@ -27,7 +27,7 @@ struct fsp_multi_phase_get_number_of_phases_params { }; /* Callbacks for SoC/Mainboard specific overrides */ -void __weak platform_fsp_multi_phase_init_cb(uint32_t phase_index) +void __weak platform_fsp_silicon_multi_phase_init_cb(uint32_t phase_index) { /* Leave for the SoC/Mainboard to implement if necessary. */ } @@ -190,7 +190,7 @@ static void do_silicon_init(struct fsp_header *hdr) * Give SoC/mainboard a chance to perform any operation before * Multi Phase Execution */ - platform_fsp_multi_phase_init_cb(i); + platform_fsp_silicon_multi_phase_init_cb(i); multi_phase_params.multi_phase_action = EXECUTE_PHASE; multi_phase_params.phase_index = i; -- cgit v1.2.3