summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-08-31 17:09:28 +0200
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-10-20 14:24:57 +0000
commit0b0113f2436b448cd172d2ae9cfcc07628020173 (patch)
tree627b1a81d647e9084763dd18eaca22022bd4568c /src/soc
parentce84a347bfa16f393e75e4cc63eded636ca69af8 (diff)
device/device.h: Rename pci_domain_scan_bus
On all targets the domain works as a host bridge. Xeon-sp code intends to feature multiple host bridges below a domain, hence rename the function to pci_host_bridge_scan_bus. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I4e65fdbaf0b42c5f4f62297a60d818d299d76f73 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78326 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-by: Yidi Lin <yidilin@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/block/data_fabric/domain.c4
-rw-r--r--src/soc/amd/stoneyridge/chip.c2
-rw-r--r--src/soc/cavium/cn81xx/ecam0.c2
-rw-r--r--src/soc/intel/alderlake/chip.c2
-rw-r--r--src/soc/intel/apollolake/chip.c2
-rw-r--r--src/soc/intel/baytrail/chip.c2
-rw-r--r--src/soc/intel/braswell/chip.c2
-rw-r--r--src/soc/intel/broadwell/northbridge.c2
-rw-r--r--src/soc/intel/cannonlake/chip.c2
-rw-r--r--src/soc/intel/denverton_ns/chip.c2
-rw-r--r--src/soc/intel/elkhartlake/chip.c2
-rw-r--r--src/soc/intel/jasperlake/chip.c2
-rw-r--r--src/soc/intel/meteorlake/chip.c2
-rw-r--r--src/soc/intel/skylake/chip.c2
-rw-r--r--src/soc/intel/tigerlake/chip.c2
-rw-r--r--src/soc/mediatek/mt8195/soc.c2
-rw-r--r--src/soc/qualcomm/sc7280/soc.c2
17 files changed, 18 insertions, 18 deletions
diff --git a/src/soc/amd/common/block/data_fabric/domain.c b/src/soc/amd/common/block/data_fabric/domain.c
index 01fad999b4..4ec52fcbd8 100644
--- a/src/soc/amd/common/block/data_fabric/domain.c
+++ b/src/soc/amd/common/block/data_fabric/domain.c
@@ -28,12 +28,12 @@ void amd_pci_domain_scan_bus(struct device *domain)
/* Set bus first number of PCI root */
domain->link_list->secondary = bus;
- /* subordinate needs to be the same as secondary before pci_domain_scan_bus call. */
+ /* subordinate needs to be the same as secondary before pci_host_bridge_scan_bus call. */
domain->link_list->subordinate = bus;
/* Tell allocator about maximum PCI bus number in domain */
domain->link_list->max_subordinate = limit;
- pci_domain_scan_bus(domain);
+ pci_host_bridge_scan_bus(domain);
}
static void print_df_mmio_outside_of_cpu_mmio_error(unsigned int reg)
diff --git a/src/soc/amd/stoneyridge/chip.c b/src/soc/amd/stoneyridge/chip.c
index eaa0e9ad6c..09cede3ddb 100644
--- a/src/soc/amd/stoneyridge/chip.c
+++ b/src/soc/amd/stoneyridge/chip.c
@@ -84,7 +84,7 @@ struct device_operations stoneyridge_pci_domain_ops = {
.read_resources = domain_read_resources,
.set_resources = pci_domain_set_resources,
.enable_resources = domain_enable_resources,
- .scan_bus = pci_domain_scan_bus,
+ .scan_bus = pci_host_bridge_scan_bus,
.acpi_name = soc_acpi_name,
};
diff --git a/src/soc/cavium/cn81xx/ecam0.c b/src/soc/cavium/cn81xx/ecam0.c
index e789fd8db1..d02e8843f2 100644
--- a/src/soc/cavium/cn81xx/ecam0.c
+++ b/src/soc/cavium/cn81xx/ecam0.c
@@ -312,5 +312,5 @@ static void ecam0_init(struct device *dev)
struct device_operations pci_domain_ops_ecam0 = {
.read_resources = ecam0_read_resources,
.init = ecam0_init,
- .scan_bus = pci_domain_scan_bus,
+ .scan_bus = pci_host_bridge_scan_bus,
};
diff --git a/src/soc/intel/alderlake/chip.c b/src/soc/intel/alderlake/chip.c
index 8b32b965b5..063915798d 100644
--- a/src/soc/intel/alderlake/chip.c
+++ b/src/soc/intel/alderlake/chip.c
@@ -248,7 +248,7 @@ static void cpu_set_north_irqs(struct device *dev)
static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index 37b3186af5..07c2637ecd 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -202,7 +202,7 @@ const char *soc_acpi_name(const struct device *dev)
static struct device_operations pci_domain_ops = {
.read_resources = pci_domain_read_resources,
.set_resources = pci_domain_set_resources,
- .scan_bus = pci_domain_scan_bus,
+ .scan_bus = pci_host_bridge_scan_bus,
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
};
diff --git a/src/soc/intel/baytrail/chip.c b/src/soc/intel/baytrail/chip.c
index 1f72dc4490..592e17879a 100644
--- a/src/soc/intel/baytrail/chip.c
+++ b/src/soc/intel/baytrail/chip.c
@@ -11,7 +11,7 @@
static struct device_operations pci_domain_ops = {
.read_resources = pci_domain_read_resources,
.set_resources = pci_domain_set_resources,
- .scan_bus = pci_domain_scan_bus,
+ .scan_bus = pci_host_bridge_scan_bus,
};
static struct device_operations cpu_bus_ops = {
diff --git a/src/soc/intel/braswell/chip.c b/src/soc/intel/braswell/chip.c
index e2ee0a9301..ce394d0baa 100644
--- a/src/soc/intel/braswell/chip.c
+++ b/src/soc/intel/braswell/chip.c
@@ -13,7 +13,7 @@
static struct device_operations pci_domain_ops = {
.read_resources = pci_domain_read_resources,
.set_resources = pci_domain_set_resources,
- .scan_bus = pci_domain_scan_bus,
+ .scan_bus = pci_host_bridge_scan_bus,
};
static struct device_operations cpu_bus_ops = {
diff --git a/src/soc/intel/broadwell/northbridge.c b/src/soc/intel/broadwell/northbridge.c
index d3c899ea79..652527520f 100644
--- a/src/soc/intel/broadwell/northbridge.c
+++ b/src/soc/intel/broadwell/northbridge.c
@@ -400,7 +400,7 @@ static const struct pci_driver systemagent_driver __pci_driver = {
struct device_operations broadwell_pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.write_acpi_tables = &northbridge_write_acpi_tables,
#endif
diff --git a/src/soc/intel/cannonlake/chip.c b/src/soc/intel/cannonlake/chip.c
index 19b8c396b3..0ece32c646 100644
--- a/src/soc/intel/cannonlake/chip.c
+++ b/src/soc/intel/cannonlake/chip.c
@@ -174,7 +174,7 @@ static void cpu_set_north_irqs(struct device *dev)
static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
diff --git a/src/soc/intel/denverton_ns/chip.c b/src/soc/intel/denverton_ns/chip.c
index 3d974a2214..1a4341e1d6 100644
--- a/src/soc/intel/denverton_ns/chip.c
+++ b/src/soc/intel/denverton_ns/chip.c
@@ -109,7 +109,7 @@ const char *soc_acpi_name(const struct device *dev)
static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
#endif
diff --git a/src/soc/intel/elkhartlake/chip.c b/src/soc/intel/elkhartlake/chip.c
index 4d61c3b5ed..20e46c04d8 100644
--- a/src/soc/intel/elkhartlake/chip.c
+++ b/src/soc/intel/elkhartlake/chip.c
@@ -132,7 +132,7 @@ void soc_init_pre_device(void *chip_info)
static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
diff --git a/src/soc/intel/jasperlake/chip.c b/src/soc/intel/jasperlake/chip.c
index e51a601811..c049163fec 100644
--- a/src/soc/intel/jasperlake/chip.c
+++ b/src/soc/intel/jasperlake/chip.c
@@ -139,7 +139,7 @@ void soc_init_pre_device(void *chip_info)
static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
diff --git a/src/soc/intel/meteorlake/chip.c b/src/soc/intel/meteorlake/chip.c
index 954c32bdfc..a1b19682af 100644
--- a/src/soc/intel/meteorlake/chip.c
+++ b/src/soc/intel/meteorlake/chip.c
@@ -203,7 +203,7 @@ static void cpu_set_north_irqs(struct device *dev)
static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
diff --git a/src/soc/intel/skylake/chip.c b/src/soc/intel/skylake/chip.c
index 70d12e4316..8df1ad3543 100644
--- a/src/soc/intel/skylake/chip.c
+++ b/src/soc/intel/skylake/chip.c
@@ -189,7 +189,7 @@ void soc_init_pre_device(void *chip_info)
struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
diff --git a/src/soc/intel/tigerlake/chip.c b/src/soc/intel/tigerlake/chip.c
index 15281c8c46..024763dd7f 100644
--- a/src/soc/intel/tigerlake/chip.c
+++ b/src/soc/intel/tigerlake/chip.c
@@ -179,7 +179,7 @@ static void cpu_set_north_irqs(struct device *dev)
static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name,
.acpi_fill_ssdt = ssdt_set_above_4g_pci,
diff --git a/src/soc/mediatek/mt8195/soc.c b/src/soc/mediatek/mt8195/soc.c
index 2ecc31e551..5425695baf 100644
--- a/src/soc/mediatek/mt8195/soc.c
+++ b/src/soc/mediatek/mt8195/soc.c
@@ -53,7 +53,7 @@ static struct device_operations soc_ops = {
static struct device_operations pci_domain_ops = {
.read_resources = &mtk_pcie_domain_read_resources,
.set_resources = &mtk_pcie_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
.enable = &mtk_pcie_domain_enable,
};
diff --git a/src/soc/qualcomm/sc7280/soc.c b/src/soc/qualcomm/sc7280/soc.c
index 268f080194..e6dbf21978 100644
--- a/src/soc/qualcomm/sc7280/soc.c
+++ b/src/soc/qualcomm/sc7280/soc.c
@@ -10,7 +10,7 @@
static struct device_operations pci_domain_ops = {
.read_resources = &qcom_pci_domain_read_resources,
.set_resources = &pci_domain_set_resources,
- .scan_bus = &pci_domain_scan_bus,
+ .scan_bus = &pci_host_bridge_scan_bus,
.enable = &qcom_setup_pcie_host,
};