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