| 1 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
|
| 3 |
chip northbridge/intel/x4x # Northbridge |
| 4 |
device cpu_cluster 0 on ops x4x_cpu_bus_ops end # APIC cluster |
| 5 |
device domain 0 on |
| 6 |
ops x4x_pci_domain_ops # PCI domain |
| 7 |
subsystemid 0x8086 0x0028 inherit |
| 8 |
device pci 0.0 on end # Host Bridge |
| 9 |
device pci 2.0 on end # Integrated graphics controller |
| 10 |
device pci 2.1 on end # Integrated graphics controller 2 |
| 11 |
device pci 3.0 off end # ME |
| 12 |
device pci 3.1 off end # ME |
| 13 |
chip southbridge/intel/i82801jx # Southbridge |
| 14 |
register "gpe0_en" = "0x40" |
| 15 |
|
| 16 |
# Set AHCI mode. |
| 17 |
register "sata_port_map" = "0x3f" |
| 18 |
register "sata_clock_request" = "0" |
| 19 |
|
| 20 |
# Enable PCIe ports 0,1 as slots. |
| 21 |
register "pcie_slot_implemented" = "0x3" |
| 22 |
|
| 23 |
# "Additional LPC IO decode ranges": used for SuperIO's |
| 24 |
# Environment Controller on 0xa15/0xa16 |
| 25 |
register "gen1_dec" = "0x00fc0a01" |
| 26 |
|
| 27 |
device pci 19.0 on end # GBE |
| 28 |
device pci 1a.0 on end # USB |
| 29 |
device pci 1a.1 on end # USB |
| 30 |
device pci 1a.2 on end # USB |
| 31 |
device pci 1a.7 on end # USB |
| 32 |
device pci 1b.0 on end # Audio |
| 33 |
device pci 1c.0 on end # PCIe 1 |
| 34 |
device pci 1c.1 on end # PCIe 2 |
| 35 |
device pci 1c.2 off end # PCIe 3 |
| 36 |
device pci 1c.3 off end # PCIe 4 |
| 37 |
device pci 1c.4 off end # PCIe 5 |
| 38 |
device pci 1c.5 off end # PCIe 6 |
| 39 |
device pci 1d.0 on end # USB |
| 40 |
device pci 1d.1 on end # USB |
| 41 |
device pci 1d.2 on end # USB |
| 42 |
device pci 1d.7 on end # USB |
| 43 |
device pci 1e.0 on end # PCI bridge |
| 44 |
device pci 1f.0 on # LPC bridge |
| 45 |
chip superio/ite/it8720f # Super I/O |
| 46 |
register "ec.smbus_en" = "1" |
| 47 |
register "ec.smbus_24mhz" = "1" |
| 48 |
register "TMPIN1.mode" = "THERMAL_DIODE" |
| 49 |
register "TMPIN2.mode" = "THERMAL_RESISTOR" |
| 50 |
register "TMPIN3.mode" = "THERMAL_PECI" |
| 51 |
register "TMPIN3.offset" = "100" |
| 52 |
register "TMPIN3.min" = "0" |
| 53 |
register "TMPIN3.max" = "100" |
| 54 |
|
| 55 |
register "FAN1.mode" = "FAN_SMART_AUTOMATIC" # CPU fan |
| 56 |
register "FAN1.smart.tmpin" = "3" |
| 57 |
register "FAN1.smart.tmp_off" = "0" |
| 58 |
register "FAN1.smart.tmp_start" = "50" |
| 59 |
register "FAN1.smart.tmp_full" = "90" |
| 60 |
register "FAN1.smart.tmp_delta" = "3" |
| 61 |
register "FAN1.smart.full_lmt" = "1" |
| 62 |
register "FAN1.smart.smoothing" = "0" |
| 63 |
register "FAN1.smart.pwm_start" = "30" |
| 64 |
register "FAN1.smart.slope" = "0x0d" |
| 65 |
register "FAN2.mode" = "FAN_SMART_AUTOMATIC" # System fan |
| 66 |
register "FAN2.smart.tmpin" = "2" |
| 67 |
register "FAN2.smart.tmp_off" = "0" |
| 68 |
register "FAN2.smart.tmp_start" = "40" |
| 69 |
register "FAN2.smart.tmp_full" = "90" |
| 70 |
register "FAN2.smart.tmp_delta" = "2" |
| 71 |
register "FAN2.smart.full_lmt" = "0" |
| 72 |
register "FAN2.smart.smoothing" = "0" |
| 73 |
register "FAN2.smart.pwm_start" = "48" |
| 74 |
register "FAN2.smart.slope" = "0x20" |
| 75 |
register "FAN3.mode" = "FAN_MODE_OFF" # Not connected |
| 76 |
|
| 77 |
register "ec.vin_mask" = "VIN_ALL" |
| 78 |
|
| 79 |
device pnp 2e.0 off end # Floppy |
| 80 |
device pnp 2e.1 off end # COM 1 |
| 81 |
device pnp 2e.2 off end # COM 2 |
| 82 |
device pnp 2e.3 off end # Parallel port |
| 83 |
device pnp 2e.4 on # Environment controller |
| 84 |
io 0x60 = 0xa10 |
| 85 |
io 0x62 = 0xa00 |
| 86 |
irq 0x70 = 0x00 |
| 87 |
irq 0xf0 = 0x00 |
| 88 |
irq 0xf1 = 0x00 |
| 89 |
irq 0xf2 = 0x00 |
| 90 |
irq 0xf3 = 0x00 |
| 91 |
irq 0xf4 = 0x60 |
| 92 |
irq 0xf5 = 0x00 |
| 93 |
irq 0xf6 = 0x00 |
| 94 |
end |
| 95 |
device pnp 2e.5 on # Keyboard |
| 96 |
io 0x60 = 0x060 |
| 97 |
irq 0x70 = 0x1 |
| 98 |
io 0x62 = 0x064 |
| 99 |
irq 0xf0 = 0x00 |
| 100 |
end |
| 101 |
device pnp 2e.6 on # Mouse |
| 102 |
irq 0x70 = 0x0c |
| 103 |
irq 0xf0 = 0x00 |
| 104 |
end |
| 105 |
device pnp 2e.7 on # GPIO |
| 106 |
io 0x60 = 0x000 |
| 107 |
io 0x62 = 0xa20 |
| 108 |
io 0x64 = 0xa30 |
| 109 |
irq 0xc0 = 0x01 # Simple IO Set 1 |
| 110 |
irq 0xc1 = 0x0c # Simple IO Set 2 |
| 111 |
irq 0xc2 = 0x70 # Simple IO Set 3 |
| 112 |
irq 0xc3 = 0x00 # Simple IO Set 4 |
| 113 |
irq 0xc8 = 0x01 # Simple IO Set 1 Output |
| 114 |
irq 0xc9 = 0x0c # Simple IO Set 2 Output |
| 115 |
irq 0xca = 0x00 # Simple IO Set 3 Output |
| 116 |
irq 0xcb = 0x00 # Simple IO Set 4 Output |
| 117 |
irq 0xf0 = 0x00 |
| 118 |
irq 0xf1 = 0x00 |
| 119 |
irq 0xf2 = 0x00 |
| 120 |
irq 0xf3 = 0x00 |
| 121 |
irq 0xf4 = 0x00 |
| 122 |
irq 0xf5 = 0x00 |
| 123 |
irq 0xf6 = 0x00 |
| 124 |
irq 0xf7 = 0x00 |
| 125 |
irq 0xf8 = 0x12 |
| 126 |
irq 0xf9 = 0x02 |
| 127 |
irq 0xfa = 0x13 |
| 128 |
irq 0xfb = 0x02 |
| 129 |
#irq 0xfc = 0xef # VID Input |
| 130 |
irq 0xfd = 0x00 |
| 131 |
irq 0xfe = 0x00 |
| 132 |
end |
| 133 |
device pnp 2e.a off end # CIR |
| 134 |
end |
| 135 |
end |
| 136 |
device pci 1f.2 on end # SATA (IDE: port 0-3, AHCI/RAID: 0-5) |
| 137 |
device pci 1f.3 on # SMBus |
| 138 |
chip drivers/i2c/ck505 # IDT CV194 |
| 139 |
register "mask" = "{ 0xff, 0xff, 0xff, 0x00, |
| 140 |
0xff, 0x00, 0x00, 0x00, |
| 141 |
0x00, 0xff, 0xff, 0xff, |
| 142 |
0x00, 0xff }" |
| 143 |
register "regs" = "{ 0x57, 0xd9, 0xfe, 0xff, |
| 144 |
0xff, 0x00, 0x00, 0x00, |
| 145 |
0x00, 0x24, 0x7d, 0x96, |
| 146 |
0x00, 0x9d }" |
| 147 |
device i2c 69 on end |
| 148 |
end |
| 149 |
end |
| 150 |
device pci 1f.4 off end |
| 151 |
device pci 1f.5 off end # SATA 2 (for port 4-5 in IDE mode) |
| 152 |
device pci 1f.6 off end # Thermal Subsystem |
| 153 |
end |
| 154 |
end |
| 155 |
end |