blob: f2dc5b6b3b0ff20713faf7a74813097f00fc6a2c [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
Michael Niewöhner97e21d32020-12-28 00:49:33 +01006 register "panel_cfg" = "{
7 .up_delay_ms = 200,
8 .down_delay_ms = 500,
9 .cycle_delay_ms = 600,
10 .backlight_on_delay_ms = 1,
11 .backlight_off_delay_ms = 200,
12 .backlight_pwm_hz = 1000,
13 }"
Matt DeVillierd7e92e82019-11-28 00:50:47 -060014
Zhuohao Lee11f01602018-08-02 23:59:16 +080015 # Deep Sx states
16 register "deep_s3_enable_ac" = "0"
17 register "deep_s3_enable_dc" = "0"
18 register "deep_s5_enable_ac" = "1"
19 register "deep_s5_enable_dc" = "1"
20 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
21
22 # GPE configuration
23 # Note that GPE events called out in ASL code rely on this
24 # route. i.e. If this route changes then the affected GPE
25 # offset bits also need to be changed.
26 register "gpe0_dw0" = "GPP_B"
27 register "gpe0_dw1" = "GPP_D"
28 register "gpe0_dw2" = "GPP_E"
29
30 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
31 register "gen1_dec" = "0x00fc0801"
32 register "gen2_dec" = "0x000c0201"
33 # EC memory map range is 0x900-0x9ff
34 register "gen3_dec" = "0x00fc0901"
35
36 # Enable DPTF
37 register "dptf_enable" = "1"
38
39 # Enable S0ix
40 register "s0ix_enable" = "1"
41
marxwang5b565652018-09-11 12:08:23 +080042 # Disable Command TriState
43 register "CmdTriStateDis" = "1"
44
Zhuohao Lee11f01602018-08-02 23:59:16 +080045 # FSP Configuration
Zhuohao Lee11f01602018-08-02 23:59:16 +080046 register "SataSalpSupport" = "0"
47 register "SataMode" = "0"
48 register "SataPortsEnable[0]" = "0"
Zhuohao Lee11f01602018-08-02 23:59:16 +080049 register "DspEnable" = "1"
50 register "IoBufferOwnership" = "3"
Zhuohao Lee11f01602018-08-02 23:59:16 +080051 register "SsicPortEnable" = "0"
Zhuohao Lee11f01602018-08-02 23:59:16 +080052 register "ScsEmmcHs400Enabled" = "1"
Zhuohao Lee11f01602018-08-02 23:59:16 +080053 register "SkipExtGfxScan" = "1"
Zhuohao Lee11f01602018-08-02 23:59:16 +080054 register "HeciEnabled" = "0"
Angel Pons6fadde02021-04-04 16:11:53 +020055 register "SaGv" = "SaGv_Enabled"
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
Zhuohao Lee11f01602018-08-02 23:59:16 +080060
Zhuohao Lee11f01602018-08-02 23:59:16 +080061 # VR Settings Configuration for 4 Domains
62 #+----------------+-------+-------+-------+-------+
63 #| Domain/Setting | SA | IA | GTUS | GTS |
64 #+----------------+-------+-------+-------+-------+
65 #| Psi1Threshold | 20A | 20A | 20A | 20A |
66 #| Psi2Threshold | 2A | 2A | 2A | 2A |
67 #| Psi3Threshold | 1A | 1A | 1A | 1A |
68 #| Psi3Enable | 1 | 1 | 1 | 1 |
69 #| Psi4Enable | 1 | 1 | 1 | 1 |
70 #| ImonSlope | 0 | 0 | 0 | 0 |
71 #| ImonOffset | 0 | 0 | 0 | 0 |
72 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
statham_chu200262c2018-09-20 16:02:04 +080073 #| AcLoadline | 14.4 | 4.2 | 5.7 | 4.47 |
74 #| DcLoadline | 14.0 | 4.17 | 4.2 | 4.3 |
Zhuohao Lee11f01602018-08-02 23:59:16 +080075 #+----------------+-------+-------+-------+-------+
76 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
77 .vr_config_enable = 1,
78 .psi1threshold = VR_CFG_AMP(20),
79 .psi2threshold = VR_CFG_AMP(2),
80 .psi3threshold = VR_CFG_AMP(1),
81 .psi3enable = 1,
82 .psi4enable = 1,
83 .imon_slope = 0x0,
84 .imon_offset = 0x0,
85 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +080086 .ac_loadline = 1440,
87 .dc_loadline = 1400,
Zhuohao Lee11f01602018-08-02 23:59:16 +080088 }"
89
90 register "domain_vr_config[VR_IA_CORE]" = "{
91 .vr_config_enable = 1,
92 .psi1threshold = VR_CFG_AMP(20),
93 .psi2threshold = VR_CFG_AMP(2),
94 .psi3threshold = VR_CFG_AMP(1),
95 .psi3enable = 1,
96 .psi4enable = 1,
97 .imon_slope = 0x0,
98 .imon_offset = 0x0,
99 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +0800100 .ac_loadline = 420,
101 .dc_loadline = 417,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800102 }"
103
104 register "domain_vr_config[VR_GT_UNSLICED]" = "{
105 .vr_config_enable = 1,
106 .psi1threshold = VR_CFG_AMP(20),
107 .psi2threshold = VR_CFG_AMP(2),
108 .psi3threshold = VR_CFG_AMP(1),
109 .psi3enable = 1,
110 .psi4enable = 1,
111 .imon_slope = 0x0,
112 .imon_offset = 0x0,
113 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +0800114 .ac_loadline = 570,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800115 .dc_loadline = 420,
116 }"
117
118 register "domain_vr_config[VR_GT_SLICED]" = "{
119 .vr_config_enable = 1,
120 .psi1threshold = VR_CFG_AMP(20),
121 .psi2threshold = VR_CFG_AMP(2),
122 .psi3threshold = VR_CFG_AMP(1),
123 .psi3enable = 1,
124 .psi4enable = 1,
125 .imon_slope = 0x0,
126 .imon_offset = 0x0,
127 .voltage_limit = 1520,
statham_chu200262c2018-09-20 16:02:04 +0800128 .ac_loadline = 447,
129 .dc_loadline = 430,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800130 }"
131
132 # Enable Root port 1.
133 register "PcieRpEnable[0]" = "1"
134 # Enable CLKREQ#
135 register "PcieRpClkReqSupport[0]" = "1"
136 # RP 1 uses SRCCLKREQ1#
137 register "PcieRpClkReqNumber[0]" = "1"
138 # RP 1 uses uses CLK SRC 1
139 register "PcieRpClkSrcNumber[0]" = "1"
140 # RP 1, Enable Advanced Error Reporting
141 register "PcieRpAdvancedErrorReporting[0]" = "1"
142 # RP 1, Enable Latency Tolerance Reporting Mechanism
143 register "PcieRpLtrEnable[0]" = "1"
144
145 register "usb2_ports[0]" = "USB2_PORT_SHORT(OC0)" # Type-C Port 1
146 register "usb2_ports[1]" = "USB2_PORT_LONG(OC3)" # Type-A Port
147 register "usb2_ports[2]" = "USB2_PORT_SHORT(OC_SKIP)" # Bluetooth
148 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
149 register "usb2_ports[6]" = "USB2_PORT_SHORT(OC_SKIP)" # H1
150 register "usb2_ports[8]" = "USB2_PORT_SHORT(OC_SKIP)" # Camera
151
152 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
153 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
154 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port
Zhuohao Lee11f01602018-08-02 23:59:16 +0800155
156 # Intel Common SoC Config
157 #+-------------------+---------------------------+
158 #| Field | Value |
159 #+-------------------+---------------------------+
Zhuohao Lee11f01602018-08-02 23:59:16 +0800160 #| I2C0 | Touchscreen |
161 #| I2C1 | Trackpad |
162 #| I2C5 | Audio |
Subrata Banikc077b222019-08-01 10:50:35 +0530163 #| pch_thermal_trip | PCH Trip Temperature |
Zhuohao Lee11f01602018-08-02 23:59:16 +0800164 #+-------------------+---------------------------+
165 register "common_soc_config" = "{
Zhuohao Lee11f01602018-08-02 23:59:16 +0800166 .i2c[0] = {
167 .speed = I2C_SPEED_FAST,
168 .speed_config[0] = {
169 .speed = I2C_SPEED_FAST,
170 .scl_lcnt = 190,
171 .scl_hcnt = 100,
172 .sda_hold = 36,
173 },
174 },
175 .i2c[1] = {
176 .speed = I2C_SPEED_FAST,
177 .speed_config[0] = {
178 .speed = I2C_SPEED_FAST,
kane_chen8440bf72018-11-29 17:22:57 +0800179 .scl_lcnt = 170,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800180 .scl_hcnt = 100,
181 .sda_hold = 36,
182 },
183 .early_init = 1,
184 },
185 .i2c[5] = {
186 .speed = I2C_SPEED_FAST,
187 .speed_config[0] = {
188 .speed = I2C_SPEED_FAST,
189 .scl_lcnt = 190,
190 .scl_hcnt = 100,
191 .sda_hold = 36,
192 },
193 },
kane_chene7818562018-08-31 17:38:07 +0800194 .gspi[0] = {
195 .speed_mhz = 1,
196 .early_init = 1,
197 },
Subrata Banikc077b222019-08-01 10:50:35 +0530198 .pch_thermal_trip = 75,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800199 }"
200
201 # Touchscreen
202 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
203
204 # Trackpad
205 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
206
207 # Audio
208 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
209
210 # Must leave UART0 enabled or SD/eMMC will not work as PCI
211 register "SerialIoDevMode" = "{
212 [PchSerialIoIndexI2C0] = PchSerialIoPci,
213 [PchSerialIoIndexI2C1] = PchSerialIoPci,
214 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
215 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
216 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
217 [PchSerialIoIndexI2C5] = PchSerialIoPci,
218 [PchSerialIoIndexSpi0] = PchSerialIoPci,
219 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Angel Pons08564942021-06-04 18:55:03 +0200220 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
Zhuohao Lee11f01602018-08-02 23:59:16 +0800221 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
222 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
223 }"
224
Zhuohao Lee11f01602018-08-02 23:59:16 +0800225 # PL2 override 18W for AML-Y
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530226 register "power_limits_config" = "{
227 .tdp_pl2_override = 18,
228 .psys_pmax = 45,
229 }"
Zhuohao Lee11f01602018-08-02 23:59:16 +0800230 register "tcc_offset" = "10" # TCC of 90C
231
232 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100233 register "sdcard_cd_gpio" = "GPP_E15"
Zhuohao Lee11f01602018-08-02 23:59:16 +0800234
Zhuohao Lee11f01602018-08-02 23:59:16 +0800235 device cpu_cluster 0 on
236 device lapic 0 on end
237 end
238 device domain 0 on
239 device pci 00.0 on end # Host Bridge
240 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200241 device pci 04.0 on end # SA thermal subsystem
Felix Singer4d5c4e02020-07-29 22:28:37 +0200242 device pci 05.0 off end # SA IMGU
marxwanga3a2ffb2019-01-02 20:34:53 +0800243 device pci 14.0 on
244 chip drivers/usb/acpi
245 register "desc" = ""Root Hub""
246 register "type" = "UPC_TYPE_HUB"
247 device usb 0.0 on
248 chip drivers/usb/acpi
249 register "desc" = ""USB Type C Port 1""
250 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
251 device usb 2.0 on end
252 end
253 chip drivers/usb/acpi
254 register "desc" = ""USB Type A Port 1""
255 register "type" = "UPC_TYPE_A"
256 device usb 2.1 on end
257 end
258 chip drivers/usb/acpi
259 register "desc" = ""Bluetooth""
260 register "type" = "UPC_TYPE_INTERNAL"
261 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C8)"
262 device usb 2.2 on end
263 end
264 chip drivers/usb/acpi
265 register "desc" = ""USB Type C Port 2""
266 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
267 device usb 2.4 on end
268 end
269 chip drivers/usb/acpi
270 register "desc" = ""Camera""
271 register "type" = "UPC_TYPE_INTERNAL"
272 device usb 2.8 on end
273 end
274 end
275 end
276 end # USB xHCI
Zhuohao Lee11f01602018-08-02 23:59:16 +0800277 device pci 14.1 on end # USB xDCI (OTG)
278 device pci 14.2 on end # Thermal Subsystem
Felix Singere2186672020-07-29 23:20:52 +0200279 device pci 14.3 off end # Camera
kane_chen888af332018-09-14 10:02:18 +0800280 device pci 15.0 on
281 chip drivers/i2c/hid
282 register "generic.hid" = ""PNP0C50""
283 register "generic.desc" = ""SISC Touchscreen""
284 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
285 register "generic.probed" = "1"
286 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
Kane Chenffdb3591f32018-12-12 15:57:04 +0800287 register "generic.enable_delay_ms" = "105"
288 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
289 register "generic.stop_off_delay_ms" = "1"
kane_chen888af332018-09-14 10:02:18 +0800290 register "generic.has_power_resource" = "1"
291 register "generic.disable_gpio_export_in_crs" = "1"
292 register "hid_desc_reg_offset" = "0x0"
293 device i2c 5c on end
294 end
295 end # I2C #0
Zhuohao Lee11f01602018-08-02 23:59:16 +0800296 device pci 15.1 on
297 chip drivers/i2c/generic
298 register "hid" = ""ELAN0000""
299 register "desc" = ""ELAN Touchpad""
300 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
301 register "wake" = "GPE0_DW0_05" # GPP_B5
302 device i2c 15 on end
303 end
304 end # I2C #1
305 device pci 15.2 off end # I2C #2
306 device pci 15.3 off end # I2C #3
307 device pci 16.0 on end # Management Engine Interface 1
308 device pci 16.1 off end # Management Engine Interface 2
309 device pci 16.2 off end # Management Engine IDE-R
310 device pci 16.3 off end # Management Engine KT Redirection
311 device pci 16.4 off end # Management Engine Interface 3
312 device pci 17.0 off end # SATA
313 device pci 19.0 on end # UART #2
314 device pci 19.1 on
315 chip drivers/i2c/max98927
316 register "interleave_mode" = "1"
317 register "vmon_slot_no" = "4"
318 register "imon_slot_no" = "5"
319 register "uid" = "0"
320 register "desc" = ""SSM4567 Right Speaker Amp""
321 register "name" = ""MAXR""
322 device i2c 39 on end
323 end
324 chip drivers/i2c/max98927
325 register "interleave_mode" = "1"
326 register "vmon_slot_no" = "6"
327 register "imon_slot_no" = "7"
328 register "uid" = "1"
329 register "desc" = ""SSM4567 Left Speaker Amp""
330 register "name" = ""MAXL""
331 device i2c 3A on end
332 end
marxwang3b8ef2b2018-09-07 13:42:00 +0800333 chip drivers/i2c/da7219
334 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)"
335 register "btn_cfg" = "50"
336 register "mic_det_thr" = "500"
337 register "jack_ins_deb" = "20"
338 register "jack_det_rate" = ""32ms_64ms""
339 register "jack_rem_deb" = "1"
340 register "a_d_btn_thr" = "0xa"
341 register "d_b_btn_thr" = "0x16"
342 register "b_c_btn_thr" = "0x21"
343 register "c_mic_btn_thr" = "0x3e"
344 register "btn_avg" = "4"
345 register "adc_1bit_rpt" = "1"
346 register "micbias_lvl" = "2600"
347 register "mic_amp_in_sel" = ""diff""
348 device i2c 1A on end
349 end
Zhuohao Lee11f01602018-08-02 23:59:16 +0800350 end # I2C #5
351 device pci 19.2 off end # I2C #4
352 device pci 1c.0 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700353 chip drivers/wifi/generic
Zhuohao Lee11f01602018-08-02 23:59:16 +0800354 register "wake" = "GPE0_DW0_00" # GPP_B0
355 device pci 00.0 on end
356 end
357 end # PCI Express Port 1
358 device pci 1c.1 off end # PCI Express Port 2
359 device pci 1c.2 off end # PCI Express Port 3
360 device pci 1c.3 off end # PCI Express Port 4
361 device pci 1c.4 off end # PCI Express Port 5
362 device pci 1c.5 off end # PCI Express Port 6
363 device pci 1c.6 off end # PCI Express Port 7
364 device pci 1c.7 off end # PCI Express Port 8
365 device pci 1d.0 off end # PCI Express Port 9
366 device pci 1d.1 off end # PCI Express Port 10
367 device pci 1d.2 off end # PCI Express Port 11
368 device pci 1d.3 off end # PCI Express Port 12
369 device pci 1e.0 on end # UART #0
370 device pci 1e.1 off end # UART #1
371 device pci 1e.2 on
372 chip drivers/spi/acpi
373 register "hid" = "ACPI_DT_NAMESPACE_HID"
374 register "compat_string" = ""google,cr50""
375 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
376 device spi 0 on end
377 end
378 end # GSPI #0
379 device pci 1e.3 off end # GSPI #1
380 device pci 1e.4 on end # eMMC
381 device pci 1e.5 off end # SDIO
382 device pci 1e.6 on end # SDCard
383 device pci 1f.0 on
384 chip ec/google/chromeec
385 device pnp 0c09.0 on end
386 end
387 end # LPC Interface
388 device pci 1f.1 on end # P2SB
389 device pci 1f.2 on end # Power Management Controller
390 device pci 1f.3 on end # Intel HDA
391 device pci 1f.4 on end # SMBus
392 device pci 1f.5 on end # PCH SPI
393 device pci 1f.6 off end # GbE
394 end
395end