blob: 3067ffe53c2b8ccec5e6a621905b0c9a00a38d35 [file] [log] [blame]
Maxim Polyakov1217af52019-02-25 11:06:19 +03001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2017 Intel Corporation.
5## Copyright (C) 2019 Maxim Polyakov <max.senia.poliak@gmail.com>
6##
7## This program is free software; you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as published by
9## the Free Software Foundation; version 2 of the License.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16
17chip soc/intel/skylake
18
19 # Enable deep Sx states
20 register "deep_s3_enable_ac" = "0"
21 register "deep_s3_enable_dc" = "0"
22 register "deep_s5_enable_ac" = "0"
23 register "deep_s5_enable_dc" = "0"
24 register "deep_sx_config" = "DSX_EN_WAKE_PIN"
25
26 register "eist_enable" = "1"
27
28 # GPE configuration
29 # Note that GPE events called out in ASL code rely on this
30 # route. i.e. If this route changes then the affected GPE
31 # offset bits also need to be changed.
32 register "gpe0_dw0" = "GPP_B"
33 register "gpe0_dw1" = "GPP_D"
34 register "gpe0_dw2" = "GPP_E"
35
36 # Enable "Intel Speed Shift Technology"
37 register "speed_shift_enable" = "1"
38
39 # Enable DPTF
40 register "dptf_enable" = "1"
41
42 # FSP Configuration
43 register "SmbusEnable" = "1"
44 register "ScsEmmcEnabled" = "0"
45 register "ScsEmmcHs400Enabled" = "0"
46 register "ScsSdCardEnabled" = "0"
47 register "HeciEnabled" = "0"
Maxim Polyakov1217af52019-02-25 11:06:19 +030048 register "SkipExtGfxScan" = "0"
Maxim Polyakov0de6c502019-04-03 00:44:28 +030049 register "PrimaryDisplay" = "Display_PEG"
Maxim Polyakov1217af52019-02-25 11:06:19 +030050 register "Device4Enable" = "1"
51 register "SaGv" = "SaGv_Enabled"
52 register "PmTimerDisabled" = "0"
53 register "EnableAzalia" = "1"
54 register "DspEnable" = "0"
55
56 register "pirqa_routing" = "PCH_IRQ11"
57 register "pirqb_routing" = "PCH_IRQ10"
58 register "pirqc_routing" = "PCH_IRQ11"
59 register "pirqd_routing" = "PCH_IRQ11"
60 register "pirqe_routing" = "PCH_IRQ11"
61 register "pirqf_routing" = "PCH_IRQ11"
62 register "pirqg_routing" = "PCH_IRQ11"
63 register "pirqh_routing" = "PCH_IRQ11"
64
Maxim Polyakove6a491e2019-06-26 11:17:37 +030065 # Set LPC Serial IRQ mode
66 register "serirq_mode" = "SERIRQ_CONTINUOUS"
67
Maxim Polyakov1217af52019-02-25 11:06:19 +030068 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
69 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
70 register "PmConfigSlpS3MinAssert" = "0x02"
71
72 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
73 register "PmConfigSlpS4MinAssert" = "0x04"
74
75 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
76 register "PmConfigSlpSusMinAssert" = "0x03"
77
78 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
79 register "PmConfigSlpAMinAssert" = "0x03"
80
81 # VR Settings Configuration for 5 Domains
82 #+----------------+-------+-------+-------------+-------------+-------+
83 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
84 #+----------------+-------+-------+-------------+-------------+-------+
85 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
86 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
87 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
88 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
89 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
90 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
91 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
92 #| IccMax | 7A | 34A | 34A | 35A | 35A |
93 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
94 #+----------------+-------+-------+-------------+-------------+-------+
95 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
96 .vr_config_enable = 1, \
97 .psi1threshold = 0x50, \
98 .psi2threshold = 0x10, \
99 .psi3threshold = 0x4, \
100 .psi3enable = 1, \
101 .psi4enable = 1, \
102 .imon_slope = 0x0, \
103 .imon_offset = 0x0, \
104 .icc_max = 0x0, \
105 .voltage_limit = 0x0 \
106 }"
107
108 register "domain_vr_config[VR_IA_CORE]" = "{
109 .vr_config_enable = 1, \
110 .psi1threshold = 0x50, \
111 .psi2threshold = 0x14, \
112 .psi3threshold = 0x4, \
113 .psi3enable = 1, \
114 .psi4enable = 1, \
115 .imon_slope = 0x0, \
116 .imon_offset = 0x0, \
117 .icc_max = 0x0, \
118 .voltage_limit = 0x0 \
119 }"
120
121 register "domain_vr_config[VR_GT_UNSLICED]" = "{
122 .vr_config_enable = 1, \
123 .psi1threshold = 0x50, \
124 .psi2threshold = 0x14, \
125 .psi3threshold = 0x4, \
126 .psi3enable = 1, \
127 .psi4enable = 1, \
128 .imon_slope = 0x0, \
129 .imon_offset = 0x0, \
130 .icc_max = 0x0 ,\
131 .voltage_limit = 0x0 \
132 }"
133
134 register "domain_vr_config[VR_GT_SLICED]" = "{
135 .vr_config_enable = 1, \
136 .psi1threshold = 0x50, \
137 .psi2threshold = 0x14, \
138 .psi3threshold = 0x4, \
139 .psi3enable = 1, \
140 .psi4enable = 1, \
141 .imon_slope = 0x0, \
142 .imon_offset = 0x0, \
143 .icc_max = 0x0, \
144 .voltage_limit = 0x0 \
145 }"
146
147 register "EnableLan" = "0"
148 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
149
150 register "PmTimerDisabled" = "0"
151
152 # USB
153 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)"
154 register "usb2_ports[1]" = "USB2_PORT_MID(OC0)"
155 register "usb2_ports[2]" = "USB2_PORT_MID(OC4)"
156 register "usb2_ports[3]" = "USB2_PORT_MID(OC4)"
157 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)"
158 register "usb2_ports[5]" = "USB2_PORT_MID(OC2)"
159 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)"
160 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)"
161 register "usb2_ports[8]" = "USB2_PORT_MID(OC0)"
162 register "usb2_ports[9]" = "USB2_PORT_MID(OC0)"
163 register "usb2_ports[10]" = "USB2_PORT_MID(OC1)"
164 register "usb2_ports[11]" = "USB2_PORT_MID(OC1)"
165 register "usb2_ports[12]" = "USB2_PORT_MID(OC_SKIP)"
166 register "usb2_ports[13]" = "USB2_PORT_MID(OC_SKIP)"
167 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
168 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
169 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)"
170 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)"
171 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)"
172 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC1)"
173 register "usb3_ports[6]" = "USB3_PORT_DEFAULT(OC_SKIP)"
174 register "usb3_ports[7]" = "USB3_PORT_DEFAULT(OC_SKIP)"
175 register "usb3_ports[8]" = "USB3_PORT_DEFAULT(OC_SKIP)"
176 register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC_SKIP)"
177
178 # SATA
179 register "EnableSata" = "1"
180 register "SataSalpSupport" = "1"
181 register "SataPortsEnable" = "{ \
182 [0] = 1, \
183 [1] = 1, \
184 [2] = 1, \
185 [3] = 1, \
186 [4] = 1, \
187 [5] = 1, \
188 [6] = 1, \
189 [7] = 1, \
190 }"
191
192 # PCH UART, SPI, I2C
193 register "SerialIoDevMode" = "{ \
194 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
195 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
196 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
197 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
198 [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \
199 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
200 [PchSerialIoIndexSpi0] = PchSerialIoPci, \
201 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
202 [PchSerialIoIndexUart0] = PchSerialIoDisabled, \
203 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
204 [PchSerialIoIndexUart2] = PchSerialIoDisabled, \
205 }"
206
Maxim Polyakov16a11812019-03-18 10:50:01 +0300207 # Set params for PEG 0:1:0
208 register "Peg0MaxLinkWidth" = "Peg0_x16"
209 # Configure PCIe clockgen in PCH
210 # PEG0 uses SRCCLKREQ0 and CLKSRC0
211 register "PcieRpClkReqSupport[0]" = "1"
212 register "PcieRpClkReqNumber[0]" = "0"
213 register "PcieRpClkSrcNumber[0]" = "0"
214
Maxim Polyakov1217af52019-02-25 11:06:19 +0300215 # Enable Root port 6(x1) for LAN.
216 register "PcieRpEnable[5]" = "1"
217 # Enable CLKREQ#
218 register "PcieRpClkReqSupport[5]" = "1"
219 # Use SRCCLKREQ1#
220 register "PcieRpClkReqNumber[5]" = "1"
221 # Enable Advanced Error Reporting
222 register "PcieRpAdvancedErrorReporting[5]" = "1"
223 # Enable Latency Tolerance Reporting Mechanism
224 register "PcieRpLtrEnable[5]" = "1"
225 # Use CLK SRC 1
226 register "PcieRpClkSrcNumber[5]" = "1"
227
228 # Enable Root port 5 (x1) for PCIE slot.
229 register "PcieRpEnable[4]" = "1"
230 # Enable CLKREQ#
231 register "PcieRpClkReqSupport[4]" = "1"
232 # Use SRCCLKREQ2#
233 register "PcieRpClkReqNumber[4]" = "2"
234 # Enable Advanced Error Reporting
235 register "PcieRpAdvancedErrorReporting[4]" = "1"
236 # Enable Latency Tolerance Reporting Mechanism
237 register "PcieRpLtrEnable[4]" = "1"
238 # Use CLK SRC 2
239 register "PcieRpClkSrcNumber[4]" = "2"
240 # Use Hot Plug subsystem
241 register "PcieRpHotPlug[4]" = "1"
242
243 # Enable Root port 7(x1) for PCIE slot.
244 register "PcieRpEnable[6]" = "1"
245 # Enable CLKREQ#
246 register "PcieRpClkReqSupport[6]" = "1"
247 # Use SRCCLKREQ3#
248 register "PcieRpClkReqNumber[6]" = "3"
249 # Enable Advanced Error Reporting
250 register "PcieRpAdvancedErrorReporting[6]" = "1"
251 # Enable Latency Tolerance Reporting Mechanism
252 register "PcieRpLtrEnable[6]" = "1"
253 # Use CLK SRC 3
254 register "PcieRpClkSrcNumber[6]" = "3"
255 # Use Hot Plug subsystem
256 register "PcieRpHotPlug[6]" = "1"
257
258 # PL2 override 91W
259 register "tdp_pl2_override" = "91"
260
261 # Send an extra VR mailbox command for the PS4 exit issue
262 register "SendVrMbxCmd" = "2"
263
264 device cpu_cluster 0 on
265 device lapic 0 on end
266 end
267 device domain 0 on
268 device pci 00.0 on # Host Bridge
269 subsystemid 0x1849 0x191f
270 end
271 device pci 01.0 on # PEG
272 subsystemid 0x1849 0x1901
273 end
274 device pci 02.0 on # Integrated Graphics Device
275 subsystemid 0x1849 0x1912
276 end
277 device pci 14.0 on # USB xHCI
278 subsystemid 0x1849 0xa131
279 end
280 device pci 14.1 off end # USB xDCI (OTG)
281 device pci 14.2 on # Thermal Subsystem
282 subsystemid 0x1849 0xa131
283 end
284 device pci 15.0 off end # I2C #0
285 device pci 15.1 off end # I2C #1
286 device pci 15.2 off end # I2C #2
287 device pci 15.3 off end # I2C #3
288 device pci 16.0 on # Management Engine Interface 1
289 subsystemid 0x1849 0xa131
290 end
291 device pci 16.1 off end # Management Engine Interface 2
292 device pci 16.2 off end # Management Engine IDE-R
293 device pci 16.3 off end # Management Engine KT Redirection
294 device pci 16.4 off end # Management Engine Interface 3
295 device pci 17.0 on # SATA
296 subsystemid 0x1849 0xa102
297 end
298 device pci 19.0 off end # UART #2
299 device pci 19.1 off end # I2C #5
300 device pci 19.2 off end # I2C #4
301 device pci 1c.0 on end # PCI Express Port 1
302 device pci 1c.1 off end # PCI Express Port 2
303 device pci 1c.2 off end # PCI Express Port 3
304 device pci 1c.3 off end # PCI Express Port 4
305 device pci 1c.4 on end # PCI Express Port 5
306 device pci 1c.5 on end # PCI Express Port 6
307 device pci 1c.6 on end # PCI Express Port 7
308 device pci 1c.7 off end # PCI Express Port 8
309 device pci 1d.0 off end # PCI Express Port 9
310 device pci 1d.1 off end # PCI Express Port 10
311 device pci 1d.2 off end # PCI Express Port 11
312 device pci 1d.3 off end # PCI Express Port 12
313 device pci 1e.0 off end # UART #0
314 device pci 1e.1 off end # UART #1
315 device pci 1e.2 off end # GSPI #0
316 device pci 1e.3 off end # GSPI #1
317 device pci 1e.4 off end # eMMC
318 device pci 1e.5 off end # SDIO
319 device pci 1e.6 off end # SDCard
320 device pci 1f.0 on # LPC bridge
321 subsystemid 0x1849 0x1a43
322 chip superio/nuvoton/nct6791d
323 device pnp 2e.0 off end # Floppy
324 device pnp 2e.1 on # Parallel
325 # global
326 irq 0x1c = 0x10
327 irq 0x27 = 0x10
328 irq 0x2a = 0x64
329 # parallel port
330 io 0x60 = 0x0378
331 irq 0x70 = 7
332 drq 0x74 = 4 # No DMA
333 irq 0xf0 = 0x3c # Printer mode
334 end
335 device pnp 2e.2 on # UART A
336 io 0x60 = 0x03f8
337 irq 0x70 = 4
338 end
339 device pnp 2e.3 on # IR
340 io 0x60 = 0x02f8
341 irq 0x70 = 3
342 end
343 device pnp 2e.5 on # PS/2 KBC
344 io 0x60 = 0x0060
345 io 0x62 = 0x0064
346 irq 0x70 = 1 # Keyboard
347 irq 0x72 = 12 # Mouse
348 end
349 device pnp 2e.6 off end # CIR
Maxim Polyakovdd1181032019-04-10 10:43:16 +0300350 device pnp 2e.7 off end # GPIO6
351 device pnp 2e.107 off end # GPIO7
352 device pnp 2e.207 off end # GPIO8
353 device pnp 2e.8 off end # WDT
354 device pnp 2e.108 off end # GPIO0
355 device pnp 2e.308 off end # GPIO base
356 device pnp 2e.408 off end # WDTMEM
357 device pnp 2e.708 off end # GPIO1
358 device pnp 2e.9 off end # GPIO2
359 device pnp 2e.109 off end # GPIO3
360 device pnp 2e.209 off end # GPIO4
361 device pnp 2e.309 off end # GPIO5
Maxim Polyakov1217af52019-02-25 11:06:19 +0300362 device pnp 2e.a off end # ACPI
363 device pnp 2e.b on # HWM, LED
364 io 0x60 = 0x0290
365 io 0x62 = 0
366 irq 0x70 = 0
367 end
368 device pnp 2e.d off end # BCLK, WDT2, WDT_MEM
369 device pnp 2e.e off end # CIR wake-up
370 device pnp 2e.f off end # GPIO PP/OD
371 device pnp 2e.14 off end # SVID, Port 80 UART
Maxim Polyakovdd1181032019-04-10 10:43:16 +0300372 device pnp 2e.16 off end # DS5
373 device pnp 2e.116 off end # DS3
374 device pnp 2e.316 off end # PCHDSW
375 device pnp 2e.416 off end # DSWWOPT
376 device pnp 2e.516 off end # DS3OPT
377 device pnp 2e.616 off end # DSDSS
378 device pnp 2e.716 off end # DSPU
Maxim Polyakov1217af52019-02-25 11:06:19 +0300379 end # superio/nuvoton/nct6791d
380 chip drivers/pc80/tpm
381 device pnp 4e.0 on end # TPM module
382 end
383 end # LPC Interface
384 device pci 1f.1 on end # P2SB
385 device pci 1f.2 on end # Power Management Controller
386 device pci 1f.3 on end # Intel HDA
387 device pci 1f.4 on end # SMBus
388 device pci 1f.5 on end # PCH SPI
389 device pci 1f.6 off end # GbE
390 end
391end