diff options
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/cezanne/root_complex.c | 4 | ||||
-rw-r--r-- | src/soc/amd/common/block/data_fabric/domain.c | 8 | ||||
-rw-r--r-- | src/soc/amd/glinda/root_complex.c | 4 | ||||
-rw-r--r-- | src/soc/amd/mendocino/root_complex.c | 4 | ||||
-rw-r--r-- | src/soc/amd/phoenix/root_complex.c | 4 | ||||
-rw-r--r-- | src/soc/amd/picasso/root_complex.c | 4 |
6 files changed, 8 insertions, 20 deletions
diff --git a/src/soc/amd/cezanne/root_complex.c b/src/soc/amd/cezanne/root_complex.c index 25867408bc..876f790718 100644 --- a/src/soc/amd/cezanne/root_complex.c +++ b/src/soc/amd/cezanne/root_complex.c @@ -111,8 +111,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) early_reserved_dram_start = e->base; early_reserved_dram_end = e->base + e->size; - fixed_io_range_reserved(dev, (*idx)++, PCI_IO_CONFIG_INDEX, PCI_IO_CONFIG_PORT_COUNT); - /* 0x0 - 0x9ffff */ ram_range(dev, (*idx)++, 0, 0xa0000); @@ -134,8 +132,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) */ ram_from_to(dev, (*idx)++, early_reserved_dram_end, mem_usable); - mmconf_resource(dev, (*idx)++); - /* Reserve fixed IOMMU MMIO region */ mmio_range(dev, (*idx)++, IOMMU_RESERVED_MMIO_BASE, IOMMU_RESERVED_MMIO_SIZE); diff --git a/src/soc/amd/common/block/data_fabric/domain.c b/src/soc/amd/common/block/data_fabric/domain.c index 65735574d1..f5d7216c04 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); } } diff --git a/src/soc/amd/glinda/root_complex.c b/src/soc/amd/glinda/root_complex.c index 37d189e64e..9d83f6fc52 100644 --- a/src/soc/amd/glinda/root_complex.c +++ b/src/soc/amd/glinda/root_complex.c @@ -126,8 +126,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) early_reserved_dram_start = e->base; early_reserved_dram_end = e->base + e->size; - fixed_io_range_reserved(dev, (*idx)++, PCI_IO_CONFIG_INDEX, PCI_IO_CONFIG_PORT_COUNT); - /* 0x0 - 0x9ffff */ ram_range(dev, (*idx)++, 0, 0xa0000); @@ -149,8 +147,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) */ ram_from_to(dev, (*idx)++, early_reserved_dram_end, mem_usable); - mmconf_resource(dev, (*idx)++); - /* Reserve fixed IOMMU MMIO region */ mmio_range(dev, (*idx)++, IOMMU_RESERVED_MMIO_BASE, IOMMU_RESERVED_MMIO_SIZE); diff --git a/src/soc/amd/mendocino/root_complex.c b/src/soc/amd/mendocino/root_complex.c index 7291058e3f..556124038a 100644 --- a/src/soc/amd/mendocino/root_complex.c +++ b/src/soc/amd/mendocino/root_complex.c @@ -154,8 +154,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) early_reserved_dram_start = e->base; early_reserved_dram_end = e->base + e->size; - fixed_io_range_reserved(dev, (*idx)++, PCI_IO_CONFIG_INDEX, PCI_IO_CONFIG_PORT_COUNT); - /* 0x0 - 0x9ffff */ ram_range(dev, (*idx)++, 0, 0xa0000); @@ -177,8 +175,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) */ ram_from_to(dev, (*idx)++, early_reserved_dram_end, mem_usable); - mmconf_resource(dev, (*idx)++); - /* Reserve fixed IOMMU MMIO region */ mmio_range(dev, (*idx)++, IOMMU_RESERVED_MMIO_BASE, IOMMU_RESERVED_MMIO_SIZE); diff --git a/src/soc/amd/phoenix/root_complex.c b/src/soc/amd/phoenix/root_complex.c index 3e61df1a01..1394b2c96b 100644 --- a/src/soc/amd/phoenix/root_complex.c +++ b/src/soc/amd/phoenix/root_complex.c @@ -126,8 +126,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) early_reserved_dram_start = e->base; early_reserved_dram_end = e->base + e->size; - fixed_io_range_reserved(dev, (*idx)++, PCI_IO_CONFIG_INDEX, PCI_IO_CONFIG_PORT_COUNT); - /* 0x0 - 0x9ffff */ ram_range(dev, (*idx)++, 0, 0xa0000); @@ -149,8 +147,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) */ ram_from_to(dev, (*idx)++, early_reserved_dram_end, mem_usable); - mmconf_resource(dev, (*idx)++); - /* Reserve fixed IOMMU MMIO region */ mmio_range(dev, (*idx)++, IOMMU_RESERVED_MMIO_BASE, IOMMU_RESERVED_MMIO_SIZE); diff --git a/src/soc/amd/picasso/root_complex.c b/src/soc/amd/picasso/root_complex.c index ffe4f66f5b..1e702ab8e5 100644 --- a/src/soc/amd/picasso/root_complex.c +++ b/src/soc/amd/picasso/root_complex.c @@ -111,8 +111,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) early_reserved_dram_start = e->base; early_reserved_dram_end = e->base + e->size; - fixed_io_range_reserved(dev, (*idx)++, PCI_IO_CONFIG_INDEX, PCI_IO_CONFIG_PORT_COUNT); - /* 0x0 - 0x9ffff */ ram_range(dev, (*idx)++, 0, 0xa0000); @@ -132,8 +130,6 @@ void read_soc_memmap_resources(struct device *dev, unsigned long *idx) * cbmem_top() accounts for low UMA and TSEG if they are used. */ ram_from_to(dev, (*idx)++, early_reserved_dram_end, mem_usable); - mmconf_resource(dev, (*idx)++); - /* Reserve fixed IOMMU MMIO region */ mmio_range(dev, (*idx)++, IOMMU_RESERVED_MMIO_BASE, IOMMU_RESERVED_MMIO_SIZE); |