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>
This commit is contained in:
parent
2fb6f68ef0
commit
22d6ee8d9c
@ -14,6 +14,7 @@ chip northbridge/intel/i945
|
|||||||
register "gpu_panel_power_cycle_delay" = "2"
|
register "gpu_panel_power_cycle_delay" = "2"
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_m
|
chip cpu/intel/socket_m
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -22,6 +23,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on # Host bridge
|
device pci 00.0 on # Host bridge
|
||||||
subsystemid 0x8086 0x7270
|
subsystemid 0x8086 0x7270
|
||||||
end
|
end
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
chip northbridge/intel/i945
|
chip northbridge/intel/i945
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_LGA775
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -12,6 +13,7 @@ chip northbridge/intel/i945
|
|||||||
end
|
end
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on # host bridge
|
device pci 00.0 on # host bridge
|
||||||
subsystemid 0x1458 0x5000
|
subsystemid 0x1458 0x5000
|
||||||
end
|
end
|
||||||
|
@ -6,6 +6,7 @@ chip northbridge/intel/i945
|
|||||||
register "gfx.did" = "{ 0x80000100, 0x80000410, 0x80000320, 0x80000410, 0x00000005 }"
|
register "gfx.did" = "{ 0x80000100, 0x80000410, 0x80000320, 0x80000410, 0x00000005 }"
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_m
|
chip cpu/intel/socket_m
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -14,6 +15,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on end # host bridge
|
device pci 00.0 on end # host bridge
|
||||||
device pci 01.0 off end # i945 PCIe root port
|
device pci 01.0 off end # i945 PCIe root port
|
||||||
device pci 02.0 on end # vga controller
|
device pci 02.0 on end # vga controller
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
chip northbridge/intel/i945
|
chip northbridge/intel/i945
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_LGA775
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -14,6 +15,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on # host bridge
|
device pci 00.0 on # host bridge
|
||||||
subsystemid 0x1458 0x5000
|
subsystemid 0x1458 0x5000
|
||||||
end
|
end
|
||||||
|
@ -3,6 +3,7 @@ chip northbridge/intel/i945
|
|||||||
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
|
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_m
|
chip cpu/intel/socket_m
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -11,6 +12,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on end # host bridge
|
device pci 00.0 on end # host bridge
|
||||||
device pci 01.0 off end # i945 PCIe root port
|
device pci 01.0 off end # i945 PCIe root port
|
||||||
device pci 02.0 on end # vga controller
|
device pci 02.0 on end # vga controller
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
chip northbridge/intel/i945
|
chip northbridge/intel/i945
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_441
|
chip cpu/intel/socket_441
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -11,6 +12,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
subsystemid 0x8086 0x464c inherit
|
subsystemid 0x8086 0x464c inherit
|
||||||
device pci 00.0 on end # host bridge
|
device pci 00.0 on end # host bridge
|
||||||
device pci 01.0 off end # i945 PCIe root port
|
device pci 01.0 off end # i945 PCIe root port
|
||||||
|
@ -3,6 +3,7 @@ chip northbridge/intel/i945
|
|||||||
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
|
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_m
|
chip cpu/intel/socket_m
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -11,6 +12,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on end # host bridge
|
device pci 00.0 on end # host bridge
|
||||||
device pci 01.0 off end # i945 PCIe x16 bridge
|
device pci 01.0 off end # i945 PCIe x16 bridge
|
||||||
device pci 02.0 on end # GMA950 iGPU + VGA
|
device pci 02.0 on end # GMA950 iGPU + VGA
|
||||||
|
@ -14,6 +14,7 @@ chip northbridge/intel/i945
|
|||||||
register "gpu_panel_power_cycle_delay" = "2"
|
register "gpu_panel_power_cycle_delay" = "2"
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_m
|
chip cpu/intel/socket_m
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -22,6 +23,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on # Host bridge
|
device pci 00.0 on # Host bridge
|
||||||
subsystemid 0x17aa 0x2015
|
subsystemid 0x17aa 0x2015
|
||||||
end
|
end
|
||||||
|
@ -14,6 +14,7 @@ chip northbridge/intel/i945
|
|||||||
register "gpu_panel_power_cycle_delay" = "2"
|
register "gpu_panel_power_cycle_delay" = "2"
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_m
|
chip cpu/intel/socket_m
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -22,6 +23,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
device pci 00.0 on # Host bridge
|
device pci 00.0 on # Host bridge
|
||||||
subsystemid 0x17aa 0x2017
|
subsystemid 0x17aa 0x2017
|
||||||
end
|
end
|
||||||
|
@ -5,6 +5,7 @@ chip northbridge/intel/i945
|
|||||||
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
|
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
|
ops i945_cpu_bus_ops
|
||||||
chip cpu/intel/socket_m
|
chip cpu/intel/socket_m
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
@ -13,6 +14,7 @@ chip northbridge/intel/i945
|
|||||||
register "pci_mmio_size" = "768"
|
register "pci_mmio_size" = "768"
|
||||||
|
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
ops i945_pci_domain_ops
|
||||||
subsystemid 0x4352 0x6886 inherit
|
subsystemid 0x4352 0x6886 inherit
|
||||||
device pci 00.0 on end # host bridge
|
device pci 00.0 on end # host bridge
|
||||||
# auto detection:
|
# auto detection:
|
||||||
|
@ -122,7 +122,7 @@ void northbridge_write_smram(u8 smram)
|
|||||||
pci_write_config8(dev, SMRAM, 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,
|
.read_resources = mch_domain_read_resources,
|
||||||
.set_resources = mch_domain_set_resources,
|
.set_resources = mch_domain_set_resources,
|
||||||
.scan_bus = pci_domain_scan_bus,
|
.scan_bus = pci_domain_scan_bus,
|
||||||
@ -155,22 +155,12 @@ static const struct pci_driver mc_driver __pci_driver = {
|
|||||||
.devices = pci_device_ids,
|
.devices = pci_device_ids,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct device_operations cpu_bus_ops = {
|
struct device_operations i945_cpu_bus_ops = {
|
||||||
.read_resources = noop_read_resources,
|
.read_resources = noop_read_resources,
|
||||||
.set_resources = noop_set_resources,
|
.set_resources = noop_set_resources,
|
||||||
.init = mp_cpu_bus_init,
|
.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 = {
|
struct chip_operations northbridge_intel_i945_ops = {
|
||||||
CHIP_NAME("Intel i945 Northbridge")
|
CHIP_NAME("Intel i945 Northbridge")
|
||||||
.enable_dev = enable_dev,
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user