From 41c7e31b0afc7cf509536d936ab04440bfed8176 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Wed, 11 Jan 2023 15:11:08 -0500 Subject: soc/amd/mendocino: Use common fsp-s preloader Use the common preloader for fsp-s Signed-off-by: Fred Reitberger Change-Id: I74ef10347c37c8371156f89da9f234d170ab1aa6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71846 Reviewed-by: Jason Glenesk Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/amd/mendocino/Kconfig | 1 + src/soc/amd/mendocino/Makefile.inc | 1 - src/soc/amd/mendocino/preload.c | 13 ------------- 3 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/soc/amd/mendocino/preload.c (limited to 'src') diff --git a/src/soc/amd/mendocino/Kconfig b/src/soc/amd/mendocino/Kconfig index f791038f54..23c280fe76 100644 --- a/src/soc/amd/mendocino/Kconfig +++ b/src/soc/amd/mendocino/Kconfig @@ -72,6 +72,7 @@ config SOC_AMD_REMBRANDT_BASE select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB select SOC_AMD_COMMON_FSP_DMI_TABLES select SOC_AMD_COMMON_FSP_PCI + select SOC_AMD_COMMON_FSP_PRELOAD_FSPS select SSE2 select UDK_2017_BINDING select USE_DDR5 diff --git a/src/soc/amd/mendocino/Makefile.inc b/src/soc/amd/mendocino/Makefile.inc index 8ad6000ad8..70eb6bc2cb 100644 --- a/src/soc/amd/mendocino/Makefile.inc +++ b/src/soc/amd/mendocino/Makefile.inc @@ -39,7 +39,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/mendocino/preload.c b/src/soc/amd/mendocino/preload.c deleted file mode 100644 index ae3723741a..0000000000 --- a/src/soc/amd/mendocino/preload.c +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -/* TODO: Check if this is still correct */ - -#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