summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-11-07 13:30:29 +0100
committerArthur Heymans <arthur@aheymans.xyz>2022-11-12 08:56:18 +0000
commit4c4bd3cd973f3ec20c3a343a183af4a19b97a748 (patch)
tree47978f6a48f60e28da38d881733162c665fd68fb /src/soc
parentbd72bfece2da38ff60a99a3bbb15bd3243a5d647 (diff)
soc/intel/broadwell: Hook up PCI domain and CPU cluster ops to devicetree
Change-Id: I77a333827552741453d8b575f2a8009b3e1bf8f1 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69301 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/broadwell/northbridge.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/soc/intel/broadwell/northbridge.c b/src/soc/intel/broadwell/northbridge.c
index b65a7589b0..bbde3d275e 100644
--- a/src/soc/intel/broadwell/northbridge.c
+++ b/src/soc/intel/broadwell/northbridge.c
@@ -419,7 +419,7 @@ static const struct pci_driver systemagent_driver __pci_driver = {
.devices = systemagent_ids
};
-static struct device_operations pci_domain_ops = {
+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,
@@ -428,22 +428,12 @@ static struct device_operations pci_domain_ops = {
#endif
};
-static struct device_operations cpu_bus_ops = {
+struct device_operations broadwell_cpu_bus_ops = {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.init = mp_cpu_bus_init,
};
-static void broadwell_enable(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 broadwell_init_pre_device(void *chip_info)
{
broadwell_run_reference_code();
@@ -451,6 +441,5 @@ static void broadwell_init_pre_device(void *chip_info)
struct chip_operations soc_intel_broadwell_ops = {
CHIP_NAME("Intel Broadwell")
- .enable_dev = &broadwell_enable,
.init = &broadwell_init_pre_device,
};