blob: 5e5a53730d9eaa1b220657972413df4911f824fd [file] [log] [blame]
Furquan Shaikh88880722017-05-01 14:23:37 -07001chip soc/intel/skylake
2
3 # Deep Sx states
4 register "deep_s3_enable_ac" = "0"
Furquan Shaikhd37107e2017-11-08 11:28:10 -08005 register "deep_s3_enable_dc" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -07006 register "deep_s5_enable_ac" = "1"
7 register "deep_s5_enable_dc" = "1"
Furquan Shaikh9d867af2017-12-03 21:45:47 -08008 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
Furquan Shaikh88880722017-05-01 14:23:37 -07009
10 # GPE configuration
11 # Note that GPE events called out in ASL code rely on this
12 # route. i.e. If this route changes then the affected GPE
13 # offset bits also need to be changed.
14 register "gpe0_dw0" = "GPP_B"
15 register "gpe0_dw1" = "GPP_D"
16 register "gpe0_dw2" = "GPP_E"
17
18 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
19 register "gen1_dec" = "0x00fc0801"
20 register "gen2_dec" = "0x000c0201"
21 # EC memory map range is 0x900-0x9ff
22 register "gen3_dec" = "0x00fc0901"
23
24 # Enable DPTF
25 register "dptf_enable" = "1"
26
Rajat Jain2671afc2017-07-20 19:31:01 -070027 # Enable S0ix
28 register "s0ix_enable" = "1"
29
Furquan Shaikh88880722017-05-01 14:23:37 -070030 # FSP Configuration
31 register "ProbelessTrace" = "0"
32 register "EnableLan" = "0"
33 register "EnableSata" = "0"
34 register "SataSalpSupport" = "0"
35 register "SataMode" = "0"
36 register "SataPortsEnable[0]" = "0"
37 register "EnableAzalia" = "1"
38 register "DspEnable" = "1"
39 register "IoBufferOwnership" = "3"
40 register "EnableTraceHub" = "0"
41 register "XdciEnable" = "0"
42 register "SsicPortEnable" = "0"
43 register "SmbusEnable" = "1"
44 register "Cio2Enable" = "1"
45 register "SaImguEnable" = "1"
46 register "ScsEmmcEnabled" = "1"
47 register "ScsEmmcHs400Enabled" = "1"
48 register "ScsSdCardEnabled" = "2"
49 register "IshEnable" = "0"
50 register "PttSwitch" = "0"
51 register "InternalGfx" = "1"
52 register "SkipExtGfxScan" = "1"
53 register "Device4Enable" = "1"
54 register "HeciEnabled" = "0"
55 register "FspSkipMpInit" = "1"
56 register "SaGv" = "3"
57 register "SerialIrqConfigSirqEnable" = "1"
58 register "PmConfigSlpS3MinAssert" = "2" # 50ms
59 register "PmConfigSlpS4MinAssert" = "1" # 1s
60 register "PmConfigSlpSusMinAssert" = "1" # 500ms
61 register "PmConfigSlpAMinAssert" = "3" # 2s
62 register "PmTimerDisabled" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070063
64 register "pirqa_routing" = "PCH_IRQ11"
65 register "pirqb_routing" = "PCH_IRQ10"
66 register "pirqc_routing" = "PCH_IRQ11"
67 register "pirqd_routing" = "PCH_IRQ11"
68 register "pirqe_routing" = "PCH_IRQ11"
69 register "pirqf_routing" = "PCH_IRQ11"
70 register "pirqg_routing" = "PCH_IRQ11"
71 register "pirqh_routing" = "PCH_IRQ11"
72
73 # VR Settings Configuration for 4 Domains
74 #+----------------+-------+-------+-------+-------+
75 #| Domain/Setting | SA | IA | GTUS | GTS |
76 #+----------------+-------+-------+-------+-------+
77 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053078 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Furquan Shaikh88880722017-05-01 14:23:37 -070079 #| Psi3Threshold | 1A | 1A | 1A | 1A |
80 #| Psi3Enable | 1 | 1 | 1 | 1 |
81 #| Psi4Enable | 1 | 1 | 1 | 1 |
82 #| ImonSlope | 0 | 0 | 0 | 0 |
83 #| ImonOffset | 0 | 0 | 0 | 0 |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053084 #| IccMax | 5A | 24A | 24A | 24A |
Furquan Shaikh88880722017-05-01 14:23:37 -070085 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053086 #| AcLoadline | 15 | 5.7 | 5.5 | 5.5 |
87 #| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 |
Furquan Shaikh88880722017-05-01 14:23:37 -070088 #+----------------+-------+-------+-------+-------+
89 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
90 .vr_config_enable = 1,
91 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053092 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070093 .psi3threshold = VR_CFG_AMP(1),
94 .psi3enable = 1,
95 .psi4enable = 1,
96 .imon_slope = 0x0,
97 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053098 .icc_max = VR_CFG_AMP(5),
Furquan Shaikh88880722017-05-01 14:23:37 -070099 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530100 .ac_loadline = 1500,
101 .dc_loadline = 1430,
Furquan Shaikh88880722017-05-01 14:23:37 -0700102 }"
103
104 register "domain_vr_config[VR_IA_CORE]" = "{
105 .vr_config_enable = 1,
106 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530107 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700108 .psi3threshold = VR_CFG_AMP(1),
109 .psi3enable = 1,
110 .psi4enable = 1,
111 .imon_slope = 0x0,
112 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530113 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700114 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530115 .ac_loadline = 570,
116 .dc_loadline = 483,
Furquan Shaikh88880722017-05-01 14:23:37 -0700117 }"
118
119 register "domain_vr_config[VR_GT_UNSLICED]" = "{
120 .vr_config_enable = 1,
121 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530122 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700123 .psi3threshold = VR_CFG_AMP(1),
124 .psi3enable = 1,
125 .psi4enable = 1,
126 .imon_slope = 0x0,
127 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530128 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700129 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530130 .ac_loadline = 550,
131 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700132 }"
133
134 register "domain_vr_config[VR_GT_SLICED]" = "{
135 .vr_config_enable = 1,
136 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530137 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700138 .psi3threshold = VR_CFG_AMP(1),
139 .psi3enable = 1,
140 .psi4enable = 1,
141 .imon_slope = 0x0,
142 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530143 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700144 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530145 .ac_loadline = 550,
146 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700147 }"
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"
Rizwan Qureshi86885362017-09-05 14:23:27 +0530155 # RP 1, Enable Advanced Error Reporting
Rizwan Qureshi09703f62017-09-16 02:01:13 +0530156 register "PcieRpAdvancedErrorReporting[0]" = "1"
157 # RP 1, Enable Latency Tolerance Reporting Mechanism
158 register "PcieRpLtrEnable[0]" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -0700159
160 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
161 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
162 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Wisley Chen1fbc1922017-09-05 17:14:06 +0800163 register "usb2_ports[4]" = "USB2_PORT_MAX(OC1)" # Type-C Port 2
Furquan Shaikh88880722017-05-01 14:23:37 -0700164 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
165 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
166
167 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
168 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
169 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
170 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
171
Furquan Shaikheeab2712017-08-28 14:32:05 -0700172 # Touchscreen
173 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
174 register "i2c[0]" = "{
175 .speed = I2C_SPEED_FAST,
176 .speed_config[0] = {
177 .speed = I2C_SPEED_FAST,
178 .scl_lcnt = 180,
179 .scl_hcnt = 85,
180 .sda_hold = 36,
181 },
182 }"
183
184 # H1
185 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
186 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
187 # for TPM communication before memory is up.
188 register "i2c[1]" = "{
189 .early_init = 1,
190 .speed = I2C_SPEED_FAST,
191 .speed_config[0] = {
192 .speed = I2C_SPEED_FAST,
193 .scl_lcnt = 190,
194 .scl_hcnt = 90,
195 .sda_hold = 36,
196 },
197 }"
198
199 # Camera
200 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
201 register "i2c[2]" = "{
202 .speed = I2C_SPEED_FAST,
203 .speed_config[0] = {
204 .speed = I2C_SPEED_FAST,
205 .scl_lcnt = 192,
206 .scl_hcnt = 90,
207 .sda_hold = 36,
208 },
209 }"
210
Furquan Shaikheeab2712017-08-28 14:32:05 -0700211 # Camera
212 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
213 register "i2c[4]" = "{
214 .speed = I2C_SPEED_FAST,
215 .speed_config[0] = {
216 .speed = I2C_SPEED_FAST,
217 .scl_lcnt = 190,
218 .scl_hcnt = 90,
219 .sda_hold = 36,
220 },
221 }"
222
223 # Audio
224 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
225 register "i2c[5]" = "{
226 .speed = I2C_SPEED_FAST,
227 .speed_config[0] = {
228 .speed = I2C_SPEED_FAST,
Furquan Shaikh8f08f5f2017-09-24 20:50:14 -0700229 .scl_lcnt = 195,
230 .scl_hcnt = 90,
Furquan Shaikheeab2712017-08-28 14:32:05 -0700231 .sda_hold = 36,
232 },
233 }"
Furquan Shaikh88880722017-05-01 14:23:37 -0700234
235 # Use GSPI0 for cr50 TPM. Early init is required to set up a BAR for TPM
236 # communication before memory is up.
237 register "gspi[0]" = "{
238 .speed_mhz = 1,
239 .early_init = 1,
240 }"
241
Furquan Shaikh88880722017-05-01 14:23:37 -0700242 # Must leave UART0 enabled or SD/eMMC will not work as PCI
243 register "SerialIoDevMode" = "{
244 [PchSerialIoIndexI2C0] = PchSerialIoPci,
245 [PchSerialIoIndexI2C1] = PchSerialIoPci,
246 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800247 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700248 [PchSerialIoIndexI2C4] = PchSerialIoPci,
249 [PchSerialIoIndexI2C5] = PchSerialIoPci,
250 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700251 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700252 [PchSerialIoIndexUart0] = PchSerialIoPci,
253 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
254 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
255 }"
256
257 register "speed_shift_enable" = "1"
Sumeet Pawnikarb4411d32017-08-10 18:55:12 +0530258 # PL2 override 15W for KBL-Y
259 register "tdp_pl2_override" = "15"
Furquan Shaikh88880722017-05-01 14:23:37 -0700260 register "tcc_offset" = "10" # TCC of 90C
261
262 # Use default SD card detect GPIO configuration
263 register "sdcard_cd_gpio_default" = "GPP_E15"
264
Subrata Banikc204aaa2017-08-17 15:49:58 +0530265 # Lock Down
266 register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT"
267
Subrata Banika6802ec2017-11-29 16:42:10 +0530268 # PCH Trip Temperature in degree C
269 register "pch_trip_temp" = "75"
270
Furquan Shaikh88880722017-05-01 14:23:37 -0700271 device cpu_cluster 0 on
272 device lapic 0 on end
273 end
274 device domain 0 on
275 device pci 00.0 on end # Host Bridge
276 device pci 02.0 on end # Integrated Graphics Device
277 device pci 14.0 on end # USB xHCI
278 device pci 14.1 off end # USB xDCI (OTG)
279 device pci 14.2 on end # Thermal Subsystem
280 device pci 15.0 on
Wisley Chena80a0eb2017-07-06 18:02:04 +0800281 chip drivers/i2c/hid
282 register "generic.hid" = ""WCOMCOHO""
283 register "generic.desc" = ""WCOM Touchscreen""
284 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
285 register "generic.probed" = "1"
286 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
Furquan Shaikhef1a5ed2017-10-06 14:06:27 -0700287 register "generic.reset_delay_ms" = "10"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800288 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
289 register "generic.enable_delay_ms" = "1"
Furquan Shaikh3ed59692017-08-28 17:26:28 -0700290 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800291 register "generic.has_power_resource" = "1"
292 register "generic.disable_gpio_export_in_crs" = "1"
293 register "hid_desc_reg_offset" = "0x1"
294 device i2c 0xA on end
295 end
Furquan Shaikh88880722017-05-01 14:23:37 -0700296 end # I2C #0
297 device pci 15.1 on
298 chip drivers/i2c/tpm
299 register "hid" = ""GOOG0005""
300 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
301 device i2c 50 on end
302 end
303 end # I2C #1
V Sowmya5dc15382017-05-05 14:21:48 +0530304 device pci 15.2 on end # I2C #2
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800305 device pci 15.3 off end # I2C #3
Furquan Shaikh88880722017-05-01 14:23:37 -0700306 device pci 16.0 on end # Management Engine Interface 1
307 device pci 16.1 off end # Management Engine Interface 2
308 device pci 16.2 off end # Management Engine IDE-R
309 device pci 16.3 off end # Management Engine KT Redirection
310 device pci 16.4 off end # Management Engine Interface 3
311 device pci 17.0 off end # SATA
312 device pci 19.0 on end # UART #2
313 device pci 19.1 on
314 chip drivers/i2c/max98927
315 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700316 register "vmon_slot_no" = "4"
317 register "imon_slot_no" = "5"
Furquan Shaikh88880722017-05-01 14:23:37 -0700318 register "uid" = "0"
319 register "desc" = ""SSM4567 Right Speaker Amp""
320 register "name" = ""MAXR""
321 device i2c 39 on end
322 end
323 chip drivers/i2c/max98927
324 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700325 register "vmon_slot_no" = "6"
326 register "imon_slot_no" = "7"
Furquan Shaikh88880722017-05-01 14:23:37 -0700327 register "uid" = "1"
328 register "desc" = ""SSM4567 Left Speaker Amp""
329 register "name" = ""MAXL""
330 device i2c 3A on end
331 end
332 chip drivers/i2c/generic
333 register "hid" = ""10EC5663""
334 register "name" = ""RT53""
335 register "desc" = ""Realtek RT5663""
336 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
337 register "probed" = "1"
338 device i2c 13 on end
339 end
340 end # I2C #5
V Sowmya5dc15382017-05-05 14:21:48 +0530341 device pci 19.2 on end # I2C #4
Furquan Shaikh88880722017-05-01 14:23:37 -0700342 device pci 1c.0 on
343 chip drivers/intel/wifi
344 register "wake" = "GPE0_PCI_EXP"
345 device pci 00.0 on end
346 end
347 end # PCI Express Port 1
348 device pci 1c.1 off end # PCI Express Port 2
349 device pci 1c.2 off end # PCI Express Port 3
350 device pci 1c.3 off end # PCI Express Port 4
351 device pci 1c.4 off end # PCI Express Port 5
352 device pci 1c.5 off end # PCI Express Port 6
353 device pci 1c.6 off end # PCI Express Port 7
354 device pci 1c.7 off end # PCI Express Port 8
355 device pci 1d.0 off end # PCI Express Port 9
356 device pci 1d.1 off end # PCI Express Port 10
357 device pci 1d.2 off end # PCI Express Port 11
358 device pci 1d.3 off end # PCI Express Port 12
359 device pci 1e.0 on end # UART #0
360 device pci 1e.1 off end # UART #1
Furquan Shaikhdec6d4e2017-06-09 17:59:07 -0700361 device pci 1e.2 on
362 chip drivers/spi/acpi
363 register "hid" = "ACPI_DT_NAMESPACE_HID"
364 register "compat_string" = ""google,cr50""
365 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
366 device spi 0 on end
367 end
368 end # GSPI #0
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700369 device pci 1e.3 off end # GSPI #1
Furquan Shaikh88880722017-05-01 14:23:37 -0700370 device pci 1e.4 on end # eMMC
371 device pci 1e.5 off end # SDIO
372 device pci 1e.6 on end # SDCard
373 device pci 1f.0 on
374 chip ec/google/chromeec
375 device pnp 0c09.0 on end
376 end
377 end # LPC Interface
378 device pci 1f.1 on end # P2SB
379 device pci 1f.2 on end # Power Management Controller
380 device pci 1f.3 on end # Intel HDA
381 device pci 1f.4 on end # SMBus
382 device pci 1f.5 on end # PCH SPI
383 device pci 1f.6 off end # GbE
384 end
385end