blob: 68ef2a40443484b4817f09fd81d531c69dfb0e0b [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Maxim Polyakov1217af52019-02-25 11:06:19 +03002
3chip soc/intel/skylake
4
Maxim Polyakov1217af52019-02-25 11:06:19 +03005 register "deep_s3_enable_ac" = "0"
6 register "deep_s3_enable_dc" = "0"
7 register "deep_s5_enable_ac" = "0"
8 register "deep_s5_enable_dc" = "0"
9 register "deep_sx_config" = "DSX_EN_WAKE_PIN"
10
11 register "eist_enable" = "1"
12
13 # GPE configuration
14 # Note that GPE events called out in ASL code rely on this
15 # route. i.e. If this route changes then the affected GPE
16 # offset bits also need to be changed.
17 register "gpe0_dw0" = "GPP_B"
18 register "gpe0_dw1" = "GPP_D"
19 register "gpe0_dw2" = "GPP_E"
20
21 # Enable "Intel Speed Shift Technology"
22 register "speed_shift_enable" = "1"
23
24 # Enable DPTF
25 register "dptf_enable" = "1"
26
27 # FSP Configuration
Maxim Polyakov0de6c502019-04-03 00:44:28 +030028 register "PrimaryDisplay" = "Display_PEG"
Maxim Polyakov1217af52019-02-25 11:06:19 +030029 register "SaGv" = "SaGv_Enabled"
30 register "PmTimerDisabled" = "0"
Maxim Polyakove6a491e2019-06-26 11:17:37 +030031
Maxim Polyakov1217af52019-02-25 11:06:19 +030032 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
33 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
34 register "PmConfigSlpS3MinAssert" = "0x02"
35
36 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
37 register "PmConfigSlpS4MinAssert" = "0x04"
38
39 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
40 register "PmConfigSlpSusMinAssert" = "0x03"
41
42 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
43 register "PmConfigSlpAMinAssert" = "0x03"
44
Maxim Polyakov3a286732019-10-27 15:07:00 +030045 # VR Settings Configuration
46 #+----------------+-------+-------+-------------+-------+
47 #| Domain/Setting | SA | IA | GT Unsliced | GT |
48 #+----------------+-------+-------+-------------+-------+
49 #| Psi1Threshold | 20A | 20A | 20A | 20A |
50 #| Psi2Threshold | 4A | 5A | 5A | 5A |
51 #| Psi3Threshold | 1A | 1A | 1A | 1A |
52 #| Psi3Enable | 1 | 1 | 1 | 1 |
53 #| Psi4Enable | 1 | 1 | 1 | 1 |
54 #| ImonSlope | 0 | 0 | 0 | 0 |
55 #| ImonOffset | 0 | 0 | 0 | 0 |
56 #| IccMax* | 0 | 0 | 0 | 0 |
57 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
58 #+----------------+-------+-------+-------------+-------+
59 # * - is set automatically in the vr_config.c
Maxim Polyakov1217af52019-02-25 11:06:19 +030060 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
61 .vr_config_enable = 1, \
Maxim Polyakov6342c932019-08-21 14:47:59 +030062 .psi1threshold = VR_CFG_AMP(20), \
63 .psi2threshold = VR_CFG_AMP(4), \
64 .psi3threshold = VR_CFG_AMP(1), \
Maxim Polyakov1217af52019-02-25 11:06:19 +030065 .psi3enable = 1, \
66 .psi4enable = 1, \
67 .imon_slope = 0x0, \
68 .imon_offset = 0x0, \
69 .icc_max = 0x0, \
Maxim Polyakova546f112019-08-21 14:21:03 +030070 .voltage_limit = 1520 \
Maxim Polyakov1217af52019-02-25 11:06:19 +030071 }"
72
73 register "domain_vr_config[VR_IA_CORE]" = "{
74 .vr_config_enable = 1, \
Maxim Polyakov6342c932019-08-21 14:47:59 +030075 .psi1threshold = VR_CFG_AMP(20), \
76 .psi2threshold = VR_CFG_AMP(5), \
77 .psi3threshold = VR_CFG_AMP(1), \
Maxim Polyakov1217af52019-02-25 11:06:19 +030078 .psi3enable = 1, \
79 .psi4enable = 1, \
80 .imon_slope = 0x0, \
81 .imon_offset = 0x0, \
82 .icc_max = 0x0, \
Maxim Polyakova546f112019-08-21 14:21:03 +030083 .voltage_limit = 1520 \
Maxim Polyakov1217af52019-02-25 11:06:19 +030084 }"
85
86 register "domain_vr_config[VR_GT_UNSLICED]" = "{
87 .vr_config_enable = 1, \
Maxim Polyakov6342c932019-08-21 14:47:59 +030088 .psi1threshold = VR_CFG_AMP(20), \
89 .psi2threshold = VR_CFG_AMP(5), \
90 .psi3threshold = VR_CFG_AMP(1), \
Maxim Polyakov1217af52019-02-25 11:06:19 +030091 .psi3enable = 1, \
92 .psi4enable = 1, \
93 .imon_slope = 0x0, \
94 .imon_offset = 0x0, \
95 .icc_max = 0x0 ,\
Maxim Polyakova546f112019-08-21 14:21:03 +030096 .voltage_limit = 1520 \
Maxim Polyakov1217af52019-02-25 11:06:19 +030097 }"
98
99 register "domain_vr_config[VR_GT_SLICED]" = "{
100 .vr_config_enable = 1, \
Maxim Polyakov6342c932019-08-21 14:47:59 +0300101 .psi1threshold = VR_CFG_AMP(20), \
102 .psi2threshold = VR_CFG_AMP(5), \
103 .psi3threshold = VR_CFG_AMP(1), \
Maxim Polyakov1217af52019-02-25 11:06:19 +0300104 .psi3enable = 1, \
105 .psi4enable = 1, \
106 .imon_slope = 0x0, \
107 .imon_offset = 0x0, \
108 .icc_max = 0x0, \
Maxim Polyakova546f112019-08-21 14:21:03 +0300109 .voltage_limit = 1520 \
Maxim Polyakov1217af52019-02-25 11:06:19 +0300110 }"
111
Maxim Polyakov1217af52019-02-25 11:06:19 +0300112 # PCH UART, SPI, I2C
113 register "SerialIoDevMode" = "{ \
Maxim Polyakova433da72019-08-21 16:29:07 +0300114 [PchSerialIoIndexI2C0] = PchSerialIoDisabled, \
115 [PchSerialIoIndexI2C1] = PchSerialIoDisabled, \
Maxim Polyakov1217af52019-02-25 11:06:19 +0300116 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
117 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
118 [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \
119 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
Maxim Polyakova433da72019-08-21 16:29:07 +0300120 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
Maxim Polyakov1217af52019-02-25 11:06:19 +0300121 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
122 [PchSerialIoIndexUart0] = PchSerialIoDisabled, \
123 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
124 [PchSerialIoIndexUart2] = PchSerialIoDisabled, \
125 }"
126
Maxim Polyakov1217af52019-02-25 11:06:19 +0300127 # PL2 override 91W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530128 register "power_limits_config" = "{
129 .tdp_pl2_override = 91,
130 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300131
132 # Send an extra VR mailbox command for the PS4 exit issue
133 register "SendVrMbxCmd" = "2"
134
135 device cpu_cluster 0 on
136 device lapic 0 on end
137 end
138 device domain 0 on
139 device pci 00.0 on # Host Bridge
140 subsystemid 0x1849 0x191f
141 end
142 device pci 01.0 on # PEG
143 subsystemid 0x1849 0x1901
Angel Ponse18cdf42020-07-26 20:54:09 +0200144 register "Peg0MaxLinkWidth" = "Peg0_x16"
145 register "SkipExtGfxScan" = "0"
146
147 # Configure PCIe clockgen in PCH
148 register "PcieRpClkReqSupport[0]" = "1"
149 register "PcieRpClkReqNumber[0]" = "0"
150 register "PcieRpClkSrcNumber[0]" = "0"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300151 end
152 device pci 02.0 on # Integrated Graphics Device
153 subsystemid 0x1849 0x1912
154 end
Angel Ponse18cdf42020-07-26 20:54:09 +0200155 device pci 04.0 on # Thermal Subsystem
156 register "Device4Enable" = "1"
157 end
Maxim Polyakov59613ee2019-08-23 15:16:12 +0300158 device pci 08.0 off end # Gaussian Mixture Model
Maxim Polyakov1217af52019-02-25 11:06:19 +0300159 device pci 14.0 on # USB xHCI
160 subsystemid 0x1849 0xa131
Angel Ponse18cdf42020-07-26 20:54:09 +0200161
162 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)"
163 register "usb2_ports[1]" = "USB2_PORT_MID(OC0)"
164 register "usb2_ports[2]" = "USB2_PORT_MID(OC4)"
165 register "usb2_ports[3]" = "USB2_PORT_MID(OC4)"
166 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)"
167 register "usb2_ports[5]" = "USB2_PORT_MID(OC2)"
168 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)"
169 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)"
170 register "usb2_ports[8]" = "USB2_PORT_MID(OC0)"
171 register "usb2_ports[9]" = "USB2_PORT_MID(OC0)"
172 register "usb2_ports[10]" = "USB2_PORT_MID(OC1)"
173 register "usb2_ports[11]" = "USB2_PORT_MID(OC1)"
174 register "usb2_ports[12]" = "USB2_PORT_MID(OC_SKIP)"
175 register "usb2_ports[13]" = "USB2_PORT_MID(OC_SKIP)"
176
177 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
178 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
179 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)"
180 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)"
181 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)"
182 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC1)"
183 register "usb3_ports[6]" = "USB3_PORT_DEFAULT(OC_SKIP)"
184 register "usb3_ports[7]" = "USB3_PORT_DEFAULT(OC_SKIP)"
185 register "usb3_ports[8]" = "USB3_PORT_DEFAULT(OC_SKIP)"
186 register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC_SKIP)"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300187 end
188 device pci 14.1 off end # USB xDCI (OTG)
189 device pci 14.2 on # Thermal Subsystem
190 subsystemid 0x1849 0xa131
191 end
192 device pci 15.0 off end # I2C #0
193 device pci 15.1 off end # I2C #1
194 device pci 15.2 off end # I2C #2
195 device pci 15.3 off end # I2C #3
Angel Ponse18cdf42020-07-26 20:54:09 +0200196 device pci 16.0 on # Management Engine Interface 1
Maxim Polyakov1217af52019-02-25 11:06:19 +0300197 subsystemid 0x1849 0xa131
Angel Ponse18cdf42020-07-26 20:54:09 +0200198
199 # FIXME: does not match devicetree!
200 register "HeciEnabled" = "0"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300201 end
202 device pci 16.1 off end # Management Engine Interface 2
203 device pci 16.2 off end # Management Engine IDE-R
204 device pci 16.3 off end # Management Engine KT Redirection
205 device pci 16.4 off end # Management Engine Interface 3
206 device pci 17.0 on # SATA
207 subsystemid 0x1849 0xa102
Angel Ponse18cdf42020-07-26 20:54:09 +0200208 register "SataSalpSupport" = "1"
209 # SATA4 and SATA5 are located in the lower right corner of the board,
210 # but they are not populated. This is because the same PCB is used to
211 # make boards with better PCHs, which can have up to six SATA ports.
212 # However, the H110 PCH only has four SATA ports, which explains why
213 # two connectors are missing.
214 register "SataPortsEnable" = "{ \
215 [0] = 1, \
216 [1] = 1, \
217 [2] = 1, \
218 [3] = 1, \
219 [4] = 0, \
220 [5] = 0, \
221 [6] = 0, \
222 [7] = 0, \
223 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300224 end
225 device pci 19.0 off end # UART #2
226 device pci 19.1 off end # I2C #5
227 device pci 19.2 off end # I2C #4
228 device pci 1c.0 on end # PCI Express Port 1
229 device pci 1c.1 off end # PCI Express Port 2
230 device pci 1c.2 off end # PCI Express Port 3
231 device pci 1c.3 off end # PCI Express Port 4
Angel Ponse18cdf42020-07-26 20:54:09 +0200232 device pci 1c.4 on # PCI Express Port 5 - PCIE slot
233 register "PcieRpEnable[4]" = "1"
234 register "PcieRpClkReqSupport[4]" = "1"
235 register "PcieRpClkReqNumber[4]" = "2"
236 register "PcieRpAdvancedErrorReporting[4]" = "1"
237 register "PcieRpLtrEnable[4]" = "1"
238 register "PcieRpClkSrcNumber[4]" = "2"
239 register "PcieRpHotPlug[4]" = "1"
240 end
241 device pci 1c.5 on # PCI Express Port 6 - Onboard LAN
242 register "PcieRpEnable[5]" = "1"
243
244 # Disable CLKREQ#, since onboard LAN is always present
245 register "PcieRpClkReqSupport[5]" = "0"
246 register "PcieRpAdvancedErrorReporting[5]" = "1"
247 register "PcieRpLtrEnable[5]" = "1"
248 register "PcieRpClkSrcNumber[5]" = "1"
249 end
250 device pci 1c.6 on # PCI Express Port 7 - PCIE slot
251 register "PcieRpEnable[6]" = "1"
252 register "PcieRpClkReqSupport[6]" = "1"
253 register "PcieRpClkReqNumber[6]" = "3"
254 register "PcieRpAdvancedErrorReporting[6]" = "1"
255 register "PcieRpLtrEnable[6]" = "1"
256 register "PcieRpClkSrcNumber[6]" = "3"
257 register "PcieRpHotPlug[6]" = "1"
258 end
Maxim Polyakov1217af52019-02-25 11:06:19 +0300259 device pci 1c.7 off end # PCI Express Port 8
260 device pci 1d.0 off end # PCI Express Port 9
261 device pci 1d.1 off end # PCI Express Port 10
262 device pci 1d.2 off end # PCI Express Port 11
263 device pci 1d.3 off end # PCI Express Port 12
264 device pci 1e.0 off end # UART #0
265 device pci 1e.1 off end # UART #1
266 device pci 1e.2 off end # GSPI #0
267 device pci 1e.3 off end # GSPI #1
268 device pci 1e.4 off end # eMMC
269 device pci 1e.5 off end # SDIO
Angel Ponse18cdf42020-07-26 20:54:09 +0200270 device pci 1e.6 off # SDCard
271 register "ScsSdCardEnabled" = "0"
272 end
273 device pci 1f.0 on # LPC bridge
Maxim Polyakov1217af52019-02-25 11:06:19 +0300274 subsystemid 0x1849 0x1a43
Maxim Polyakov66d875a2019-09-12 17:27:10 +0300275
Angel Ponse18cdf42020-07-26 20:54:09 +0200276 # Set @0x280-0x2ff I/O Range for SuperIO HWM
277 register "gen1_dec" = "0x007c0281"
278
279 # Set LPC Serial IRQ mode
280 register "serirq_mode" = "SERIRQ_CONTINUOUS"
281
Maxim Polyakovc4f77d92019-10-27 15:07:00 +0300282 chip superio/common
283 device pnp 2e.0 on # passes SIO base addr to SSDT gen
284
285 chip superio/nuvoton/nct6791d
286 device pnp 2e.1 on
287 # Global Control Registers
288 # Device IRQ Polarity
289 irq 0x13 = 0x00
290 irq 0x14 = 0x00
291 # Global Option
292 irq 0x24 = 0xfb
293 irq 0x27 = 0x10
294 # Multi Function
295 irq 0x1a = 0xb0
296 irq 0x1b = 0xe6
297 irq 0x2a = 0x04
298 irq 0x2c = 0x40
299 irq 0x2d = 0x03
300
301 # Parallel Port
302 io 0x60 = 0x0378
303 irq 0x70 = 7
304 drq 0x74 = 4 # No DMA
305 irq 0xf0 = 0x3c # Printer mode
306 end
307 device pnp 2e.2 on # UART A
308 io 0x60 = 0x03f8
309 irq 0x70 = 4
310 end
311 device pnp 2e.3 on # IR
312 io 0x60 = 0x02f8
313 irq 0x70 = 3
314 end
315 device pnp 2e.5 on # PS/2 KBC
316 io 0x60 = 0x0060
317 io 0x62 = 0x0064
318 irq 0x70 = 1 # Keyboard
319 irq 0x72 = 12 # Mouse
320 end
321 device pnp 2e.6 off end # CIR
322 device pnp 2e.7 on # GPIO6
323 irq 0xf6 = 0xff
324 irq 0xf7 = 0xff
325 irq 0xf8 = 0xff
326 end
327 device pnp 2e.107 on # GPIO7
328 irq 0xe0 = 0x7f
329 irq 0xe1 = 0x0d
330 end
331 device pnp 2e.207 on # GPIO8
332 irq 0xe6 = 0xff
333 irq 0xe7 = 0xff
334 irq 0xed = 0xff
335 end
336 device pnp 2e.8 off end # WDT
337 device pnp 2e.108 on end # GPIO0
338 device pnp 2e.308 off end # GPIO base
339 device pnp 2e.408 off end # WDTMEM
340 device pnp 2e.708 on end # GPIO1
341 device pnp 2e.9 on end # GPIO2
342 device pnp 2e.109 on # GPIO3
343 irq 0xe4 = 0x7b
344 irq 0xe5 = 0x02
345 irq 0xea = 0x04
346 end
347 device pnp 2e.209 on # GPIO4
348 irq 0xf0 = 0x7f
349 irq 0xf1 = 0x80
350 end
351 device pnp 2e.309 on # GPIO5
352 irq 0xf4 = 0xdf
353 irq 0xf5 = 0xd5
354 end
355 device pnp 2e.a on
356 # Power RAM in S3 and let the PCH
357 # handle power failure actions
358 irq 0xe4 = 0x70
359 # Set HWM reset source to LRESET#
360 irq 0xe7 = 0x01
361 end # ACPI
362 device pnp 2e.b on # HWM, LED
363 io 0x60 = 0x0290
364 io 0x62 = 0
365 irq 0x70 = 0
366 end
367 device pnp 2e.d off end # BCLK, WDT2, WDT_MEM
368 device pnp 2e.e off end # CIR wake-up
369 device pnp 2e.f off end # GPIO PP/OD
370 device pnp 2e.14 off end # SVID, Port 80 UART
371 device pnp 2e.16 off end # DS5
372 device pnp 2e.116 off end # DS3
373 device pnp 2e.316 on end # PCHDSW
374 device pnp 2e.416 off end # DSWWOPT
375 device pnp 2e.516 on end # DS3OPT
376 device pnp 2e.616 on end # DSDSS
377 device pnp 2e.716 off end # DSPU
378 end # chip superio/nuvoton/nct6791d
379
380 end # device pnp 2e.0
381 end # chip superio/common
382
Maxim Polyakov1217af52019-02-25 11:06:19 +0300383 chip drivers/pc80/tpm
384 device pnp 4e.0 on end # TPM module
385 end
386 end # LPC Interface
387 device pci 1f.1 on end # P2SB
388 device pci 1f.2 on end # Power Management Controller
Angel Ponse18cdf42020-07-26 20:54:09 +0200389 device pci 1f.3 on # Intel HDA
390 register "PchHdaVcType" = "Vc1"
391 register "DspEnable" = "0"
392 end
Maxim Polyakov1217af52019-02-25 11:06:19 +0300393 device pci 1f.4 on end # SMBus
394 device pci 1f.5 on end # PCH SPI
395 device pci 1f.6 off end # GbE
396 end
397end