diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-11-07 10:03:40 +0100 |
---|---|---|
committer | Arthur Heymans <arthur@aheymans.xyz> | 2022-12-01 10:28:03 +0000 |
commit | 22d6ee8d9cda51d20ca4173593b9574f7dac65ff (patch) | |
tree | 9b672418bce3536132eceff8a288d0ef7340e1ed /src/northbridge/intel | |
parent | 2fb6f68ef09358aa6f2550519e71a1d74702d5ef (diff) |
nb/intel/i945: Hook up PCI domain and CPU bus ops to devicetree
Change-Id: I4f30f5275d38c3eecf54d008b3edbf68071ab10d
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69294
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r-- | src/northbridge/intel/i945/northbridge.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c index 3c5603c90f..c175576d3a 100644 --- a/src/northbridge/intel/i945/northbridge.c +++ b/src/northbridge/intel/i945/northbridge.c @@ -122,7 +122,7 @@ void northbridge_write_smram(u8 smram) pci_write_config8(dev, SMRAM, smram); } -static struct device_operations pci_domain_ops = { +struct device_operations i945_pci_domain_ops = { .read_resources = mch_domain_read_resources, .set_resources = mch_domain_set_resources, .scan_bus = pci_domain_scan_bus, @@ -155,22 +155,12 @@ static const struct pci_driver mc_driver __pci_driver = { .devices = pci_device_ids, }; -static struct device_operations cpu_bus_ops = { +struct device_operations i945_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; -} - struct chip_operations northbridge_intel_i945_ops = { CHIP_NAME("Intel i945 Northbridge") - .enable_dev = enable_dev, }; |