diff options
Diffstat (limited to 'src/soc/amd')
-rw-r--r-- | src/soc/amd/common/fsp/Kconfig | 3 | ||||
-rw-r--r-- | src/soc/amd/common/fsp/Makefile.inc | 1 | ||||
-rw-r--r-- | src/soc/amd/common/fsp/preload_fsps.c | 11 |
3 files changed, 15 insertions, 0 deletions
diff --git a/src/soc/amd/common/fsp/Kconfig b/src/soc/amd/common/fsp/Kconfig index 885e250fc6..9331011bc8 100644 --- a/src/soc/amd/common/fsp/Kconfig +++ b/src/soc/amd/common/fsp/Kconfig @@ -6,6 +6,9 @@ config SOC_AMD_COMMON_FSP_DMI_TABLES config SOC_AMD_COMMON_FSP_CCX_CPPC_HOB bool +config SOC_AMD_COMMON_FSP_PRELOAD_FSPS + bool + source "src/soc/amd/common/fsp/*/Kconfig" endif # PLATFORM_USES_FSP2_0 diff --git a/src/soc/amd/common/fsp/Makefile.inc b/src/soc/amd/common/fsp/Makefile.inc index 78e0e4fa3a..ab9a7ab507 100644 --- a/src/soc/amd/common/fsp/Makefile.inc +++ b/src/soc/amd/common/fsp/Makefile.inc @@ -6,6 +6,7 @@ ramstage-y += fsp_reset.c ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_CCX_CPPC_HOB) += fsp_ccx_cppc_hob.c ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_DMI_TABLES) += dmi.c +ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_PRELOAD_FSPS) += preload_fsps.c subdirs-y += ./* diff --git a/src/soc/amd/common/fsp/preload_fsps.c b/src/soc/amd/common/fsp/preload_fsps.c new file mode 100644 index 0000000000..d8b08912ad --- /dev/null +++ b/src/soc/amd/common/fsp/preload_fsps.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <bootstate.h> +#include <fsp/api.h> + +static void start_fsps_preload(void *unused) +{ + preload_fsps(); +} + +BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_ENTRY, start_fsps_preload, NULL); |