summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/acer/g43t-am3/devicetree.cb6
-rw-r--r--src/mainboard/asrock/g41c-gs/variants/g41c-gs-r2/devicetree.cb6
-rw-r--r--src/mainboard/asrock/g41c-gs/variants/g41c-gs/devicetree.cb6
-rw-r--r--src/mainboard/asrock/g41c-gs/variants/g41m-gs/devicetree.cb6
-rw-r--r--src/mainboard/asrock/g41c-gs/variants/g41m-s3/devicetree.cb6
-rw-r--r--src/mainboard/asrock/g41c-gs/variants/g41m-vs3-r2/devicetree.cb6
-rw-r--r--src/mainboard/asus/p5qc/variants/p5q/devicetree.cb6
-rw-r--r--src/mainboard/asus/p5qc/variants/p5q_pro/devicetree.cb6
-rw-r--r--src/mainboard/asus/p5qc/variants/p5q_se/devicetree.cb6
-rw-r--r--src/mainboard/asus/p5qc/variants/p5qc/devicetree.cb6
-rw-r--r--src/mainboard/asus/p5qc/variants/p5ql_pro/devicetree.cb6
-rw-r--r--src/mainboard/asus/p5ql-em/devicetree.cb6
-rw-r--r--src/mainboard/asus/p5qpl-am/devicetree.cb6
-rw-r--r--src/mainboard/foxconn/g41s-k/devicetree.cb6
-rw-r--r--src/mainboard/gigabyte/ga-g41m-es2l/devicetree.cb6
-rw-r--r--src/mainboard/intel/dg41wv/devicetree.cb6
-rw-r--r--src/mainboard/intel/dg43gt/devicetree.cb6
-rw-r--r--src/mainboard/lenovo/thinkcentre_a58/devicetree.cb6
-rw-r--r--src/northbridge/intel/x4x/northbridge.c14
19 files changed, 74 insertions, 48 deletions
diff --git a/src/mainboard/acer/g43t-am3/devicetree.cb b/src/mainboard/acer/g43t-am3/devicetree.cb
index a713f34f70de..713ac40d2fbc 100644
--- a/src/mainboard/acer/g43t-am3/devicetree.cb
+++ b/src/mainboard/acer/g43t-am3/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x8086 0x0028 inherit
device pci 0.0 on end # Host Bridge
device pci 2.0 on end # Integrated graphics controller
diff --git a/src/mainboard/asrock/g41c-gs/variants/g41c-gs-r2/devicetree.cb b/src/mainboard/asrock/g41c-gs/variants/g41c-gs-r2/devicetree.cb
index ff0503066ca2..5d10628a6264 100644
--- a/src/mainboard/asrock/g41c-gs/variants/g41c-gs-r2/devicetree.cb
+++ b/src/mainboard/asrock/g41c-gs/variants/g41c-gs-r2/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x1458 0x5000 inherit
device pci 0.0 on # Host Bridge
subsystemid 0x1849 0x2e30
diff --git a/src/mainboard/asrock/g41c-gs/variants/g41c-gs/devicetree.cb b/src/mainboard/asrock/g41c-gs/variants/g41c-gs/devicetree.cb
index 89e6ebb8fcec..d0759e234689 100644
--- a/src/mainboard/asrock/g41c-gs/variants/g41c-gs/devicetree.cb
+++ b/src/mainboard/asrock/g41c-gs/variants/g41c-gs/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x1458 0x5000 inherit
device pci 0.0 on # Host Bridge
subsystemid 0x1849 0x2e30
diff --git a/src/mainboard/asrock/g41c-gs/variants/g41m-gs/devicetree.cb b/src/mainboard/asrock/g41c-gs/variants/g41m-gs/devicetree.cb
index c3c6b1b17abd..818ceaa5c08d 100644
--- a/src/mainboard/asrock/g41c-gs/variants/g41m-gs/devicetree.cb
+++ b/src/mainboard/asrock/g41c-gs/variants/g41m-gs/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x1458 0x5000 inherit
device pci 0.0 on # Host Bridge
subsystemid 0x1849 0x2e30
diff --git a/src/mainboard/asrock/g41c-gs/variants/g41m-s3/devicetree.cb b/src/mainboard/asrock/g41c-gs/variants/g41m-s3/devicetree.cb
index 9d22761a7c44..9f4142bf5d74 100644
--- a/src/mainboard/asrock/g41c-gs/variants/g41m-s3/devicetree.cb
+++ b/src/mainboard/asrock/g41c-gs/variants/g41m-s3/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x1458 0x5000 inherit
device pci 0.0 on # Host Bridge
subsystemid 0x1849 0x2e30
diff --git a/src/mainboard/asrock/g41c-gs/variants/g41m-vs3-r2/devicetree.cb b/src/mainboard/asrock/g41c-gs/variants/g41m-vs3-r2/devicetree.cb
index 8693c0196de3..e0df76be960f 100644
--- a/src/mainboard/asrock/g41c-gs/variants/g41m-vs3-r2/devicetree.cb
+++ b/src/mainboard/asrock/g41c-gs/variants/g41m-vs3-r2/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x1458 0x5000 inherit
device pci 0.0 on # Host Bridge
subsystemid 0x1849 0x2e30
diff --git a/src/mainboard/asus/p5qc/variants/p5q/devicetree.cb b/src/mainboard/asus/p5qc/variants/p5q/devicetree.cb
index 9057ed7daa64..c452672d920b 100644
--- a/src/mainboard/asus/p5qc/variants/p5q/devicetree.cb
+++ b/src/mainboard/asus/p5qc/variants/p5q/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
device pci 6.0 off end # PEG 2
diff --git a/src/mainboard/asus/p5qc/variants/p5q_pro/devicetree.cb b/src/mainboard/asus/p5qc/variants/p5q_pro/devicetree.cb
index bc9dff630dcc..b0452d4d57c9 100644
--- a/src/mainboard/asus/p5qc/variants/p5q_pro/devicetree.cb
+++ b/src/mainboard/asus/p5qc/variants/p5q_pro/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
device pci 2.0 off end # Integrated graphics controller
diff --git a/src/mainboard/asus/p5qc/variants/p5q_se/devicetree.cb b/src/mainboard/asus/p5qc/variants/p5q_se/devicetree.cb
index 01de13fa67ff..8390bc0f9274 100644
--- a/src/mainboard/asus/p5qc/variants/p5q_se/devicetree.cb
+++ b/src/mainboard/asus/p5qc/variants/p5q_se/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
device pci 2.0 off end # Integrated graphics controller
diff --git a/src/mainboard/asus/p5qc/variants/p5qc/devicetree.cb b/src/mainboard/asus/p5qc/variants/p5qc/devicetree.cb
index 1b50903842ea..70e82e84e827 100644
--- a/src/mainboard/asus/p5qc/variants/p5qc/devicetree.cb
+++ b/src/mainboard/asus/p5qc/variants/p5qc/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
device pci 2.0 off end # Integrated graphics controller
diff --git a/src/mainboard/asus/p5qc/variants/p5ql_pro/devicetree.cb b/src/mainboard/asus/p5qc/variants/p5ql_pro/devicetree.cb
index 01de13fa67ff..8390bc0f9274 100644
--- a/src/mainboard/asus/p5qc/variants/p5ql_pro/devicetree.cb
+++ b/src/mainboard/asus/p5qc/variants/p5ql_pro/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
device pci 2.0 off end # Integrated graphics controller
diff --git a/src/mainboard/asus/p5ql-em/devicetree.cb b/src/mainboard/asus/p5ql-em/devicetree.cb
index 242ea5a0d8b0..a839b9dda188 100644
--- a/src/mainboard/asus/p5ql-em/devicetree.cb
+++ b/src/mainboard/asus/p5ql-em/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on # Host Bridge
subsystemid 0x1043 0x8336
end
diff --git a/src/mainboard/asus/p5qpl-am/devicetree.cb b/src/mainboard/asus/p5qpl-am/devicetree.cb
index 1cbee7400939..82b1c6107895 100644
--- a/src/mainboard/asus/p5qpl-am/devicetree.cb
+++ b/src/mainboard/asus/p5qpl-am/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
device pci 2.0 on end # Integrated graphics controller
diff --git a/src/mainboard/foxconn/g41s-k/devicetree.cb b/src/mainboard/foxconn/g41s-k/devicetree.cb
index 9bde4b2b9c3f..578f13d80585 100644
--- a/src/mainboard/foxconn/g41s-k/devicetree.cb
+++ b/src/mainboard/foxconn/g41s-k/devicetree.cb
@@ -1,7 +1,8 @@
## SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
device pci 2.0 on end # Integrated graphics controller
diff --git a/src/mainboard/gigabyte/ga-g41m-es2l/devicetree.cb b/src/mainboard/gigabyte/ga-g41m-es2l/devicetree.cb
index 6328bc64a457..d2168630ba17 100644
--- a/src/mainboard/gigabyte/ga-g41m-es2l/devicetree.cb
+++ b/src/mainboard/gigabyte/ga-g41m-es2l/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x1458 0x5000 inherit
device pci 0.0 on # Host Bridge
subsystemid 0x1458 0x5000
diff --git a/src/mainboard/intel/dg41wv/devicetree.cb b/src/mainboard/intel/dg41wv/devicetree.cb
index 5f945c1c3376..9e5c136bc26e 100644
--- a/src/mainboard/intel/dg41wv/devicetree.cb
+++ b/src/mainboard/intel/dg41wv/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x1458 0x5000 inherit
device pci 0.0 on # Host Bridge
subsystemid 0x8086 0x5756
diff --git a/src/mainboard/intel/dg43gt/devicetree.cb b/src/mainboard/intel/dg43gt/devicetree.cb
index bb2456f53797..5e2eb9d60ba4 100644
--- a/src/mainboard/intel/dg43gt/devicetree.cb
+++ b/src/mainboard/intel/dg43gt/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xacac off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x8086 0x0028 inherit
device pci 0.0 on end # Host Bridge
device pci 2.0 on end # Integrated graphics controller
diff --git a/src/mainboard/lenovo/thinkcentre_a58/devicetree.cb b/src/mainboard/lenovo/thinkcentre_a58/devicetree.cb
index e5d10d7ac68b..a4b9ac8e9f92 100644
--- a/src/mainboard/lenovo/thinkcentre_a58/devicetree.cb
+++ b/src/mainboard/lenovo/thinkcentre_a58/devicetree.cb
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/x4x # Northbridge
- device cpu_cluster 0 on # APIC cluster
+ device cpu_cluster 0 on
+ ops x4x_cpu_bus_ops # APIC cluster
chip cpu/intel/socket_LGA775
device lapic 0 on end
end
@@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
device lapic 0xACAC off end
end
end
- device domain 0 on # PCI domain
+ device domain 0 on
+ ops x4x_pci_domain_ops # PCI domain
subsystemid 0x17aa 0x304f inherit
device pci 0.0 on end # Host Bridge
device pci 1.0 on end # PEG
diff --git a/src/northbridge/intel/x4x/northbridge.c b/src/northbridge/intel/x4x/northbridge.c
index ac276b69d4a0..da046d169706 100644
--- a/src/northbridge/intel/x4x/northbridge.c
+++ b/src/northbridge/intel/x4x/northbridge.c
@@ -144,7 +144,7 @@ void northbridge_write_smram(u8 smram)
pci_write_config8(dev, D0F0_SMRAM, smram);
}
-static struct device_operations pci_domain_ops = {
+struct device_operations x4x_pci_domain_ops = {
.read_resources = mch_domain_read_resources,
.set_resources = mch_domain_set_resources,
.init = mch_domain_init,
@@ -154,21 +154,12 @@ static struct device_operations pci_domain_ops = {
.acpi_name = northbridge_acpi_name,
};
-static struct device_operations cpu_bus_ops = {
+struct device_operations x4x_cpu_bus_ops = {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.init = mp_cpu_bus_init,
};
-static void enable_dev(struct device *dev)
-{
- /* Set the operations if it is a special bus type */
- if (dev->path.type == DEVICE_PATH_DOMAIN)
- dev->ops = &pci_domain_ops;
- else if (dev->path.type == DEVICE_PATH_CPU_CLUSTER)
- dev->ops = &cpu_bus_ops;
-}
-
static void hide_pci_fn(const int dev_bit_base, const struct device *dev)
{
if (!dev || dev->enabled)
@@ -201,6 +192,5 @@ static void x4x_init(void *const chip_info)
struct chip_operations northbridge_intel_x4x_ops = {
CHIP_NAME("Intel 4-Series Northbridge")
- .enable_dev = enable_dev,
.init = x4x_init,
};