blob: a6d16f9cdf2f29cb4e43dfe9def0e91ec203f570 [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
Felix Singerf69386e2023-10-23 08:53:48 +020046 device ref system_agent on
Maxim Polyakov1217af52019-02-25 11:06:19 +030047 subsystemid 0x1849 0x191f
48 end
Felix Singerf69386e2023-10-23 08:53:48 +020049 device ref peg0 on
Maxim Polyakov1217af52019-02-25 11:06:19 +030050 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
Felix Singerf69386e2023-10-23 08:53:48 +020058 device ref igpu on
Maxim Polyakov1217af52019-02-25 11:06:19 +030059 subsystemid 0x1849 0x1912
60 end
Felix Singerf69386e2023-10-23 08:53:48 +020061 device ref sa_thermal on end
62 device ref south_xhci on
Maxim Polyakov1217af52019-02-25 11:06:19 +030063 subsystemid 0x1849 0xa131
Angel Ponse18cdf42020-07-26 20:54:09 +020064
Felix Singerc4b846f2023-10-23 08:23:05 +020065 register "usb2_ports" = "{
66 [0] = USB2_PORT_MID(OC0),
67 [1] = USB2_PORT_MID(OC0),
68 [2] = USB2_PORT_MID(OC4),
69 [3] = USB2_PORT_MID(OC4),
70 [4] = USB2_PORT_MID(OC2),
71 [5] = USB2_PORT_MID(OC2),
72 [6] = USB2_PORT_MID(OC0),
73 [7] = USB2_PORT_MID(OC0),
74 [8] = USB2_PORT_MID(OC0),
75 [9] = USB2_PORT_MID(OC0),
76 [10] = USB2_PORT_MID(OC1),
77 [11] = USB2_PORT_MID(OC1),
78 [12] = USB2_PORT_MID(OC_SKIP),
79 [13] = USB2_PORT_MID(OC_SKIP),
80 }"
81 register "usb3_ports" = "{
82 [0] = USB3_PORT_DEFAULT(OC0),
83 [1] = USB3_PORT_DEFAULT(OC0),
84 [2] = USB3_PORT_DEFAULT(OC3),
85 [3] = USB3_PORT_DEFAULT(OC3),
86 [4] = USB3_PORT_DEFAULT(OC1),
87 [5] = USB3_PORT_DEFAULT(OC1),
88 [6] = USB3_PORT_DEFAULT(OC_SKIP),
89 [7] = USB3_PORT_DEFAULT(OC_SKIP),
90 [8] = USB3_PORT_DEFAULT(OC_SKIP),
91 [9] = USB3_PORT_DEFAULT(OC_SKIP),
92 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +030093 end
Felix Singerf69386e2023-10-23 08:53:48 +020094 device ref thermal on
Maxim Polyakov1217af52019-02-25 11:06:19 +030095 subsystemid 0x1849 0xa131
96 end
Felix Singerf69386e2023-10-23 08:53:48 +020097 device ref heci1 on
Maxim Polyakov1217af52019-02-25 11:06:19 +030098 subsystemid 0x1849 0xa131
99 end
Felix Singerf69386e2023-10-23 08:53:48 +0200100 device ref sata on
Maxim Polyakov1217af52019-02-25 11:06:19 +0300101 subsystemid 0x1849 0xa102
Angel Ponse18cdf42020-07-26 20:54:09 +0200102 register "SataSalpSupport" = "1"
103 # SATA4 and SATA5 are located in the lower right corner of the board,
104 # but they are not populated. This is because the same PCB is used to
105 # make boards with better PCHs, which can have up to six SATA ports.
106 # However, the H110 PCH only has four SATA ports, which explains why
107 # two connectors are missing.
Felix Singer21b5a9a2023-10-23 07:26:28 +0200108 register "SataPortsEnable" = "{
109 [0] = 1,
110 [1] = 1,
111 [2] = 1,
112 [3] = 1,
Angel Ponse18cdf42020-07-26 20:54:09 +0200113 }"
Maxim Polyakov1217af52019-02-25 11:06:19 +0300114 end
Felix Singerf69386e2023-10-23 08:53:48 +0200115 device ref pcie_rp1 on end
116 device ref pcie_rp5 on
Angel Ponse18cdf42020-07-26 20:54:09 +0200117 register "PcieRpEnable[4]" = "1"
118 register "PcieRpClkReqSupport[4]" = "1"
119 register "PcieRpClkReqNumber[4]" = "2"
120 register "PcieRpAdvancedErrorReporting[4]" = "1"
121 register "PcieRpLtrEnable[4]" = "1"
122 register "PcieRpClkSrcNumber[4]" = "2"
123 register "PcieRpHotPlug[4]" = "1"
124 end
Felix Singerf69386e2023-10-23 08:53:48 +0200125 device ref pcie_rp6 on
Angel Ponse18cdf42020-07-26 20:54:09 +0200126 register "PcieRpEnable[5]" = "1"
127
128 # Disable CLKREQ#, since onboard LAN is always present
129 register "PcieRpClkReqSupport[5]" = "0"
130 register "PcieRpAdvancedErrorReporting[5]" = "1"
131 register "PcieRpLtrEnable[5]" = "1"
132 register "PcieRpClkSrcNumber[5]" = "1"
133 end
Felix Singerf69386e2023-10-23 08:53:48 +0200134 device ref pcie_rp7 on
Angel Ponse18cdf42020-07-26 20:54:09 +0200135 register "PcieRpEnable[6]" = "1"
136 register "PcieRpClkReqSupport[6]" = "1"
137 register "PcieRpClkReqNumber[6]" = "3"
138 register "PcieRpAdvancedErrorReporting[6]" = "1"
139 register "PcieRpLtrEnable[6]" = "1"
140 register "PcieRpClkSrcNumber[6]" = "3"
141 register "PcieRpHotPlug[6]" = "1"
142 end
Felix Singerf69386e2023-10-23 08:53:48 +0200143 device ref lpc_espi on
Maxim Polyakov1217af52019-02-25 11:06:19 +0300144 subsystemid 0x1849 0x1a43
Maxim Polyakov66d875a2019-09-12 17:27:10 +0300145
Angel Ponse18cdf42020-07-26 20:54:09 +0200146 # Set @0x280-0x2ff I/O Range for SuperIO HWM
147 register "gen1_dec" = "0x007c0281"
148
149 # Set LPC Serial IRQ mode
150 register "serirq_mode" = "SERIRQ_CONTINUOUS"
151
Maxim Polyakovc4f77d92019-10-27 15:07:00 +0300152 chip superio/common
153 device pnp 2e.0 on # passes SIO base addr to SSDT gen
154
155 chip superio/nuvoton/nct6791d
156 device pnp 2e.1 on
157 # Global Control Registers
158 # Device IRQ Polarity
159 irq 0x13 = 0x00
160 irq 0x14 = 0x00
161 # Global Option
162 irq 0x24 = 0xfb
163 irq 0x27 = 0x10
164 # Multi Function
165 irq 0x1a = 0xb0
166 irq 0x1b = 0xe6
167 irq 0x2a = 0x04
168 irq 0x2c = 0x40
169 irq 0x2d = 0x03
170
171 # Parallel Port
172 io 0x60 = 0x0378
173 irq 0x70 = 7
174 drq 0x74 = 4 # No DMA
175 irq 0xf0 = 0x3c # Printer mode
176 end
177 device pnp 2e.2 on # UART A
178 io 0x60 = 0x03f8
179 irq 0x70 = 4
180 end
181 device pnp 2e.3 on # IR
182 io 0x60 = 0x02f8
183 irq 0x70 = 3
184 end
185 device pnp 2e.5 on # PS/2 KBC
186 io 0x60 = 0x0060
187 io 0x62 = 0x0064
188 irq 0x70 = 1 # Keyboard
189 irq 0x72 = 12 # Mouse
190 end
191 device pnp 2e.6 off end # CIR
192 device pnp 2e.7 on # GPIO6
193 irq 0xf6 = 0xff
194 irq 0xf7 = 0xff
195 irq 0xf8 = 0xff
196 end
197 device pnp 2e.107 on # GPIO7
198 irq 0xe0 = 0x7f
199 irq 0xe1 = 0x0d
200 end
201 device pnp 2e.207 on # GPIO8
202 irq 0xe6 = 0xff
203 irq 0xe7 = 0xff
204 irq 0xed = 0xff
205 end
206 device pnp 2e.8 off end # WDT
207 device pnp 2e.108 on end # GPIO0
208 device pnp 2e.308 off end # GPIO base
209 device pnp 2e.408 off end # WDTMEM
210 device pnp 2e.708 on end # GPIO1
211 device pnp 2e.9 on end # GPIO2
212 device pnp 2e.109 on # GPIO3
213 irq 0xe4 = 0x7b
214 irq 0xe5 = 0x02
215 irq 0xea = 0x04
216 end
217 device pnp 2e.209 on # GPIO4
218 irq 0xf0 = 0x7f
219 irq 0xf1 = 0x80
220 end
221 device pnp 2e.309 on # GPIO5
222 irq 0xf4 = 0xdf
223 irq 0xf5 = 0xd5
224 end
225 device pnp 2e.a on
226 # Power RAM in S3 and let the PCH
227 # handle power failure actions
228 irq 0xe4 = 0x70
229 # Set HWM reset source to LRESET#
230 irq 0xe7 = 0x01
231 end # ACPI
232 device pnp 2e.b on # HWM, LED
233 io 0x60 = 0x0290
234 io 0x62 = 0
235 irq 0x70 = 0
236 end
237 device pnp 2e.d off end # BCLK, WDT2, WDT_MEM
238 device pnp 2e.e off end # CIR wake-up
239 device pnp 2e.f off end # GPIO PP/OD
240 device pnp 2e.14 off end # SVID, Port 80 UART
241 device pnp 2e.16 off end # DS5
242 device pnp 2e.116 off end # DS3
243 device pnp 2e.316 on end # PCHDSW
244 device pnp 2e.416 off end # DSWWOPT
245 device pnp 2e.516 on end # DS3OPT
246 device pnp 2e.616 on end # DSDSS
247 device pnp 2e.716 off end # DSPU
248 end # chip superio/nuvoton/nct6791d
249
250 end # device pnp 2e.0
251 end # chip superio/common
252
Maxim Polyakov1217af52019-02-25 11:06:19 +0300253 chip drivers/pc80/tpm
254 device pnp 4e.0 on end # TPM module
255 end
Felix Singerf69386e2023-10-23 08:53:48 +0200256 end
257 device ref hda on
Angel Ponse18cdf42020-07-26 20:54:09 +0200258 register "PchHdaVcType" = "Vc1"
Angel Ponse18cdf42020-07-26 20:54:09 +0200259 end
Felix Singerf69386e2023-10-23 08:53:48 +0200260 device ref smbus on end
261 device ref fast_spi on end
Maxim Polyakov1217af52019-02-25 11:06:19 +0300262 end
263end