summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2024-01-30 15:16:53 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-02-01 11:39:19 +0000
commitf9fb10861064485dd39954810347b0662dbd1f87 (patch)
tree03fb83585a771c237fd768f585c17e788f237d77 /src/soc/amd
parentdde265f5a22c7b75a2d502a66ae706e6b1e04561 (diff)
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 <felix-coreboot@felixheld.de> Change-Id: Ic63e0904ad04dbecfac1be4d59abbb8d4f9f11d0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80271 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/phoenix/root_complex.c3
1 files changed, 2 insertions, 1 deletions
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)