blob: 9e2fca02e52feff90c6c0306b0695d0fdd137b81 [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"
48 register "InternalGfx" = "1"
49 register "SkipExtGfxScan" = "0"
50 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
65 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
66 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
67 register "PmConfigSlpS3MinAssert" = "0x02"
68
69 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
70 register "PmConfigSlpS4MinAssert" = "0x04"
71
72 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
73 register "PmConfigSlpSusMinAssert" = "0x03"
74
75 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
76 register "PmConfigSlpAMinAssert" = "0x03"
77
78 # VR Settings Configuration for 5 Domains
79 #+----------------+-------+-------+-------------+-------------+-------+
80 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
81 #+----------------+-------+-------+-------------+-------------+-------+
82 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
83 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
84 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
85 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
86 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
87 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
88 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
89 #| IccMax | 7A | 34A | 34A | 35A | 35A |
90 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
91 #+----------------+-------+-------+-------------+-------------+-------+
92 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
93 .vr_config_enable = 1, \
94 .psi1threshold = 0x50, \
95 .psi2threshold = 0x10, \
96 .psi3threshold = 0x4, \
97 .psi3enable = 1, \
98 .psi4enable = 1, \
99 .imon_slope = 0x0, \
100 .imon_offset = 0x0, \
101 .icc_max = 0x0, \
102 .voltage_limit = 0x0 \
103 }"
104
105 register "domain_vr_config[VR_IA_CORE]" = "{
106 .vr_config_enable = 1, \
107 .psi1threshold = 0x50, \
108 .psi2threshold = 0x14, \
109 .psi3threshold = 0x4, \
110 .psi3enable = 1, \
111 .psi4enable = 1, \
112 .imon_slope = 0x0, \
113 .imon_offset = 0x0, \
114 .icc_max = 0x0, \
115 .voltage_limit = 0x0 \
116 }"
117
118 register "domain_vr_config[VR_GT_UNSLICED]" = "{
119 .vr_config_enable = 1, \
120 .psi1threshold = 0x50, \
121 .psi2threshold = 0x14, \
122 .psi3threshold = 0x4, \
123 .psi3enable = 1, \
124 .psi4enable = 1, \
125 .imon_slope = 0x0, \
126 .imon_offset = 0x0, \
127 .icc_max = 0x0 ,\
128 .voltage_limit = 0x0 \
129 }"
130
131 register "domain_vr_config[VR_GT_SLICED]" = "{
132 .vr_config_enable = 1, \
133 .psi1threshold = 0x50, \
134 .psi2threshold = 0x14, \
135 .psi3threshold = 0x4, \
136 .psi3enable = 1, \
137 .psi4enable = 1, \
138 .imon_slope = 0x0, \
139 .imon_offset = 0x0, \
140 .icc_max = 0x0, \
141 .voltage_limit = 0x0 \
142 }"
143
144 register "EnableLan" = "0"
145 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
146
147 register "PmTimerDisabled" = "0"
148
149 # USB
150 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)"
151 register "usb2_ports[1]" = "USB2_PORT_MID(OC0)"
152 register "usb2_ports[2]" = "USB2_PORT_MID(OC4)"
153 register "usb2_ports[3]" = "USB2_PORT_MID(OC4)"
154 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)"
155 register "usb2_ports[5]" = "USB2_PORT_MID(OC2)"
156 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)"
157 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)"
158 register "usb2_ports[8]" = "USB2_PORT_MID(OC0)"
159 register "usb2_ports[9]" = "USB2_PORT_MID(OC0)"
160 register "usb2_ports[10]" = "USB2_PORT_MID(OC1)"
161 register "usb2_ports[11]" = "USB2_PORT_MID(OC1)"
162 register "usb2_ports[12]" = "USB2_PORT_MID(OC_SKIP)"
163 register "usb2_ports[13]" = "USB2_PORT_MID(OC_SKIP)"
164 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
165 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
166 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)"
167 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)"
168 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)"
169 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC1)"
170 register "usb3_ports[6]" = "USB3_PORT_DEFAULT(OC_SKIP)"
171 register "usb3_ports[7]" = "USB3_PORT_DEFAULT(OC_SKIP)"
172 register "usb3_ports[8]" = "USB3_PORT_DEFAULT(OC_SKIP)"
173 register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC_SKIP)"
174
175 # SATA
176 register "EnableSata" = "1"
177 register "SataSalpSupport" = "1"
178 register "SataPortsEnable" = "{ \
179 [0] = 1, \
180 [1] = 1, \
181 [2] = 1, \
182 [3] = 1, \
183 [4] = 1, \
184 [5] = 1, \
185 [6] = 1, \
186 [7] = 1, \
187 }"
188
189 # PCH UART, SPI, I2C
190 register "SerialIoDevMode" = "{ \
191 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
192 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
193 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
194 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
195 [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \
196 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
197 [PchSerialIoIndexSpi0] = PchSerialIoPci, \
198 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
199 [PchSerialIoIndexUart0] = PchSerialIoDisabled, \
200 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
201 [PchSerialIoIndexUart2] = PchSerialIoDisabled, \
202 }"
203
204 # Enable Root port 6(x1) for LAN.
205 register "PcieRpEnable[5]" = "1"
206 # Enable CLKREQ#
207 register "PcieRpClkReqSupport[5]" = "1"
208 # Use SRCCLKREQ1#
209 register "PcieRpClkReqNumber[5]" = "1"
210 # Enable Advanced Error Reporting
211 register "PcieRpAdvancedErrorReporting[5]" = "1"
212 # Enable Latency Tolerance Reporting Mechanism
213 register "PcieRpLtrEnable[5]" = "1"
214 # Use CLK SRC 1
215 register "PcieRpClkSrcNumber[5]" = "1"
216
217 # Enable Root port 5 (x1) for PCIE slot.
218 register "PcieRpEnable[4]" = "1"
219 # Enable CLKREQ#
220 register "PcieRpClkReqSupport[4]" = "1"
221 # Use SRCCLKREQ2#
222 register "PcieRpClkReqNumber[4]" = "2"
223 # Enable Advanced Error Reporting
224 register "PcieRpAdvancedErrorReporting[4]" = "1"
225 # Enable Latency Tolerance Reporting Mechanism
226 register "PcieRpLtrEnable[4]" = "1"
227 # Use CLK SRC 2
228 register "PcieRpClkSrcNumber[4]" = "2"
229 # Use Hot Plug subsystem
230 register "PcieRpHotPlug[4]" = "1"
231
232 # Enable Root port 7(x1) for PCIE slot.
233 register "PcieRpEnable[6]" = "1"
234 # Enable CLKREQ#
235 register "PcieRpClkReqSupport[6]" = "1"
236 # Use SRCCLKREQ3#
237 register "PcieRpClkReqNumber[6]" = "3"
238 # Enable Advanced Error Reporting
239 register "PcieRpAdvancedErrorReporting[6]" = "1"
240 # Enable Latency Tolerance Reporting Mechanism
241 register "PcieRpLtrEnable[6]" = "1"
242 # Use CLK SRC 3
243 register "PcieRpClkSrcNumber[6]" = "3"
244 # Use Hot Plug subsystem
245 register "PcieRpHotPlug[6]" = "1"
246
247 # PL2 override 91W
248 register "tdp_pl2_override" = "91"
249
250 # Send an extra VR mailbox command for the PS4 exit issue
251 register "SendVrMbxCmd" = "2"
252
253 device cpu_cluster 0 on
254 device lapic 0 on end
255 end
256 device domain 0 on
257 device pci 00.0 on # Host Bridge
258 subsystemid 0x1849 0x191f
259 end
260 device pci 01.0 on # PEG
261 subsystemid 0x1849 0x1901
262 end
263 device pci 02.0 on # Integrated Graphics Device
264 subsystemid 0x1849 0x1912
265 end
266 device pci 14.0 on # USB xHCI
267 subsystemid 0x1849 0xa131
268 end
269 device pci 14.1 off end # USB xDCI (OTG)
270 device pci 14.2 on # Thermal Subsystem
271 subsystemid 0x1849 0xa131
272 end
273 device pci 15.0 off end # I2C #0
274 device pci 15.1 off end # I2C #1
275 device pci 15.2 off end # I2C #2
276 device pci 15.3 off end # I2C #3
277 device pci 16.0 on # Management Engine Interface 1
278 subsystemid 0x1849 0xa131
279 end
280 device pci 16.1 off end # Management Engine Interface 2
281 device pci 16.2 off end # Management Engine IDE-R
282 device pci 16.3 off end # Management Engine KT Redirection
283 device pci 16.4 off end # Management Engine Interface 3
284 device pci 17.0 on # SATA
285 subsystemid 0x1849 0xa102
286 end
287 device pci 19.0 off end # UART #2
288 device pci 19.1 off end # I2C #5
289 device pci 19.2 off end # I2C #4
290 device pci 1c.0 on end # PCI Express Port 1
291 device pci 1c.1 off end # PCI Express Port 2
292 device pci 1c.2 off end # PCI Express Port 3
293 device pci 1c.3 off end # PCI Express Port 4
294 device pci 1c.4 on end # PCI Express Port 5
295 device pci 1c.5 on end # PCI Express Port 6
296 device pci 1c.6 on end # PCI Express Port 7
297 device pci 1c.7 off end # PCI Express Port 8
298 device pci 1d.0 off end # PCI Express Port 9
299 device pci 1d.1 off end # PCI Express Port 10
300 device pci 1d.2 off end # PCI Express Port 11
301 device pci 1d.3 off end # PCI Express Port 12
302 device pci 1e.0 off end # UART #0
303 device pci 1e.1 off end # UART #1
304 device pci 1e.2 off end # GSPI #0
305 device pci 1e.3 off end # GSPI #1
306 device pci 1e.4 off end # eMMC
307 device pci 1e.5 off end # SDIO
308 device pci 1e.6 off end # SDCard
309 device pci 1f.0 on # LPC bridge
310 subsystemid 0x1849 0x1a43
311 chip superio/nuvoton/nct6791d
312 device pnp 2e.0 off end # Floppy
313 device pnp 2e.1 on # Parallel
314 # global
315 irq 0x1c = 0x10
316 irq 0x27 = 0x10
317 irq 0x2a = 0x64
318 # parallel port
319 io 0x60 = 0x0378
320 irq 0x70 = 7
321 drq 0x74 = 4 # No DMA
322 irq 0xf0 = 0x3c # Printer mode
323 end
324 device pnp 2e.2 on # UART A
325 io 0x60 = 0x03f8
326 irq 0x70 = 4
327 end
328 device pnp 2e.3 on # IR
329 io 0x60 = 0x02f8
330 irq 0x70 = 3
331 end
332 device pnp 2e.5 on # PS/2 KBC
333 io 0x60 = 0x0060
334 io 0x62 = 0x0064
335 irq 0x70 = 1 # Keyboard
336 irq 0x72 = 12 # Mouse
337 end
338 device pnp 2e.6 off end # CIR
339 device pnp 2e.7 off end # GPIO6..8
340 # WDT1, WDT_MEM, GPIO 0, GPIO 1
341 device pnp 2e.8 off end
342 # GPIO 2, GPIO 3, GPIO 4, GPIO 5
343 device pnp 2e.9 off end
344 device pnp 2e.a off end # ACPI
345 device pnp 2e.b on # HWM, LED
346 io 0x60 = 0x0290
347 io 0x62 = 0
348 irq 0x70 = 0
349 end
350 device pnp 2e.d off end # BCLK, WDT2, WDT_MEM
351 device pnp 2e.e off end # CIR wake-up
352 device pnp 2e.f off end # GPIO PP/OD
353 device pnp 2e.14 off end # SVID, Port 80 UART
354 device pnp 2e.16 off end # Deep sleep
355 end # superio/nuvoton/nct6791d
356 chip drivers/pc80/tpm
357 device pnp 4e.0 on end # TPM module
358 end
359 end # LPC Interface
360 device pci 1f.1 on end # P2SB
361 device pci 1f.2 on end # Power Management Controller
362 device pci 1f.3 on end # Intel HDA
363 device pci 1f.4 on end # SMBus
364 device pci 1f.5 on end # PCH SPI
365 device pci 1f.6 off end # GbE
366 end
367end