soc/intel/xeon_sp/chip_common.c: check SOC_INTEL_PCIE_64BIT_ALLOC

Some FSPs (such as SPR-SP FSP) support SOC_INTEL_PCIE_64BIT_ALLOC.
In such case, is_pci64bit_alloc() return 1.

Change-Id: Ic33967255baf4675cd72e0db32ef3fb7f5658296
Signed-off-by: Jonathan Zhang <jonzhang@meta.com>
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72441
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Jonathan Zhang 2023-01-25 11:16:58 -08:00 committed by Felix Held
parent 9874b1a7de
commit a63ea89c04
1 changed files with 8 additions and 1 deletions

View File

@ -403,9 +403,16 @@ static void assign_stack_resources(struct iiostack_resource *stack_list,
static uint8_t is_pci64bit_alloc(void) static uint8_t is_pci64bit_alloc(void)
{ {
/*
* For SPR-SP FSP which supports SOC_INTEL_PCIE_64BITS_ALLOC,
* Pci64BitResourceAllocation field does not exist in IIO_UDS HOB.
*/
#if CONFIG(SOC_INTEL_PCIE_64BIT_ALLOC)
return 1;
#else
const IIO_UDS *hob = get_iio_uds(); const IIO_UDS *hob = get_iio_uds();
return hob->PlatformData.Pci64BitResourceAllocation; return hob->PlatformData.Pci64BitResourceAllocation;
#endif
} }
static void xeonsp_pci_domain_read_resources(struct device *dev) static void xeonsp_pci_domain_read_resources(struct device *dev)