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