blob: 4811a4149152e88556178187fb7460161229107e [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +08002
3chip soc/intel/skylake
4
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +08005 register "deep_s5_enable_ac" = "0"
6 register "deep_s5_enable_dc" = "0"
7 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
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
17 # Enable "Intel Speed Shift Technology"
18 register "speed_shift_enable" = "1"
19
20 # FSP Configuration
21 register "EnableAzalia" = "1"
22 register "DspEnable" = "1"
23 register "IoBufferOwnership" = "3"
24 register "SmbusEnable" = "1"
25 register "ScsEmmcEnabled" = "0"
26 register "ScsEmmcHs400Enabled" = "0"
27 register "ScsSdCardEnabled" = "0"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080028 register "SkipExtGfxScan" = "1"
29 register "Device4Enable" = "0"
30 register "Heci3Enabled" = "0"
31
Praveen Hodagatta Praneshaa6a8fb2019-10-29 14:47:11 +080032 register "SaGv" = "SaGv_Enabled"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080033 register "PmTimerDisabled" = "0"
34
35 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
36 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
37 register "PmConfigSlpS3MinAssert" = "0x02"
38
39 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
40 register "PmConfigSlpS4MinAssert" = "0x04"
41
42 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
43 register "PmConfigSlpSusMinAssert" = "0x03"
44
45 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
46 register "PmConfigSlpAMinAssert" = "0x03"
47
Nico Huber44e89af2019-02-23 19:24:51 +010048 register "serirq_mode" = "SERIRQ_CONTINUOUS"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080049
Praveen Hodagatta Pranesh55e5cb82019-10-30 10:14:23 +080050 # Lock Down
51 register "common_soc_config" = "{
52 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
53 }"
54
Michael Niewöhner5e779f92019-10-09 21:02:36 +020055 # VR Settings Configuration for 4 Domains
56 #+----------------+-----------+-----------+-------------+----------+
57 #| Domain/Setting | SA | IA | GT Unsliced | GT |
58 #+----------------+-----------+-----------+-------------+----------+
59 #| Psi1Threshold | 20A | 20A | 20A | 20A |
60 #| Psi2Threshold | 4A | 5A | 5A | 5A |
61 #| Psi3Threshold | 1A | 1A | 1A | 1A |
62 #| Psi3Enable | 1 | 1 | 1 | 1 |
63 #| Psi4Enable | 1 | 1 | 1 | 1 |
64 #| ImonSlope | 0 | 0 | 0 | 0 |
65 #| ImonOffset | 0 | 0 | 0 | 0 |
66 #| IccMax | 7A | 34A | 35A | 35A |
67 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
68 #+----------------+-----------+-----------+-------------+----------+
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080069 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020070 .vr_config_enable = 1,
71 .psi1threshold = VR_CFG_AMP(20),
72 .psi2threshold = VR_CFG_AMP(4),
73 .psi3threshold = VR_CFG_AMP(1),
74 .psi3enable = 1,
75 .psi4enable = 1,
76 .imon_slope = 0x0,
77 .imon_offset = 0x0,
78 .icc_max = VR_CFG_AMP(7),
79 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080080 }"
81
82 register "domain_vr_config[VR_IA_CORE]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020083 .vr_config_enable = 1,
84 .psi1threshold = VR_CFG_AMP(20),
85 .psi2threshold = VR_CFG_AMP(5),
86 .psi3threshold = VR_CFG_AMP(1),
87 .psi3enable = 1,
88 .psi4enable = 1,
89 .imon_slope = 0x0,
90 .imon_offset = 0x0,
91 .icc_max = VR_CFG_AMP(34),
92 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080093 }"
94
95 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020096 .vr_config_enable = 1,
97 .psi1threshold = VR_CFG_AMP(20),
98 .psi2threshold = VR_CFG_AMP(5),
99 .psi3threshold = VR_CFG_AMP(1),
100 .psi3enable = 1,
101 .psi4enable = 1,
102 .imon_slope = 0x0,
103 .imon_offset = 0x0,
104 .icc_max = VR_CFG_AMP(35),
105 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800106 }"
107
108 register "domain_vr_config[VR_GT_SLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +0200109 .vr_config_enable = 1,
110 .psi1threshold = VR_CFG_AMP(20),
111 .psi2threshold = VR_CFG_AMP(5),
112 .psi3threshold = VR_CFG_AMP(1),
113 .psi3enable = 1,
114 .psi4enable = 1,
115 .imon_slope = 0x0,
116 .imon_offset = 0x0,
117 .icc_max = VR_CFG_AMP(35),
118 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800119 }"
120
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800121 # Enable x1 slot
122 register "PcieRpEnable[7]" = "1"
123 register "PcieRpClkReqSupport[7]" = "1"
124 register "PcieRpClkReqNumber[7]" = "3" #uses SRCCLKREQ3
125
126 # Enable x4 slot
127 register "PcieRpEnable[8]" = "1"
128 register "PcieRpClkReqSupport[8]" = "1"
129 register "PcieRpClkReqNumber[8]" = "4" #uses SRCCLKREQ4
130
131 # Enable Root port 6 and 13.
132 register "PcieRpEnable[5]" = "1"
133 register "PcieRpEnable[12]" = "1"
134
135 # Enable CLKREQ#
136 register "PcieRpClkReqSupport[5]" = "1"
137 register "PcieRpClkReqSupport[12]" = "1"
138
139 # RP 6 uses SRCCLKREQ1# while RP `3 uses SRCCLKREQ2#
140 register "PcieRpClkReqNumber[5]" = "0"
141 register "PcieRpClkReqNumber[12]" = "1"
142
143 register "EnableLan" = "1"
144
145 # USB related
146 register "SsicPortEnable" = "1"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800147
148 register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # OTG
149 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # Touch Pad
150 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # M.2 BT
151 register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Touch Panel
152 register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN
153 register "usb2_ports[5]" = "USB2_PORT_MID(OC0)" # Front Panel
154 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)" # Front Panel
155 register "usb2_ports[7]" = "USB2_PORT_MID(OC2)" # Stacked conn (lan + usb)
156 register "usb2_ports[8]" = "USB2_PORT_MID(OC2)" # Stacked conn (lan + usb)
157 register "usb2_ports[9]" = "USB2_PORT_MID(OC1)" # LAN MAGJACK
158 register "usb2_ports[10]" = "USB2_PORT_MID(OC1)" # LAN MAGJACK
159 register "usb2_ports[11]" = "USB2_PORT_MID(OC_SKIP)" # Finger print sensor
160 register "usb2_ports[12]" = "USB2_PORT_MID(OC4)" # USB 2 stack conn
161 register "usb2_ports[13]" = "USB2_PORT_MID(OC4)" # USB 2 stack conn
162
163 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC5)" # OTG
164 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 WWAN
165 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" # Flex
166 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # IVCAM
167 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)" # LAN MAGJACK
168 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC0)" # Front Panel
169 register "usb3_ports[6]" = "USB3_PORT_DEFAULT(OC0)" # Front Panel
170 register "usb3_ports[7]" = "USB3_PORT_DEFAULT(OC2)" # Stack Conn
171 register "usb3_ports[8]" = "USB3_PORT_DEFAULT(OC2)" # Stack Conn
172 register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC1)" # LAN MAGJACK
173
174 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
175
176 # Must leave UART0 enabled or SD/eMMC will not work as PCI
177
178 register "pirqa_routing" = "0x0b"
179 register "pirqb_routing" = "0x0a"
180 register "pirqc_routing" = "0x0b"
181 register "pirqd_routing" = "0x0b"
182 register "pirqe_routing" = "0x0b"
183 register "pirqf_routing" = "0x0b"
184 register "pirqg_routing" = "0x0b"
185 register "pirqh_routing" = "0x0b"
186
187 register "PmTimerDisabled" = "0"
188
189 register "EnableSata" = "1"
190 register "SataSalpSupport" = "1"
191 register "SataPortsEnable" = "{ \
192 [0] = 1, \
193 [1] = 1, \
194 [2] = 1, \
195 [3] = 1, \
196 [4] = 1, \
197 [5] = 1, \
198 [6] = 1, \
199 [7] = 1, \
200 }"
201 register "SerialIoDevMode" = "{ \
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200202 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
203 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
204 [PchSerialIoIndexI2C2] = PchSerialIoPci, \
205 [PchSerialIoIndexI2C3] = PchSerialIoPci, \
206 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
207 [PchSerialIoIndexI2C5] = PchSerialIoPci, \
208 [PchSerialIoIndexSpi0] = PchSerialIoPci, \
209 [PchSerialIoIndexSpi1] = PchSerialIoPci, \
210 [PchSerialIoIndexUart0] = PchSerialIoPci, \
211 [PchSerialIoIndexUart1] = PchSerialIoPci, \
212 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800213 }"
214
215 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530216 register "power_limits_config" = "{
217 .tdp_pl2_override = 25,
218 }"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800219
220 # Send an extra VR mailbox command for the PS4 exit issue
221 register "SendVrMbxCmd" = "2"
222
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800223 # Use default SD card detect GPIO configuration
224 #register "sdcard_cd_gpio_default" = "GPP_A7"
225
226 device cpu_cluster 0 on
227 device lapic 0 on end
228 end
229 device domain 0 on
230 device pci 00.0 on end # Host Bridge
231 device pci 02.0 on end # Integrated Graphics Device
232 device pci 14.0 on end # USB xHCI
233 device pci 14.1 off end # USB xDCI (OTG)
234 device pci 14.2 on end # Thermal Subsystem
235 device pci 15.0 on end # I2C #0
236 device pci 15.1 on end # I2C #1
237 device pci 15.2 on end # I2C #2
238 device pci 15.3 on end # I2C #3
239 device pci 16.0 on end # Management Engine Interface 1
240 device pci 16.1 off end # Management Engine Interface 2
241 device pci 16.2 off end # Management Engine IDE-R
242 device pci 16.3 off end # Management Engine KT Redirection
243 device pci 16.4 off end # Management Engine Interface 3
244 device pci 17.0 on end # SATA
245 device pci 19.0 on end # UART #2
246 device pci 19.1 on end # I2C #5
247 device pci 19.2 on end # I2C #4
248 device pci 1c.0 on end # PCI Express Port 1
249 device pci 1c.1 off end # PCI Express Port 2
250 device pci 1c.2 off end # PCI Express Port 3
251 device pci 1c.3 off end # PCI Express Port 4
252 device pci 1c.4 off end # PCI Express Port 5
253 device pci 1c.5 off end # PCI Express Port 6
254 device pci 1c.6 off end # PCI Express Port 7
255 device pci 1c.7 off end # PCI Express Port 8
256 device pci 1d.0 off end # PCI Express Port 9
257 device pci 1d.1 off end # PCI Express Port 10
258 device pci 1d.2 off end # PCI Express Port 11
259 device pci 1d.3 off end # PCI Express Port 12
260 device pci 1e.0 on end # UART #0
261 device pci 1e.1 on end # UART #1
262 device pci 1e.2 on end # GSPI #0
263 device pci 1e.3 on end # GSPI #1
264 device pci 1e.4 off end # eMMC
265 device pci 1e.5 off end # SDIO
266 device pci 1e.6 off end # SDCard
267 device pci 1f.0 on
268 end # LPC Interface
269 device pci 1f.1 on end # P2SB
270 device pci 1f.2 on end # Power Management Controller
271 device pci 1f.3 on end # Intel HDA
272 device pci 1f.4 on end # SMBus
273 device pci 1f.5 on end # PCH SPI
274 device pci 1f.6 on end # GbE
275 end
276end