blob: 1e74f0c7c8e7c9d13ac60c44c46bce8f13e2996e [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
Felix Singerc4b846f2023-10-23 08:23:05 +020066 register "usb2_ports" = "{
67 [0] = USB2_PORT_MID(OC0),
68 [1] = USB2_PORT_MID(OC0),
69 [2] = USB2_PORT_MID(OC4),
70 [3] = USB2_PORT_MID(OC4),
71 [4] = USB2_PORT_MID(OC2),
72 [5] = USB2_PORT_MID(OC2),
73 [6] = USB2_PORT_MID(OC0),
74 [7] = USB2_PORT_MID(OC0),
75 [8] = USB2_PORT_MID(OC0),
76 [9] = USB2_PORT_MID(OC0),
77 [10] = USB2_PORT_MID(OC1),
78 [11] = USB2_PORT_MID(OC1),
79 [12] = USB2_PORT_MID(OC_SKIP),
80 [13] = USB2_PORT_MID(OC_SKIP),
81 }"
82 register "usb3_ports" = "{
83 [0] = USB3_PORT_DEFAULT(OC0),
84 [1] = USB3_PORT_DEFAULT(OC0),
85 [2] = USB3_PORT_DEFAULT(OC3),
86 [3] = USB3_PORT_DEFAULT(OC3),
87 [4] = USB3_PORT_DEFAULT(OC1),
88 [5] = USB3_PORT_DEFAULT(OC1),
89 [6] = USB3_PORT_DEFAULT(OC_SKIP),
90 [7] = USB3_PORT_DEFAULT(OC_SKIP),
91 [8] = USB3_PORT_DEFAULT(OC_SKIP),
92 [9] = USB3_PORT_DEFAULT(OC_SKIP),
93 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +030094 end
95 device pci 14.1 off end # USB xDCI (OTG)
96 device pci 14.2 on # Thermal Subsystem
97 subsystemid 0x1849 0xa131
98 end
99 device pci 15.0 off end # I2C #0
100 device pci 15.1 off end # I2C #1
101 device pci 15.2 off end # I2C #2
102 device pci 15.3 off end # I2C #3
Angel Ponse18cdf42020-07-26 20:54:09 +0200103 device pci 16.0 on # Management Engine Interface 1
Maxim Polyakov1217af52019-02-25 11:06:19 +0300104 subsystemid 0x1849 0xa131
105 end
106 device pci 16.1 off end # Management Engine Interface 2
107 device pci 16.2 off end # Management Engine IDE-R
108 device pci 16.3 off end # Management Engine KT Redirection
109 device pci 16.4 off end # Management Engine Interface 3
110 device pci 17.0 on # SATA
111 subsystemid 0x1849 0xa102
Angel Ponse18cdf42020-07-26 20:54:09 +0200112 register "SataSalpSupport" = "1"
113 # SATA4 and SATA5 are located in the lower right corner of the board,
114 # but they are not populated. This is because the same PCB is used to
115 # make boards with better PCHs, which can have up to six SATA ports.
116 # However, the H110 PCH only has four SATA ports, which explains why
117 # two connectors are missing.
Felix Singer21b5a9a2023-10-23 07:26:28 +0200118 register "SataPortsEnable" = "{
119 [0] = 1,
120 [1] = 1,
121 [2] = 1,
122 [3] = 1,
Angel Ponse18cdf42020-07-26 20:54:09 +0200123 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300124 end
125 device pci 19.0 off end # UART #2
126 device pci 19.1 off end # I2C #5
127 device pci 19.2 off end # I2C #4
128 device pci 1c.0 on end # PCI Express Port 1
129 device pci 1c.1 off end # PCI Express Port 2
130 device pci 1c.2 off end # PCI Express Port 3
131 device pci 1c.3 off end # PCI Express Port 4
Angel Ponse18cdf42020-07-26 20:54:09 +0200132 device pci 1c.4 on # PCI Express Port 5 - PCIE slot
133 register "PcieRpEnable[4]" = "1"
134 register "PcieRpClkReqSupport[4]" = "1"
135 register "PcieRpClkReqNumber[4]" = "2"
136 register "PcieRpAdvancedErrorReporting[4]" = "1"
137 register "PcieRpLtrEnable[4]" = "1"
138 register "PcieRpClkSrcNumber[4]" = "2"
139 register "PcieRpHotPlug[4]" = "1"
140 end
141 device pci 1c.5 on # PCI Express Port 6 - Onboard LAN
142 register "PcieRpEnable[5]" = "1"
143
144 # Disable CLKREQ#, since onboard LAN is always present
145 register "PcieRpClkReqSupport[5]" = "0"
146 register "PcieRpAdvancedErrorReporting[5]" = "1"
147 register "PcieRpLtrEnable[5]" = "1"
148 register "PcieRpClkSrcNumber[5]" = "1"
149 end
150 device pci 1c.6 on # PCI Express Port 7 - PCIE slot
151 register "PcieRpEnable[6]" = "1"
152 register "PcieRpClkReqSupport[6]" = "1"
153 register "PcieRpClkReqNumber[6]" = "3"
154 register "PcieRpAdvancedErrorReporting[6]" = "1"
155 register "PcieRpLtrEnable[6]" = "1"
156 register "PcieRpClkSrcNumber[6]" = "3"
157 register "PcieRpHotPlug[6]" = "1"
158 end
Maxim Polyakov1217af52019-02-25 11:06:19 +0300159 device pci 1c.7 off end # PCI Express Port 8
160 device pci 1d.0 off end # PCI Express Port 9
161 device pci 1d.1 off end # PCI Express Port 10
162 device pci 1d.2 off end # PCI Express Port 11
163 device pci 1d.3 off end # PCI Express Port 12
164 device pci 1e.0 off end # UART #0
165 device pci 1e.1 off end # UART #1
166 device pci 1e.2 off end # GSPI #0
167 device pci 1e.3 off end # GSPI #1
168 device pci 1e.4 off end # eMMC
169 device pci 1e.5 off end # SDIO
Felix Singer52919522020-07-29 21:44:36 +0200170 device pci 1e.6 off end # SDCard
Angel Ponse18cdf42020-07-26 20:54:09 +0200171 device pci 1f.0 on # LPC bridge
Maxim Polyakov1217af52019-02-25 11:06:19 +0300172 subsystemid 0x1849 0x1a43
Maxim Polyakov66d875a2019-09-12 17:27:10 +0300173
Angel Ponse18cdf42020-07-26 20:54:09 +0200174 # Set @0x280-0x2ff I/O Range for SuperIO HWM
175 register "gen1_dec" = "0x007c0281"
176
177 # Set LPC Serial IRQ mode
178 register "serirq_mode" = "SERIRQ_CONTINUOUS"
179
Maxim Polyakovc4f77d92019-10-27 15:07:00 +0300180 chip superio/common
181 device pnp 2e.0 on # passes SIO base addr to SSDT gen
182
183 chip superio/nuvoton/nct6791d
184 device pnp 2e.1 on
185 # Global Control Registers
186 # Device IRQ Polarity
187 irq 0x13 = 0x00
188 irq 0x14 = 0x00
189 # Global Option
190 irq 0x24 = 0xfb
191 irq 0x27 = 0x10
192 # Multi Function
193 irq 0x1a = 0xb0
194 irq 0x1b = 0xe6
195 irq 0x2a = 0x04
196 irq 0x2c = 0x40
197 irq 0x2d = 0x03
198
199 # Parallel Port
200 io 0x60 = 0x0378
201 irq 0x70 = 7
202 drq 0x74 = 4 # No DMA
203 irq 0xf0 = 0x3c # Printer mode
204 end
205 device pnp 2e.2 on # UART A
206 io 0x60 = 0x03f8
207 irq 0x70 = 4
208 end
209 device pnp 2e.3 on # IR
210 io 0x60 = 0x02f8
211 irq 0x70 = 3
212 end
213 device pnp 2e.5 on # PS/2 KBC
214 io 0x60 = 0x0060
215 io 0x62 = 0x0064
216 irq 0x70 = 1 # Keyboard
217 irq 0x72 = 12 # Mouse
218 end
219 device pnp 2e.6 off end # CIR
220 device pnp 2e.7 on # GPIO6
221 irq 0xf6 = 0xff
222 irq 0xf7 = 0xff
223 irq 0xf8 = 0xff
224 end
225 device pnp 2e.107 on # GPIO7
226 irq 0xe0 = 0x7f
227 irq 0xe1 = 0x0d
228 end
229 device pnp 2e.207 on # GPIO8
230 irq 0xe6 = 0xff
231 irq 0xe7 = 0xff
232 irq 0xed = 0xff
233 end
234 device pnp 2e.8 off end # WDT
235 device pnp 2e.108 on end # GPIO0
236 device pnp 2e.308 off end # GPIO base
237 device pnp 2e.408 off end # WDTMEM
238 device pnp 2e.708 on end # GPIO1
239 device pnp 2e.9 on end # GPIO2
240 device pnp 2e.109 on # GPIO3
241 irq 0xe4 = 0x7b
242 irq 0xe5 = 0x02
243 irq 0xea = 0x04
244 end
245 device pnp 2e.209 on # GPIO4
246 irq 0xf0 = 0x7f
247 irq 0xf1 = 0x80
248 end
249 device pnp 2e.309 on # GPIO5
250 irq 0xf4 = 0xdf
251 irq 0xf5 = 0xd5
252 end
253 device pnp 2e.a on
254 # Power RAM in S3 and let the PCH
255 # handle power failure actions
256 irq 0xe4 = 0x70
257 # Set HWM reset source to LRESET#
258 irq 0xe7 = 0x01
259 end # ACPI
260 device pnp 2e.b on # HWM, LED
261 io 0x60 = 0x0290
262 io 0x62 = 0
263 irq 0x70 = 0
264 end
265 device pnp 2e.d off end # BCLK, WDT2, WDT_MEM
266 device pnp 2e.e off end # CIR wake-up
267 device pnp 2e.f off end # GPIO PP/OD
268 device pnp 2e.14 off end # SVID, Port 80 UART
269 device pnp 2e.16 off end # DS5
270 device pnp 2e.116 off end # DS3
271 device pnp 2e.316 on end # PCHDSW
272 device pnp 2e.416 off end # DSWWOPT
273 device pnp 2e.516 on end # DS3OPT
274 device pnp 2e.616 on end # DSDSS
275 device pnp 2e.716 off end # DSPU
276 end # chip superio/nuvoton/nct6791d
277
278 end # device pnp 2e.0
279 end # chip superio/common
280
Maxim Polyakov1217af52019-02-25 11:06:19 +0300281 chip drivers/pc80/tpm
282 device pnp 4e.0 on end # TPM module
283 end
284 end # LPC Interface
285 device pci 1f.1 on end # P2SB
286 device pci 1f.2 on end # Power Management Controller
Angel Ponse18cdf42020-07-26 20:54:09 +0200287 device pci 1f.3 on # Intel HDA
288 register "PchHdaVcType" = "Vc1"
Angel Ponse18cdf42020-07-26 20:54:09 +0200289 end
Maxim Polyakov1217af52019-02-25 11:06:19 +0300290 device pci 1f.4 on end # SMBus
291 device pci 1f.5 on end # PCH SPI
292 device pci 1f.6 off end # GbE
293 end
294end