blob: 591e0fb4786331a65d4d0d80264e598339ece4db [file] [log] [blame]
Zhuohao Lee11f01602018-08-02 23:59:16 +08001chip soc/intel/skylake
2
Matt DeVillier8f424722019-11-27 22:55:43 -06003 # IGD Displays
4 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
5
Matt DeVillierd7e92e82019-11-28 00:50:47 -06006 register "gpu_pp_up_delay_ms" = "200"
7 register "gpu_pp_down_delay_ms" = "500"
8 register "gpu_pp_cycle_delay_ms" = "600"
9 register "gpu_pp_backlight_on_delay_ms" = " 1"
10 register "gpu_pp_backlight_off_delay_ms" = "200"
11 register "gpu_pch_backlight_pwm_hz" = "1000"
12
Zhuohao Lee11f01602018-08-02 23:59:16 +080013 # Deep Sx states
14 register "deep_s3_enable_ac" = "0"
15 register "deep_s3_enable_dc" = "0"
16 register "deep_s5_enable_ac" = "1"
17 register "deep_s5_enable_dc" = "1"
18 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
19
20 # GPE configuration
21 # Note that GPE events called out in ASL code rely on this
22 # route. i.e. If this route changes then the affected GPE
23 # offset bits also need to be changed.
24 register "gpe0_dw0" = "GPP_B"
25 register "gpe0_dw1" = "GPP_D"
26 register "gpe0_dw2" = "GPP_E"
27
28 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
29 register "gen1_dec" = "0x00fc0801"
30 register "gen2_dec" = "0x000c0201"
31 # EC memory map range is 0x900-0x9ff
32 register "gen3_dec" = "0x00fc0901"
33
34 # Enable DPTF
35 register "dptf_enable" = "1"
36
37 # Enable S0ix
38 register "s0ix_enable" = "1"
39
marxwang5b565652018-09-11 12:08:23 +080040 # Disable Command TriState
41 register "CmdTriStateDis" = "1"
42
Zhuohao Lee11f01602018-08-02 23:59:16 +080043 # FSP Configuration
44 register "ProbelessTrace" = "0"
Zhuohao Lee11f01602018-08-02 23:59:16 +080045 register "SataSalpSupport" = "0"
46 register "SataMode" = "0"
47 register "SataPortsEnable[0]" = "0"
Zhuohao Lee11f01602018-08-02 23:59:16 +080048 register "DspEnable" = "1"
49 register "IoBufferOwnership" = "3"
Zhuohao Lee11f01602018-08-02 23:59:16 +080050 register "SsicPortEnable" = "0"
Zhuohao Lee11f01602018-08-02 23:59:16 +080051 register "ScsEmmcHs400Enabled" = "1"
Zhuohao Lee11f01602018-08-02 23:59:16 +080052 register "PttSwitch" = "0"
Zhuohao Lee11f01602018-08-02 23:59:16 +080053 register "SkipExtGfxScan" = "1"
Zhuohao Lee11f01602018-08-02 23:59:16 +080054 register "HeciEnabled" = "0"
55 register "SaGv" = "3"
Zhuohao Lee11f01602018-08-02 23:59:16 +080056 register "PmConfigSlpS3MinAssert" = "2" # 50ms
57 register "PmConfigSlpS4MinAssert" = "1" # 1s
58 register "PmConfigSlpSusMinAssert" = "1" # 500ms
59 register "PmConfigSlpAMinAssert" = "3" # 2s
60 register "PmTimerDisabled" = "1"
Zhuohao Lee11f01602018-08-02 23:59:16 +080061
Zhuohao Lee11f01602018-08-02 23:59:16 +080062 # VR Settings Configuration for 4 Domains
63 #+----------------+-------+-------+-------+-------+
64 #| Domain/Setting | SA | IA | GTUS | GTS |
65 #+----------------+-------+-------+-------+-------+
66 #| Psi1Threshold | 20A | 20A | 20A | 20A |
67 #| Psi2Threshold | 2A | 2A | 2A | 2A |
68 #| Psi3Threshold | 1A | 1A | 1A | 1A |
69 #| Psi3Enable | 1 | 1 | 1 | 1 |
70 #| Psi4Enable | 1 | 1 | 1 | 1 |
71 #| ImonSlope | 0 | 0 | 0 | 0 |
72 #| ImonOffset | 0 | 0 | 0 | 0 |
73 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
statham_chu200262c2018-09-20 16:02:04 +080074 #| AcLoadline | 14.4 | 4.2 | 5.7 | 4.47 |
75 #| DcLoadline | 14.0 | 4.17 | 4.2 | 4.3 |
Zhuohao Lee11f01602018-08-02 23:59:16 +080076 #+----------------+-------+-------+-------+-------+
77 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
78 .vr_config_enable = 1,
79 .psi1threshold = VR_CFG_AMP(20),
80 .psi2threshold = VR_CFG_AMP(2),
81 .psi3threshold = VR_CFG_AMP(1),
82 .psi3enable = 1,
83 .psi4enable = 1,
84 .imon_slope = 0x0,
85 .imon_offset = 0x0,
86 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +080087 .ac_loadline = 1440,
88 .dc_loadline = 1400,
Zhuohao Lee11f01602018-08-02 23:59:16 +080089 }"
90
91 register "domain_vr_config[VR_IA_CORE]" = "{
92 .vr_config_enable = 1,
93 .psi1threshold = VR_CFG_AMP(20),
94 .psi2threshold = VR_CFG_AMP(2),
95 .psi3threshold = VR_CFG_AMP(1),
96 .psi3enable = 1,
97 .psi4enable = 1,
98 .imon_slope = 0x0,
99 .imon_offset = 0x0,
100 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +0800101 .ac_loadline = 420,
102 .dc_loadline = 417,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800103 }"
104
105 register "domain_vr_config[VR_GT_UNSLICED]" = "{
106 .vr_config_enable = 1,
107 .psi1threshold = VR_CFG_AMP(20),
108 .psi2threshold = VR_CFG_AMP(2),
109 .psi3threshold = VR_CFG_AMP(1),
110 .psi3enable = 1,
111 .psi4enable = 1,
112 .imon_slope = 0x0,
113 .imon_offset = 0x0,
114 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +0800115 .ac_loadline = 570,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800116 .dc_loadline = 420,
117 }"
118
119 register "domain_vr_config[VR_GT_SLICED]" = "{
120 .vr_config_enable = 1,
121 .psi1threshold = VR_CFG_AMP(20),
122 .psi2threshold = VR_CFG_AMP(2),
123 .psi3threshold = VR_CFG_AMP(1),
124 .psi3enable = 1,
125 .psi4enable = 1,
126 .imon_slope = 0x0,
127 .imon_offset = 0x0,
128 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +0800129 .ac_loadline = 447,
130 .dc_loadline = 430,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800131 }"
132
133 # Enable Root port 1.
134 register "PcieRpEnable[0]" = "1"
135 # Enable CLKREQ#
136 register "PcieRpClkReqSupport[0]" = "1"
137 # RP 1 uses SRCCLKREQ1#
138 register "PcieRpClkReqNumber[0]" = "1"
139 # RP 1 uses uses CLK SRC 1
140 register "PcieRpClkSrcNumber[0]" = "1"
141 # RP 1, Enable Advanced Error Reporting
142 register "PcieRpAdvancedErrorReporting[0]" = "1"
143 # RP 1, Enable Latency Tolerance Reporting Mechanism
144 register "PcieRpLtrEnable[0]" = "1"
145
146 register "usb2_ports[0]" = "USB2_PORT_SHORT(OC0)" # Type-C Port 1
147 register "usb2_ports[1]" = "USB2_PORT_LONG(OC3)" # Type-A Port
148 register "usb2_ports[2]" = "USB2_PORT_SHORT(OC_SKIP)" # Bluetooth
149 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
150 register "usb2_ports[6]" = "USB2_PORT_SHORT(OC_SKIP)" # H1
151 register "usb2_ports[8]" = "USB2_PORT_SHORT(OC_SKIP)" # Camera
152
153 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
154 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
155 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port
Zhuohao Lee11f01602018-08-02 23:59:16 +0800156
157 # Intel Common SoC Config
158 #+-------------------+---------------------------+
159 #| Field | Value |
160 #+-------------------+---------------------------+
161 #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT |
162 #| I2C0 | Touchscreen |
163 #| I2C1 | Trackpad |
164 #| I2C5 | Audio |
Subrata Banikc077b222019-08-01 10:50:35 +0530165 #| pch_thermal_trip | PCH Trip Temperature |
Zhuohao Lee11f01602018-08-02 23:59:16 +0800166 #+-------------------+---------------------------+
167 register "common_soc_config" = "{
168 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
169 .i2c[0] = {
170 .speed = I2C_SPEED_FAST,
171 .speed_config[0] = {
172 .speed = I2C_SPEED_FAST,
173 .scl_lcnt = 190,
174 .scl_hcnt = 100,
175 .sda_hold = 36,
176 },
177 },
178 .i2c[1] = {
179 .speed = I2C_SPEED_FAST,
180 .speed_config[0] = {
181 .speed = I2C_SPEED_FAST,
kane_chen8440bf72018-11-29 17:22:57 +0800182 .scl_lcnt = 170,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800183 .scl_hcnt = 100,
184 .sda_hold = 36,
185 },
186 .early_init = 1,
187 },
188 .i2c[5] = {
189 .speed = I2C_SPEED_FAST,
190 .speed_config[0] = {
191 .speed = I2C_SPEED_FAST,
192 .scl_lcnt = 190,
193 .scl_hcnt = 100,
194 .sda_hold = 36,
195 },
196 },
kane_chene7818562018-08-31 17:38:07 +0800197 .gspi[0] = {
198 .speed_mhz = 1,
199 .early_init = 1,
200 },
Subrata Banikc077b222019-08-01 10:50:35 +0530201 .pch_thermal_trip = 75,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800202 }"
203
204 # Touchscreen
205 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
206
207 # Trackpad
208 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
209
210 # Audio
211 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
212
213 # Must leave UART0 enabled or SD/eMMC will not work as PCI
214 register "SerialIoDevMode" = "{
215 [PchSerialIoIndexI2C0] = PchSerialIoPci,
216 [PchSerialIoIndexI2C1] = PchSerialIoPci,
217 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
218 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
219 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
220 [PchSerialIoIndexI2C5] = PchSerialIoPci,
221 [PchSerialIoIndexSpi0] = PchSerialIoPci,
222 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
223 [PchSerialIoIndexUart0] = PchSerialIoPci,
224 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
225 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
226 }"
227
228 register "speed_shift_enable" = "1"
Zhuohao Lee11f01602018-08-02 23:59:16 +0800229 # PL2 override 18W for AML-Y
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530230 register "power_limits_config" = "{
231 .tdp_pl2_override = 18,
232 .psys_pmax = 45,
233 }"
Zhuohao Lee11f01602018-08-02 23:59:16 +0800234 register "tcc_offset" = "10" # TCC of 90C
235
236 # Use default SD card detect GPIO configuration
237 register "sdcard_cd_gpio_default" = "GPP_E15"
238
Zhuohao Lee11f01602018-08-02 23:59:16 +0800239 device cpu_cluster 0 on
240 device lapic 0 on end
241 end
242 device domain 0 on
243 device pci 00.0 on end # Host Bridge
244 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200245 device pci 04.0 on end # SA thermal subsystem
Felix Singer4d5c4e02020-07-29 22:28:37 +0200246 device pci 05.0 off end # SA IMGU
marxwanga3a2ffb2019-01-02 20:34:53 +0800247 device pci 14.0 on
248 chip drivers/usb/acpi
249 register "desc" = ""Root Hub""
250 register "type" = "UPC_TYPE_HUB"
251 device usb 0.0 on
252 chip drivers/usb/acpi
253 register "desc" = ""USB Type C Port 1""
254 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
255 device usb 2.0 on end
256 end
257 chip drivers/usb/acpi
258 register "desc" = ""USB Type A Port 1""
259 register "type" = "UPC_TYPE_A"
260 device usb 2.1 on end
261 end
262 chip drivers/usb/acpi
263 register "desc" = ""Bluetooth""
264 register "type" = "UPC_TYPE_INTERNAL"
265 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C8)"
266 device usb 2.2 on end
267 end
268 chip drivers/usb/acpi
269 register "desc" = ""USB Type C Port 2""
270 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
271 device usb 2.4 on end
272 end
273 chip drivers/usb/acpi
274 register "desc" = ""Camera""
275 register "type" = "UPC_TYPE_INTERNAL"
276 device usb 2.8 on end
277 end
278 end
279 end
280 end # USB xHCI
Zhuohao Lee11f01602018-08-02 23:59:16 +0800281 device pci 14.1 on end # USB xDCI (OTG)
282 device pci 14.2 on end # Thermal Subsystem
Felix Singere2186672020-07-29 23:20:52 +0200283 device pci 14.3 off end # Camera
kane_chen888af332018-09-14 10:02:18 +0800284 device pci 15.0 on
285 chip drivers/i2c/hid
286 register "generic.hid" = ""PNP0C50""
287 register "generic.desc" = ""SISC Touchscreen""
288 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
289 register "generic.probed" = "1"
290 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
Kane Chenffdb3591f32018-12-12 15:57:04 +0800291 register "generic.enable_delay_ms" = "105"
292 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
293 register "generic.stop_off_delay_ms" = "1"
kane_chen888af332018-09-14 10:02:18 +0800294 register "generic.has_power_resource" = "1"
295 register "generic.disable_gpio_export_in_crs" = "1"
296 register "hid_desc_reg_offset" = "0x0"
297 device i2c 5c on end
298 end
299 end # I2C #0
Zhuohao Lee11f01602018-08-02 23:59:16 +0800300 device pci 15.1 on
301 chip drivers/i2c/generic
302 register "hid" = ""ELAN0000""
303 register "desc" = ""ELAN Touchpad""
304 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
305 register "wake" = "GPE0_DW0_05" # GPP_B5
306 device i2c 15 on end
307 end
308 end # I2C #1
309 device pci 15.2 off end # I2C #2
310 device pci 15.3 off end # I2C #3
311 device pci 16.0 on end # Management Engine Interface 1
312 device pci 16.1 off end # Management Engine Interface 2
313 device pci 16.2 off end # Management Engine IDE-R
314 device pci 16.3 off end # Management Engine KT Redirection
315 device pci 16.4 off end # Management Engine Interface 3
316 device pci 17.0 off end # SATA
317 device pci 19.0 on end # UART #2
318 device pci 19.1 on
319 chip drivers/i2c/max98927
320 register "interleave_mode" = "1"
321 register "vmon_slot_no" = "4"
322 register "imon_slot_no" = "5"
323 register "uid" = "0"
324 register "desc" = ""SSM4567 Right Speaker Amp""
325 register "name" = ""MAXR""
326 device i2c 39 on end
327 end
328 chip drivers/i2c/max98927
329 register "interleave_mode" = "1"
330 register "vmon_slot_no" = "6"
331 register "imon_slot_no" = "7"
332 register "uid" = "1"
333 register "desc" = ""SSM4567 Left Speaker Amp""
334 register "name" = ""MAXL""
335 device i2c 3A on end
336 end
marxwang3b8ef2b2018-09-07 13:42:00 +0800337 chip drivers/i2c/da7219
338 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)"
339 register "btn_cfg" = "50"
340 register "mic_det_thr" = "500"
341 register "jack_ins_deb" = "20"
342 register "jack_det_rate" = ""32ms_64ms""
343 register "jack_rem_deb" = "1"
344 register "a_d_btn_thr" = "0xa"
345 register "d_b_btn_thr" = "0x16"
346 register "b_c_btn_thr" = "0x21"
347 register "c_mic_btn_thr" = "0x3e"
348 register "btn_avg" = "4"
349 register "adc_1bit_rpt" = "1"
350 register "micbias_lvl" = "2600"
351 register "mic_amp_in_sel" = ""diff""
352 device i2c 1A on end
353 end
Zhuohao Lee11f01602018-08-02 23:59:16 +0800354 end # I2C #5
355 device pci 19.2 off end # I2C #4
356 device pci 1c.0 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700357 chip drivers/wifi/generic
Zhuohao Lee11f01602018-08-02 23:59:16 +0800358 register "wake" = "GPE0_DW0_00" # GPP_B0
359 device pci 00.0 on end
360 end
361 end # PCI Express Port 1
362 device pci 1c.1 off end # PCI Express Port 2
363 device pci 1c.2 off end # PCI Express Port 3
364 device pci 1c.3 off end # PCI Express Port 4
365 device pci 1c.4 off end # PCI Express Port 5
366 device pci 1c.5 off end # PCI Express Port 6
367 device pci 1c.6 off end # PCI Express Port 7
368 device pci 1c.7 off end # PCI Express Port 8
369 device pci 1d.0 off end # PCI Express Port 9
370 device pci 1d.1 off end # PCI Express Port 10
371 device pci 1d.2 off end # PCI Express Port 11
372 device pci 1d.3 off end # PCI Express Port 12
373 device pci 1e.0 on end # UART #0
374 device pci 1e.1 off end # UART #1
375 device pci 1e.2 on
376 chip drivers/spi/acpi
377 register "hid" = "ACPI_DT_NAMESPACE_HID"
378 register "compat_string" = ""google,cr50""
379 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
380 device spi 0 on end
381 end
382 end # GSPI #0
383 device pci 1e.3 off end # GSPI #1
384 device pci 1e.4 on end # eMMC
385 device pci 1e.5 off end # SDIO
386 device pci 1e.6 on end # SDCard
387 device pci 1f.0 on
388 chip ec/google/chromeec
389 device pnp 0c09.0 on end
390 end
391 end # LPC Interface
392 device pci 1f.1 on end # P2SB
393 device pci 1f.2 on end # Power Management Controller
394 device pci 1f.3 on end # Intel HDA
395 device pci 1f.4 on end # SMBus
396 device pci 1f.5 on end # PCH SPI
397 device pci 1f.6 off end # GbE
398 end
399end