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>
This commit is contained in:
Felix Held
2024-01-30 15:16:53 +01:00
parent dde265f5a2
commit f9fb108610

View File

@@ -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)