From 010c408044cefde3fa5b24a25c1ed9f23e3388f5 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Wed, 11 Jan 2023 15:11:48 -0500 Subject: soc/amd/phoenix: Use common fsp-s preloader Use the common preloader for fsp-s Signed-off-by: Fred Reitberger Change-Id: Iea7011d37667f3f04ce842038346741fba66b1dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/71847 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/soc/amd/phoenix/Kconfig | 1 + src/soc/amd/phoenix/Makefile.inc | 1 - src/soc/amd/phoenix/preload.c | 13 ------------- 3 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/soc/amd/phoenix/preload.c (limited to 'src') diff --git a/src/soc/amd/phoenix/Kconfig b/src/soc/amd/phoenix/Kconfig index f39a73d9c6..fc79ad8470 100644 --- a/src/soc/amd/phoenix/Kconfig +++ b/src/soc/amd/phoenix/Kconfig @@ -72,6 +72,7 @@ config SOC_AMD_PHOENIX select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB # TODO: Check if this is still correct select SOC_AMD_COMMON_FSP_DMI_TABLES # TODO: Check if this is still correct select SOC_AMD_COMMON_FSP_PCI # TODO: Check if this is still correct + select SOC_AMD_COMMON_FSP_PRELOAD_FSPS select SSE2 select UDK_2017_BINDING select USE_DDR5 diff --git a/src/soc/amd/phoenix/Makefile.inc b/src/soc/amd/phoenix/Makefile.inc index 71defcf220..25eed12130 100644 --- a/src/soc/amd/phoenix/Makefile.inc +++ b/src/soc/amd/phoenix/Makefile.inc @@ -40,7 +40,6 @@ ramstage-y += fsp_s_params.c ramstage-y += gpio.c ramstage-y += i2c.c ramstage-y += mca.c -ramstage-y += preload.c ramstage-y += reset.c ramstage-y += root_complex.c ramstage-y += uart.c diff --git a/src/soc/amd/phoenix/preload.c b/src/soc/amd/phoenix/preload.c deleted file mode 100644 index 47f3580714..0000000000 --- a/src/soc/amd/phoenix/preload.c +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -/* TODO: Move to common? */ - -#include -#include - -static void start_fsps_preload(void *unused) -{ - preload_fsps(); -} - -BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_ENTRY, start_fsps_preload, NULL); -- cgit v1.2.3