blob: 9bffafdb76e9699d3186ef6cba23d9bd5ecad1a0 [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_sx_config" = "DSX_EN_WAKE_PIN"
6
7 register "eist_enable" = "1"
8
9 # GPE configuration
10 # Note that GPE events called out in ASL code rely on this
11 # route. i.e. If this route changes then the affected GPE
12 # offset bits also need to be changed.
13 register "gpe0_dw0" = "GPP_B"
14 register "gpe0_dw1" = "GPP_D"
15 register "gpe0_dw2" = "GPP_E"
16
Maxim Polyakov1217af52019-02-25 11:06:19 +030017 # Enable DPTF
18 register "dptf_enable" = "1"
19
20 # FSP Configuration
Maxim Polyakov0de6c502019-04-03 00:44:28 +030021 register "PrimaryDisplay" = "Display_PEG"
Maxim Polyakove6a491e2019-06-26 11:17:37 +030022
Maxim Polyakov1217af52019-02-25 11:06:19 +030023 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
24 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
25 register "PmConfigSlpS3MinAssert" = "0x02"
26
27 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
28 register "PmConfigSlpS4MinAssert" = "0x04"
29
30 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
31 register "PmConfigSlpSusMinAssert" = "0x03"
32
33 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
34 register "PmConfigSlpAMinAssert" = "0x03"
35
Maxim Polyakov1217af52019-02-25 11:06:19 +030036 # PL2 override 91W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +053037 register "power_limits_config" = "{
38 .tdp_pl2_override = 91,
39 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +030040
41 # Send an extra VR mailbox command for the PS4 exit issue
42 register "SendVrMbxCmd" = "2"
43
Arthur Heymans69cd7292022-11-07 13:52:11 +010044 device cpu_cluster 0 on end
Maxim Polyakov1217af52019-02-25 11:06:19 +030045 device domain 0 on
46 device pci 00.0 on # Host Bridge
47 subsystemid 0x1849 0x191f
48 end
49 device pci 01.0 on # PEG
50 subsystemid 0x1849 0x1901
Angel Ponse18cdf42020-07-26 20:54:09 +020051 register "Peg0MaxLinkWidth" = "Peg0_x16"
Angel Ponse18cdf42020-07-26 20:54:09 +020052
53 # Configure PCIe clockgen in PCH
54 register "PcieRpClkReqSupport[0]" = "1"
55 register "PcieRpClkReqNumber[0]" = "0"
56 register "PcieRpClkSrcNumber[0]" = "0"
Maxim Polyakov1217af52019-02-25 11:06:19 +030057 end
58 device pci 02.0 on # Integrated Graphics Device
59 subsystemid 0x1849 0x1912
60 end
Maxim Polyakov0da148e2020-08-08 12:22:10 +030061 device pci 04.0 on end # Thermal Subsystem
Maxim Polyakov59613ee2019-08-23 15:16:12 +030062 device pci 08.0 off end # Gaussian Mixture Model
Maxim Polyakov1217af52019-02-25 11:06:19 +030063 device pci 14.0 on # USB xHCI
64 subsystemid 0x1849 0xa131
Angel Ponse18cdf42020-07-26 20:54:09 +020065
66 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)"
67 register "usb2_ports[1]" = "USB2_PORT_MID(OC0)"
68 register "usb2_ports[2]" = "USB2_PORT_MID(OC4)"
69 register "usb2_ports[3]" = "USB2_PORT_MID(OC4)"
70 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)"
71 register "usb2_ports[5]" = "USB2_PORT_MID(OC2)"
72 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)"
73 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)"
74 register "usb2_ports[8]" = "USB2_PORT_MID(OC0)"
75 register "usb2_ports[9]" = "USB2_PORT_MID(OC0)"
76 register "usb2_ports[10]" = "USB2_PORT_MID(OC1)"
77 register "usb2_ports[11]" = "USB2_PORT_MID(OC1)"
78 register "usb2_ports[12]" = "USB2_PORT_MID(OC_SKIP)"
79 register "usb2_ports[13]" = "USB2_PORT_MID(OC_SKIP)"
80
81 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
82 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
83 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)"
84 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)"
85 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)"
86 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC1)"
87 register "usb3_ports[6]" = "USB3_PORT_DEFAULT(OC_SKIP)"
88 register "usb3_ports[7]" = "USB3_PORT_DEFAULT(OC_SKIP)"
89 register "usb3_ports[8]" = "USB3_PORT_DEFAULT(OC_SKIP)"
90 register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC_SKIP)"
Maxim Polyakov1217af52019-02-25 11:06:19 +030091 end
92 device pci 14.1 off end # USB xDCI (OTG)
93 device pci 14.2 on # Thermal Subsystem
94 subsystemid 0x1849 0xa131
95 end
96 device pci 15.0 off end # I2C #0
97 device pci 15.1 off end # I2C #1
98 device pci 15.2 off end # I2C #2
99 device pci 15.3 off end # I2C #3
Angel Ponse18cdf42020-07-26 20:54:09 +0200100 device pci 16.0 on # Management Engine Interface 1
Maxim Polyakov1217af52019-02-25 11:06:19 +0300101 subsystemid 0x1849 0xa131
102 end
103 device pci 16.1 off end # Management Engine Interface 2
104 device pci 16.2 off end # Management Engine IDE-R
105 device pci 16.3 off end # Management Engine KT Redirection
106 device pci 16.4 off end # Management Engine Interface 3
107 device pci 17.0 on # SATA
108 subsystemid 0x1849 0xa102
Angel Ponse18cdf42020-07-26 20:54:09 +0200109 register "SataSalpSupport" = "1"
110 # SATA4 and SATA5 are located in the lower right corner of the board,
111 # but they are not populated. This is because the same PCB is used to
112 # make boards with better PCHs, which can have up to six SATA ports.
113 # However, the H110 PCH only has four SATA ports, which explains why
114 # two connectors are missing.
115 register "SataPortsEnable" = "{ \
116 [0] = 1, \
117 [1] = 1, \
118 [2] = 1, \
119 [3] = 1, \
Angel Ponse18cdf42020-07-26 20:54:09 +0200120 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300121 end
122 device pci 19.0 off end # UART #2
123 device pci 19.1 off end # I2C #5
124 device pci 19.2 off end # I2C #4
125 device pci 1c.0 on end # PCI Express Port 1
126 device pci 1c.1 off end # PCI Express Port 2
127 device pci 1c.2 off end # PCI Express Port 3
128 device pci 1c.3 off end # PCI Express Port 4
Angel Ponse18cdf42020-07-26 20:54:09 +0200129 device pci 1c.4 on # PCI Express Port 5 - PCIE slot
130 register "PcieRpEnable[4]" = "1"
131 register "PcieRpClkReqSupport[4]" = "1"
132 register "PcieRpClkReqNumber[4]" = "2"
133 register "PcieRpAdvancedErrorReporting[4]" = "1"
134 register "PcieRpLtrEnable[4]" = "1"
135 register "PcieRpClkSrcNumber[4]" = "2"
136 register "PcieRpHotPlug[4]" = "1"
137 end
138 device pci 1c.5 on # PCI Express Port 6 - Onboard LAN
139 register "PcieRpEnable[5]" = "1"
140
141 # Disable CLKREQ#, since onboard LAN is always present
142 register "PcieRpClkReqSupport[5]" = "0"
143 register "PcieRpAdvancedErrorReporting[5]" = "1"
144 register "PcieRpLtrEnable[5]" = "1"
145 register "PcieRpClkSrcNumber[5]" = "1"
146 end
147 device pci 1c.6 on # PCI Express Port 7 - PCIE slot
148 register "PcieRpEnable[6]" = "1"
149 register "PcieRpClkReqSupport[6]" = "1"
150 register "PcieRpClkReqNumber[6]" = "3"
151 register "PcieRpAdvancedErrorReporting[6]" = "1"
152 register "PcieRpLtrEnable[6]" = "1"
153 register "PcieRpClkSrcNumber[6]" = "3"
154 register "PcieRpHotPlug[6]" = "1"
155 end
Maxim Polyakov1217af52019-02-25 11:06:19 +0300156 device pci 1c.7 off end # PCI Express Port 8
157 device pci 1d.0 off end # PCI Express Port 9
158 device pci 1d.1 off end # PCI Express Port 10
159 device pci 1d.2 off end # PCI Express Port 11
160 device pci 1d.3 off end # PCI Express Port 12
161 device pci 1e.0 off end # UART #0
162 device pci 1e.1 off end # UART #1
163 device pci 1e.2 off end # GSPI #0
164 device pci 1e.3 off end # GSPI #1
165 device pci 1e.4 off end # eMMC
166 device pci 1e.5 off end # SDIO
Felix Singer52919522020-07-29 21:44:36 +0200167 device pci 1e.6 off end # SDCard
Angel Ponse18cdf42020-07-26 20:54:09 +0200168 device pci 1f.0 on # LPC bridge
Maxim Polyakov1217af52019-02-25 11:06:19 +0300169 subsystemid 0x1849 0x1a43
Maxim Polyakov66d875a2019-09-12 17:27:10 +0300170
Angel Ponse18cdf42020-07-26 20:54:09 +0200171 # Set @0x280-0x2ff I/O Range for SuperIO HWM
172 register "gen1_dec" = "0x007c0281"
173
174 # Set LPC Serial IRQ mode
175 register "serirq_mode" = "SERIRQ_CONTINUOUS"
176
Maxim Polyakovc4f77d92019-10-27 15:07:00 +0300177 chip superio/common
178 device pnp 2e.0 on # passes SIO base addr to SSDT gen
179
180 chip superio/nuvoton/nct6791d
181 device pnp 2e.1 on
182 # Global Control Registers
183 # Device IRQ Polarity
184 irq 0x13 = 0x00
185 irq 0x14 = 0x00
186 # Global Option
187 irq 0x24 = 0xfb
188 irq 0x27 = 0x10
189 # Multi Function
190 irq 0x1a = 0xb0
191 irq 0x1b = 0xe6
192 irq 0x2a = 0x04
193 irq 0x2c = 0x40
194 irq 0x2d = 0x03
195
196 # Parallel Port
197 io 0x60 = 0x0378
198 irq 0x70 = 7
199 drq 0x74 = 4 # No DMA
200 irq 0xf0 = 0x3c # Printer mode
201 end
202 device pnp 2e.2 on # UART A
203 io 0x60 = 0x03f8
204 irq 0x70 = 4
205 end
206 device pnp 2e.3 on # IR
207 io 0x60 = 0x02f8
208 irq 0x70 = 3
209 end
210 device pnp 2e.5 on # PS/2 KBC
211 io 0x60 = 0x0060
212 io 0x62 = 0x0064
213 irq 0x70 = 1 # Keyboard
214 irq 0x72 = 12 # Mouse
215 end
216 device pnp 2e.6 off end # CIR
217 device pnp 2e.7 on # GPIO6
218 irq 0xf6 = 0xff
219 irq 0xf7 = 0xff
220 irq 0xf8 = 0xff
221 end
222 device pnp 2e.107 on # GPIO7
223 irq 0xe0 = 0x7f
224 irq 0xe1 = 0x0d
225 end
226 device pnp 2e.207 on # GPIO8
227 irq 0xe6 = 0xff
228 irq 0xe7 = 0xff
229 irq 0xed = 0xff
230 end
231 device pnp 2e.8 off end # WDT
232 device pnp 2e.108 on end # GPIO0
233 device pnp 2e.308 off end # GPIO base
234 device pnp 2e.408 off end # WDTMEM
235 device pnp 2e.708 on end # GPIO1
236 device pnp 2e.9 on end # GPIO2
237 device pnp 2e.109 on # GPIO3
238 irq 0xe4 = 0x7b
239 irq 0xe5 = 0x02
240 irq 0xea = 0x04
241 end
242 device pnp 2e.209 on # GPIO4
243 irq 0xf0 = 0x7f
244 irq 0xf1 = 0x80
245 end
246 device pnp 2e.309 on # GPIO5
247 irq 0xf4 = 0xdf
248 irq 0xf5 = 0xd5
249 end
250 device pnp 2e.a on
251 # Power RAM in S3 and let the PCH
252 # handle power failure actions
253 irq 0xe4 = 0x70
254 # Set HWM reset source to LRESET#
255 irq 0xe7 = 0x01
256 end # ACPI
257 device pnp 2e.b on # HWM, LED
258 io 0x60 = 0x0290
259 io 0x62 = 0
260 irq 0x70 = 0
261 end
262 device pnp 2e.d off end # BCLK, WDT2, WDT_MEM
263 device pnp 2e.e off end # CIR wake-up
264 device pnp 2e.f off end # GPIO PP/OD
265 device pnp 2e.14 off end # SVID, Port 80 UART
266 device pnp 2e.16 off end # DS5
267 device pnp 2e.116 off end # DS3
268 device pnp 2e.316 on end # PCHDSW
269 device pnp 2e.416 off end # DSWWOPT
270 device pnp 2e.516 on end # DS3OPT
271 device pnp 2e.616 on end # DSDSS
272 device pnp 2e.716 off end # DSPU
273 end # chip superio/nuvoton/nct6791d
274
275 end # device pnp 2e.0
276 end # chip superio/common
277
Maxim Polyakov1217af52019-02-25 11:06:19 +0300278 chip drivers/pc80/tpm
279 device pnp 4e.0 on end # TPM module
280 end
281 end # LPC Interface
282 device pci 1f.1 on end # P2SB
283 device pci 1f.2 on end # Power Management Controller
Angel Ponse18cdf42020-07-26 20:54:09 +0200284 device pci 1f.3 on # Intel HDA
285 register "PchHdaVcType" = "Vc1"
Angel Ponse18cdf42020-07-26 20:54:09 +0200286 end
Maxim Polyakov1217af52019-02-25 11:06:19 +0300287 device pci 1f.4 on end # SMBus
288 device pci 1f.5 on end # PCH SPI
289 device pci 1f.6 off end # GbE
290 end
291end