nb/intel/x4x: Hook up PCI domain and CPU bus ops to devicetree
Change-Id: I0a7b3167392c152da6459dfc202ef11b2e61400a Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69295 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
22d6ee8d9c
commit
1eecb8c814
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x8086 0x0028 inherit
|
subsystemid 0x8086 0x0028 inherit
|
||||||
device pci 0.0 on end # Host Bridge
|
device pci 0.0 on end # Host Bridge
|
||||||
device pci 2.0 on end # Integrated graphics controller
|
device pci 2.0 on end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x1458 0x5000 inherit
|
subsystemid 0x1458 0x5000 inherit
|
||||||
device pci 0.0 on # Host Bridge
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x1849 0x2e30
|
subsystemid 0x1849 0x2e30
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x1458 0x5000 inherit
|
subsystemid 0x1458 0x5000 inherit
|
||||||
device pci 0.0 on # Host Bridge
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x1849 0x2e30
|
subsystemid 0x1849 0x2e30
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x1458 0x5000 inherit
|
subsystemid 0x1458 0x5000 inherit
|
||||||
device pci 0.0 on # Host Bridge
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x1849 0x2e30
|
subsystemid 0x1849 0x2e30
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x1458 0x5000 inherit
|
subsystemid 0x1458 0x5000 inherit
|
||||||
device pci 0.0 on # Host Bridge
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x1849 0x2e30
|
subsystemid 0x1849 0x2e30
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x1458 0x5000 inherit
|
subsystemid 0x1458 0x5000 inherit
|
||||||
device pci 0.0 on # Host Bridge
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x1849 0x2e30
|
subsystemid 0x1849 0x2e30
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
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 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
device pci 6.0 off end # PEG 2
|
device pci 6.0 off end # PEG 2
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
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 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
device pci 2.0 off end # Integrated graphics controller
|
device pci 2.0 off end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
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 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
device pci 2.0 off end # Integrated graphics controller
|
device pci 2.0 off end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
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 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
device pci 2.0 off end # Integrated graphics controller
|
device pci 2.0 off end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
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 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
device pci 2.0 off end # Integrated graphics controller
|
device pci 2.0 off end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
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
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x1043 0x8336
|
subsystemid 0x1043 0x8336
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
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 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
device pci 2.0 on end # Integrated graphics controller
|
device pci 2.0 on end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
## SPDX-License-Identifier: GPL-2.0-or-later
|
## SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
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 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
device pci 2.0 on end # Integrated graphics controller
|
device pci 2.0 on end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x1458 0x5000 inherit
|
subsystemid 0x1458 0x5000 inherit
|
||||||
device pci 0.0 on # Host Bridge
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x1458 0x5000
|
subsystemid 0x1458 0x5000
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x1458 0x5000 inherit
|
subsystemid 0x1458 0x5000 inherit
|
||||||
device pci 0.0 on # Host Bridge
|
device pci 0.0 on # Host Bridge
|
||||||
subsystemid 0x8086 0x5756
|
subsystemid 0x8086 0x5756
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xacac off end
|
device lapic 0xacac off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x8086 0x0028 inherit
|
subsystemid 0x8086 0x0028 inherit
|
||||||
device pci 0.0 on end # Host Bridge
|
device pci 0.0 on end # Host Bridge
|
||||||
device pci 2.0 on end # Integrated graphics controller
|
device pci 2.0 on end # Integrated graphics controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
chip northbridge/intel/x4x # Northbridge
|
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
|
chip cpu/intel/socket_LGA775
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +10,8 @@ chip northbridge/intel/x4x # Northbridge
|
||||||
device lapic 0xACAC off end
|
device lapic 0xACAC off end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device domain 0 on # PCI domain
|
device domain 0 on
|
||||||
|
ops x4x_pci_domain_ops # PCI domain
|
||||||
subsystemid 0x17aa 0x304f inherit
|
subsystemid 0x17aa 0x304f inherit
|
||||||
device pci 0.0 on end # Host Bridge
|
device pci 0.0 on end # Host Bridge
|
||||||
device pci 1.0 on end # PEG
|
device pci 1.0 on end # PEG
|
||||||
|
|
|
@ -144,7 +144,7 @@ void northbridge_write_smram(u8 smram)
|
||||||
pci_write_config8(dev, D0F0_SMRAM, 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,
|
.read_resources = mch_domain_read_resources,
|
||||||
.set_resources = mch_domain_set_resources,
|
.set_resources = mch_domain_set_resources,
|
||||||
.init = mch_domain_init,
|
.init = mch_domain_init,
|
||||||
|
@ -154,21 +154,12 @@ static struct device_operations pci_domain_ops = {
|
||||||
.acpi_name = northbridge_acpi_name,
|
.acpi_name = northbridge_acpi_name,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct device_operations cpu_bus_ops = {
|
struct device_operations x4x_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;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void hide_pci_fn(const int dev_bit_base, const struct device *dev)
|
static void hide_pci_fn(const int dev_bit_base, const struct device *dev)
|
||||||
{
|
{
|
||||||
if (!dev || dev->enabled)
|
if (!dev || dev->enabled)
|
||||||
|
@ -201,6 +192,5 @@ static void x4x_init(void *const chip_info)
|
||||||
|
|
||||||
struct chip_operations northbridge_intel_x4x_ops = {
|
struct chip_operations northbridge_intel_x4x_ops = {
|
||||||
CHIP_NAME("Intel 4-Series Northbridge")
|
CHIP_NAME("Intel 4-Series Northbridge")
|
||||||
.enable_dev = enable_dev,
|
|
||||||
.init = x4x_init,
|
.init = x4x_init,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue