## SPDX-License-Identifier: GPL-2.0-only

chip northbridge/intel/i945

	device cpu_cluster 0 on ops i945_cpu_bus_ops end		# APIC cluster

	device domain 0 on
		ops i945_pci_domain_ops
		device pci 00.0 on # host bridge
			subsystemid 0x1458 0x5000
		end
		device pci 01.0 on # i945 PCIe root port
			subsystemid 0x1458 0x5000
		end
		device pci 02.0 on  # vga controller
			subsystemid 0x1458 0xd000
		end

		chip southbridge/intel/i82801gx
			register "pirqa_routing" = "0x80"
			register "pirqb_routing" = "0x80"
			register "pirqc_routing" = "0x80"
			register "pirqd_routing" = "0x80"
			register "pirqe_routing" = "0x80"
			register "pirqf_routing" = "0x80"
			register "pirqg_routing" = "0x80"
			register "pirqh_routing" = "0x80"

			register "gpe0_en" = "0"

			register "ide_enable_primary" = "true"
			register "ide_enable_secondary" = "false"

			register "p_cnt_throttling_supported" = "false"

			# SuperIO Power Management Events
			register "gen1_dec" = "0x00040291"

			device pci 1b.0 on end # High Definition Audio
			device pci 1c.0 on end # PCIe
			device pci 1c.1 on end # PCIe
			device pci 1c.2 off end # PCIe port 3
			device pci 1c.3 off end # PCIe port 4
			device pci 1d.0 on end # USB UHCI
			device pci 1d.1 on end # USB UHCI
			device pci 1d.2 on end # USB UHCI
			device pci 1d.3 on end # USB UHCI
			device pci 1d.7 on end # USB2 EHCI
			device pci 1e.0 on end # PCI bridge
			device pci 1e.2 off end # AC'97 Audio
			device pci 1e.3 off end # AC'97 Modem

			device pci 1f.0 on # LPC bridge
				chip superio/winbond/w83627dhg
					device pnp 2e.0 on # Floppy
						io 0x60 = 0x3f0
						irq 0x70 = 6
						drq 0x74 = 2
					end
					device pnp 2e.1 on # Parallel port
						io 0x60 = 0x378
						irq 0x70 = 7
						drq 0x74 = 3
					end
					device pnp 2e.2 on # COM1
						io 0x60 = 0x3f8
						irq 0x70 = 4
					end
					device pnp 2e.3 on # COM2
						io 0x60 = 0x2f8
						irq 0x70 = 3
					end
					device pnp 2e.5 on # Keyboard
						io 0x60 = 0x60
						io 0x62 = 0x64
						irq 0x70 = 1 # Keyboard
						irq 0x72 = 12 # Mouse
					end
					device pnp 2e.6 off end # SPI
					device pnp 2e.7 on end # GPIO6
					device pnp 2e.8 off end # WDTO# & PLED
					device pnp 2e.9 off end # GPIO2
					device pnp 2e.109 on # GPIO3
						irq 0xf0 = 0xf3 # BSEL straps to output
						irq 0xf2 = 0x08 # INVERT GPIO33
					end
					device pnp 2e.209 on # GPIO4
						irq 0xf5 = 0xf8
					end
					device pnp 2e.309 on  # GPIO5
						irq 0xe0 = 0xde
					end
					device pnp 2e.a on # ACPI
						irq 0x70 = 0
						irq 0xe4 = 0x10 # VSBGATE# to power dram during S3
					end
					device pnp 2e.b on # HWM
						io 0x60 = 0x290
						irq 0x70 = 0
					end
					device pnp 2e.c on end # PECI, SST
				end
			end
			device pci 1f.1 on end # IDE
			device pci 1f.2 on end # SATA
			device pci 1f.3 on end # SMBus
		end
	end
end