summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/data_fabric/domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/data_fabric/domain.c')
-rw-r--r--src/soc/amd/common/block/data_fabric/domain.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/data_fabric/domain.c b/src/soc/amd/common/block/data_fabric/domain.c
index 65735574d10d..f5d7216c04d1 100644
--- a/src/soc/amd/common/block/data_fabric/domain.c
+++ b/src/soc/amd/common/block/data_fabric/domain.c
@@ -191,6 +191,12 @@ static void add_data_fabric_io_regions(struct device *domain, unsigned long *idx
}
}
+static void add_pci_cfg_resources(struct device *domain, unsigned long *idx)
+{
+ fixed_io_range_reserved(domain, (*idx)++, PCI_IO_CONFIG_INDEX, PCI_IO_CONFIG_PORT_COUNT);
+ mmconf_resource(domain, (*idx)++);
+}
+
void amd_pci_domain_read_resources(struct device *domain)
{
unsigned long idx = 0;
@@ -203,6 +209,8 @@ void amd_pci_domain_read_resources(struct device *domain)
/* Only add the SoC's DRAM memory map and fixed resources once */
if (domain->path.domain.domain == 0) {
+ add_pci_cfg_resources(domain, &idx);
+
read_soc_memmap_resources(domain, &idx);
}
}