Elyes HAOUAS | 674ad92 | 2020-05-09 13:21:47 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 2 | |
| 3 | chip northbridge/intel/x4x # Northbridge |
Arthur Heymans | 1eecb8c | 2022-11-07 10:04:56 +0100 | [diff] [blame] | 4 | device cpu_cluster 0 on |
| 5 | ops x4x_cpu_bus_ops # APIC cluster |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 6 | chip cpu/intel/socket_LGA775 |
| 7 | device lapic 0 on end |
| 8 | end |
| 9 | chip cpu/intel/model_1067x # CPU |
| 10 | device lapic 0xACAC off end |
| 11 | end |
| 12 | end |
Arthur Heymans | 1eecb8c | 2022-11-07 10:04:56 +0100 | [diff] [blame] | 13 | device domain 0 on |
| 14 | ops x4x_pci_domain_ops # PCI domain |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 15 | subsystemid 0x1458 0x5000 inherit |
| 16 | device pci 0.0 on # Host Bridge |
| 17 | subsystemid 0x1849 0x2e30 |
| 18 | end |
| 19 | device pci 1.0 on end # PEG |
| 20 | |
| 21 | device pci 2.0 on # Integrated graphics controller |
| 22 | subsystemid 0x1849 0x2e32 |
| 23 | end |
| 24 | device pci 3.0 off end # ME |
| 25 | device pci 3.1 off end # ME |
| 26 | chip southbridge/intel/i82801gx # Southbridge |
| 27 | register "pirqa_routing" = "0x0b" |
| 28 | register "pirqb_routing" = "0x0b" |
| 29 | register "pirqc_routing" = "0x0b" |
| 30 | register "pirqd_routing" = "0x0b" |
| 31 | register "pirqe_routing" = "0x80" |
| 32 | register "pirqf_routing" = "0x80" |
| 33 | register "pirqg_routing" = "0x80" |
| 34 | register "pirqh_routing" = "0x0b" |
| 35 | # GPI routing |
| 36 | # 0 No effect (default) |
| 37 | # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set) |
| 38 | # 2 SCI (if corresponding GPIO_EN bit is also set) |
| 39 | register "gpi13_routing" = "2" |
| 40 | |
Elyes Haouas | dc3beea | 2022-11-29 17:36:51 +0100 | [diff] [blame] | 41 | register "ide_enable_primary" = "true" |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 42 | register "sata_ports_implemented" = "0x3" |
| 43 | register "gpe0_en" = "0x440" |
| 44 | |
Arthur Heymans | fecf777 | 2019-11-09 14:19:04 +0100 | [diff] [blame] | 45 | register "gen1_dec" = "0x000c0291" # Superio HWM |
| 46 | |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 47 | device pci 1b.0 on # Audio |
| 48 | subsystemid 0x1849 0x3662 |
| 49 | end |
| 50 | device pci 1c.0 on end # PCIe 1 |
| 51 | device pci 1c.1 on end # PCIe 2 |
| 52 | device pci 1c.2 off end # PCIe 3 |
| 53 | device pci 1c.3 off end # PCIe 4 |
| 54 | device pci 1d.0 on # USB |
| 55 | subsystemid 0x1849 0x27c8 |
| 56 | end |
| 57 | device pci 1d.1 on # USB |
| 58 | subsystemid 0x1849 0x27c9 |
| 59 | end |
| 60 | device pci 1d.2 on # USB |
| 61 | subsystemid 0x1849 0x27ca |
| 62 | end |
| 63 | device pci 1d.3 on # USB |
| 64 | subsystemid 0x1849 0x27cb |
| 65 | end |
| 66 | device pci 1d.7 on # USB |
| 67 | subsystemid 0x1849 0x27cc |
| 68 | end |
| 69 | device pci 1e.0 on end # PCI bridge |
Arthur Heymans | 33fa95c | 2018-09-13 17:39:02 +0200 | [diff] [blame] | 70 | device pci 1e.2 off end # AC'97 Audio |
| 71 | device pci 1e.3 off end # AC'97 Modem |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 72 | device pci 1f.0 on # ISA bridge |
| 73 | subsystemid 0x1849 0x27b8 |
| 74 | chip superio/nuvoton/nct6776 |
| 75 | device pnp 2e.0 off end # Floppy |
| 76 | device pnp 2e.1 on # Parallel port |
| 77 | # global |
| 78 | irq 0x1c = 0x80 |
| 79 | irq 0x27 = 0x80 |
| 80 | irq 0x2a = 0x60 |
| 81 | # parallel port |
| 82 | io 0x60 = 0x378 |
| 83 | irq 0x70 = 7 |
| 84 | drq 0x74 = 3 |
| 85 | end |
| 86 | device pnp 2e.2 on # COM1 |
| 87 | io 0x60 = 0x3f8 |
| 88 | irq 0x70 = 4 |
| 89 | end |
| 90 | device pnp 2e.3 off end # COM2, IR |
| 91 | device pnp 2e.5 on # Keyboard |
| 92 | io 0x60 = 0x60 |
| 93 | io 0x62 = 0x64 |
| 94 | irq 0x70 = 1 |
| 95 | end |
| 96 | device pnp 2e.6 on # CIR |
| 97 | io 0x60 = 0x230 |
| 98 | irq 0x70 = 3 |
| 99 | end |
| 100 | device pnp 2e.7 off end # GPIO6-9 |
| 101 | device pnp 2e.8 off end # WDT1, GPIO0, GPIO1, GPIOA |
| 102 | device pnp 2e.9 off end # GPIO2-5 |
| 103 | device pnp 2e.a on # ACPI |
| 104 | irq 0xe0 = 0x03 |
| 105 | irq 0xe4 = 0x10 # Power dram during s3 |
| 106 | irq 0xe6 = 0x4c |
| 107 | irq 0xe9 = 0x02 |
| 108 | irq 0xf0 = 0x20 |
| 109 | end |
Martin Roth | 50863da | 2021-10-01 14:37:30 -0600 | [diff] [blame] | 110 | device pnp 2e.b on # HWM, front panel LED |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 111 | io 0x60 = 0x290 |
| 112 | io 0x62 = 0x200 |
| 113 | irq 0x70 = 0 |
| 114 | end |
| 115 | device pnp 2e.d on end # VID |
| 116 | device pnp 2e.e on # CIR WAKE-UP |
| 117 | io 0x60 = 0x240 |
| 118 | irq 0x70 = 0 |
| 119 | end |
| 120 | device pnp 2e.f on end # GPIO Push-Pull or Open-drain |
| 121 | device pnp 2e.14 on end # SVID |
| 122 | device pnp 2e.16 on end # Deep Sleep |
| 123 | device pnp 2e.17 on end # GPIOA |
| 124 | end |
| 125 | end |
| 126 | device pci 1f.1 on # PATA/IDE |
| 127 | subsystemid 0x1849 0x27df |
| 128 | end |
| 129 | device pci 1f.2 on # SATA |
| 130 | subsystemid 0x1849 0x27c0 |
| 131 | end |
| 132 | device pci 1f.3 on # SMbus |
| 133 | subsystemid 0x1849 0x27da |
Arthur Heymans | fd440bb | 2017-08-29 08:30:43 +0200 | [diff] [blame] | 134 | chip drivers/i2c/ck505 # W83115RG-965 |
| 135 | # set SATA to fixed 100Mhz refclk |
| 136 | register "mask" = "{ 0x02 }" |
| 137 | register "regs" = "{ 0x02 }" |
| 138 | device i2c 69 on end |
| 139 | end |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 140 | end |
Arthur Heymans | 7d46e96 | 2017-03-18 15:54:42 +0100 | [diff] [blame] | 141 | end |
| 142 | end |
| 143 | end |