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>
diff --git a/src/soc/amd/phoenix/root_complex.c b/src/soc/amd/phoenix/root_complex.c
index 1394b2c..4a657f8 100644
--- a/src/soc/amd/phoenix/root_complex.c
+++ b/src/soc/amd/phoenix/root_complex.c
@@ -150,7 +150,8 @@
 	/* 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)