From f9fb10861064485dd39954810347b0662dbd1f87 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 30 Jan 2024 15:16:53 +0100 Subject: soc/amd/phoenix/root_complex: make read_fsp_resources call conditional Only call read_fsp_resources if PLATFORM_USES_FSP2_0 is selected in Kconfig. Signed-off-by: Felix Held Change-Id: Ic63e0904ad04dbecfac1be4d59abbb8d4f9f11d0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80271 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/soc/amd/phoenix/root_complex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/amd/phoenix/root_complex.c b/src/soc/amd/phoenix/root_complex.c index 1394b2c96b..4a657f86fb 100644 --- a/src/soc/amd/phoenix/root_complex.c +++ b/src/soc/amd/phoenix/root_complex.c @@ -150,7 +150,8 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) /* Reserve fixed IOMMU MMIO region */ mmio_range(dev, (*idx)++, IOMMU_RESERVED_MMIO_BASE, IOMMU_RESERVED_MMIO_SIZE); - read_fsp_resources(dev, idx); + if (CONFIG(PLATFORM_USES_FSP2_0)) + read_fsp_resources(dev, idx); } static void root_complex_init(struct device *dev) -- cgit v1.2.3