blob: 4711b1f0ae3b0bf62ad9eea9701d7c171219851e [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"
Furquan Shaikh88880722017-05-01 14:23:37 -070041 register "SsicPortEnable" = "0"
42 register "SmbusEnable" = "1"
43 register "Cio2Enable" = "1"
44 register "SaImguEnable" = "1"
45 register "ScsEmmcEnabled" = "1"
46 register "ScsEmmcHs400Enabled" = "1"
47 register "ScsSdCardEnabled" = "2"
Furquan Shaikh88880722017-05-01 14:23:37 -070048 register "PttSwitch" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070049 register "SkipExtGfxScan" = "1"
50 register "Device4Enable" = "1"
51 register "HeciEnabled" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070052 register "SaGv" = "3"
Furquan Shaikh88880722017-05-01 14:23:37 -070053 register "PmConfigSlpS3MinAssert" = "2" # 50ms
54 register "PmConfigSlpS4MinAssert" = "1" # 1s
55 register "PmConfigSlpSusMinAssert" = "1" # 500ms
56 register "PmConfigSlpAMinAssert" = "3" # 2s
57 register "PmTimerDisabled" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070058
59 register "pirqa_routing" = "PCH_IRQ11"
60 register "pirqb_routing" = "PCH_IRQ10"
61 register "pirqc_routing" = "PCH_IRQ11"
62 register "pirqd_routing" = "PCH_IRQ11"
63 register "pirqe_routing" = "PCH_IRQ11"
64 register "pirqf_routing" = "PCH_IRQ11"
65 register "pirqg_routing" = "PCH_IRQ11"
66 register "pirqh_routing" = "PCH_IRQ11"
67
68 # VR Settings Configuration for 4 Domains
69 #+----------------+-------+-------+-------+-------+
70 #| Domain/Setting | SA | IA | GTUS | GTS |
71 #+----------------+-------+-------+-------+-------+
72 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053073 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Furquan Shaikh88880722017-05-01 14:23:37 -070074 #| Psi3Threshold | 1A | 1A | 1A | 1A |
75 #| Psi3Enable | 1 | 1 | 1 | 1 |
76 #| Psi4Enable | 1 | 1 | 1 | 1 |
77 #| ImonSlope | 0 | 0 | 0 | 0 |
78 #| ImonOffset | 0 | 0 | 0 | 0 |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053079 #| IccMax | 5A | 24A | 24A | 24A |
Furquan Shaikh88880722017-05-01 14:23:37 -070080 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053081 #| AcLoadline | 15 | 5.7 | 5.5 | 5.5 |
82 #| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 |
Furquan Shaikh88880722017-05-01 14:23:37 -070083 #+----------------+-------+-------+-------+-------+
84 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
85 .vr_config_enable = 1,
86 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053087 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070088 .psi3threshold = VR_CFG_AMP(1),
89 .psi3enable = 1,
90 .psi4enable = 1,
91 .imon_slope = 0x0,
92 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053093 .icc_max = VR_CFG_AMP(5),
Furquan Shaikh88880722017-05-01 14:23:37 -070094 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053095 .ac_loadline = 1500,
96 .dc_loadline = 1430,
Furquan Shaikh88880722017-05-01 14:23:37 -070097 }"
98
99 register "domain_vr_config[VR_IA_CORE]" = "{
100 .vr_config_enable = 1,
101 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530102 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700103 .psi3threshold = VR_CFG_AMP(1),
104 .psi3enable = 1,
105 .psi4enable = 1,
106 .imon_slope = 0x0,
107 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530108 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700109 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530110 .ac_loadline = 570,
111 .dc_loadline = 483,
Furquan Shaikh88880722017-05-01 14:23:37 -0700112 }"
113
114 register "domain_vr_config[VR_GT_UNSLICED]" = "{
115 .vr_config_enable = 1,
116 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530117 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700118 .psi3threshold = VR_CFG_AMP(1),
119 .psi3enable = 1,
120 .psi4enable = 1,
121 .imon_slope = 0x0,
122 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530123 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700124 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530125 .ac_loadline = 550,
126 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700127 }"
128
129 register "domain_vr_config[VR_GT_SLICED]" = "{
130 .vr_config_enable = 1,
131 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530132 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700133 .psi3threshold = VR_CFG_AMP(1),
134 .psi3enable = 1,
135 .psi4enable = 1,
136 .imon_slope = 0x0,
137 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530138 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700139 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530140 .ac_loadline = 550,
141 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700142 }"
143
144 # Enable Root port 1.
145 register "PcieRpEnable[0]" = "1"
146 # Enable CLKREQ#
147 register "PcieRpClkReqSupport[0]" = "1"
148 # RP 1 uses SRCCLKREQ1#
149 register "PcieRpClkReqNumber[0]" = "1"
Rizwan Qureshi86885362017-09-05 14:23:27 +0530150 # RP 1, Enable Advanced Error Reporting
Rizwan Qureshi09703f62017-09-16 02:01:13 +0530151 register "PcieRpAdvancedErrorReporting[0]" = "1"
152 # RP 1, Enable Latency Tolerance Reporting Mechanism
153 register "PcieRpLtrEnable[0]" = "1"
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530154 # RP 1 uses uses CLK SRC 1
155 register "PcieRpClkSrcNumber[0]" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -0700156
157 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
158 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
159 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Wisley Chen1fbc1922017-09-05 17:14:06 +0800160 register "usb2_ports[4]" = "USB2_PORT_MAX(OC1)" # Type-C Port 2
Furquan Shaikh88880722017-05-01 14:23:37 -0700161 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
162 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
163
164 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
165 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
166 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
167 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
168
Subrata Banikc4986eb2018-05-09 14:55:09 +0530169 # Intel Common SoC Config
170 #+-------------------+---------------------------+
171 #| Field | Value |
172 #+-------------------+---------------------------+
173 #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT |
174 #| I2C0 | Touchscreen |
175 #| I2C1 | cr50 TPM. Early init is |
176 #| | required to set up a BAR |
177 #| | for TPM communication |
178 #| | before memory is up |
179 #| I2C2 | Camera |
180 #| I2C4 | Camera |
181 #| I2C5 | Audio |
Subrata Banikc077b222019-08-01 10:50:35 +0530182 #| pch_thermal_trip | PCH Trip Temperature |
Subrata Banikc4986eb2018-05-09 14:55:09 +0530183 #+-------------------+---------------------------+
184 register "common_soc_config" = "{
185 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
186 .i2c[0] = {
Furquan Shaikheeab2712017-08-28 14:32:05 -0700187 .speed = I2C_SPEED_FAST,
Subrata Banikc4986eb2018-05-09 14:55:09 +0530188 .speed_config[0] = {
189 .speed = I2C_SPEED_FAST,
190 .scl_lcnt = 180,
191 .scl_hcnt = 85,
192 .sda_hold = 36,
193 },
194 },
195 .i2c[1] = {
196 .early_init = 1,
197 .speed = I2C_SPEED_FAST,
198 .speed_config[0] = {
199 .speed = I2C_SPEED_FAST,
200 .scl_lcnt = 190,
201 .scl_hcnt = 90,
202 .sda_hold = 36,
203 },
204 },
205 .i2c[2] = {
206 .speed = I2C_SPEED_FAST,
207 .speed_config[0] = {
208 .speed = I2C_SPEED_FAST,
209 .scl_lcnt = 192,
210 .scl_hcnt = 90,
211 .sda_hold = 36,
212 },
213 },
214 .i2c[4] = {
215 .speed = I2C_SPEED_FAST,
216 .speed_config[0] = {
217 .speed = I2C_SPEED_FAST,
218 .scl_lcnt = 190,
219 .scl_hcnt = 90,
220 .sda_hold = 36,
221 },
222 },
223 .i2c[5] = {
224 .speed = I2C_SPEED_FAST,
225 .speed_config[0] = {
226 .speed = I2C_SPEED_FAST,
227 .scl_lcnt = 190,
228 .scl_hcnt = 90,
229 .sda_hold = 36,
230 },
Furquan Shaikheeab2712017-08-28 14:32:05 -0700231 },
Subrata Banikc077b222019-08-01 10:50:35 +0530232 .pch_thermal_trip = 75,
Furquan Shaikheeab2712017-08-28 14:32:05 -0700233 }"
234
Subrata Banikc4986eb2018-05-09 14:55:09 +0530235 # Touchscreen
236 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
237
Furquan Shaikheeab2712017-08-28 14:32:05 -0700238 # H1
Furquan Shaikheeab2712017-08-28 14:32:05 -0700239 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
240 # for TPM communication before memory is up.
Subrata Banikc4986eb2018-05-09 14:55:09 +0530241 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700242
243 # Camera
244 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700245
Furquan Shaikheeab2712017-08-28 14:32:05 -0700246 # Camera
247 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700248
249 # Audio
250 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
Furquan Shaikh88880722017-05-01 14:23:37 -0700251
Furquan Shaikh88880722017-05-01 14:23:37 -0700252 # Must leave UART0 enabled or SD/eMMC will not work as PCI
253 register "SerialIoDevMode" = "{
254 [PchSerialIoIndexI2C0] = PchSerialIoPci,
255 [PchSerialIoIndexI2C1] = PchSerialIoPci,
256 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800257 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700258 [PchSerialIoIndexI2C4] = PchSerialIoPci,
259 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Furquan Shaikh763b4062017-12-04 12:17:24 -0800260 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700261 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700262 [PchSerialIoIndexUart0] = PchSerialIoPci,
263 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
264 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
265 }"
266
267 register "speed_shift_enable" = "1"
Naresh G Solanki5b131e22018-02-14 20:31:18 +0530268 register "psys_pmax" = "45"
Sumeet Pawnikarb4411d32017-08-10 18:55:12 +0530269 # PL2 override 15W for KBL-Y
270 register "tdp_pl2_override" = "15"
Furquan Shaikh88880722017-05-01 14:23:37 -0700271 register "tcc_offset" = "10" # TCC of 90C
272
273 # Use default SD card detect GPIO configuration
274 register "sdcard_cd_gpio_default" = "GPP_E15"
275
276 device cpu_cluster 0 on
277 device lapic 0 on end
278 end
279 device domain 0 on
280 device pci 00.0 on end # Host Bridge
281 device pci 02.0 on end # Integrated Graphics Device
282 device pci 14.0 on end # USB xHCI
Furquan Shaikh7ca40062018-04-25 17:59:09 -0700283 device pci 14.1 on end # USB xDCI (OTG)
Furquan Shaikh88880722017-05-01 14:23:37 -0700284 device pci 14.2 on end # Thermal Subsystem
285 device pci 15.0 on
Wisley Chena80a0eb2017-07-06 18:02:04 +0800286 chip drivers/i2c/hid
287 register "generic.hid" = ""WCOMCOHO""
288 register "generic.desc" = ""WCOM Touchscreen""
289 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
290 register "generic.probed" = "1"
291 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
Furquan Shaikhef1a5ed2017-10-06 14:06:27 -0700292 register "generic.reset_delay_ms" = "10"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800293 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
294 register "generic.enable_delay_ms" = "1"
Furquan Shaikh3ed59692017-08-28 17:26:28 -0700295 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800296 register "generic.has_power_resource" = "1"
297 register "generic.disable_gpio_export_in_crs" = "1"
298 register "hid_desc_reg_offset" = "0x1"
299 device i2c 0xA on end
300 end
Furquan Shaikh88880722017-05-01 14:23:37 -0700301 end # I2C #0
302 device pci 15.1 on
303 chip drivers/i2c/tpm
304 register "hid" = ""GOOG0005""
305 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
306 device i2c 50 on end
307 end
308 end # I2C #1
V Sowmya5dc15382017-05-05 14:21:48 +0530309 device pci 15.2 on end # I2C #2
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800310 device pci 15.3 off end # I2C #3
Furquan Shaikh88880722017-05-01 14:23:37 -0700311 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"
Harsha Priya130b4a22017-08-24 14:40:04 -0700321 register "vmon_slot_no" = "4"
322 register "imon_slot_no" = "5"
Furquan Shaikh88880722017-05-01 14:23:37 -0700323 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"
Harsha Priya130b4a22017-08-24 14:40:04 -0700330 register "vmon_slot_no" = "6"
331 register "imon_slot_no" = "7"
Furquan Shaikh88880722017-05-01 14:23:37 -0700332 register "uid" = "1"
333 register "desc" = ""SSM4567 Left Speaker Amp""
334 register "name" = ""MAXL""
335 device i2c 3A on end
336 end
337 chip drivers/i2c/generic
338 register "hid" = ""10EC5663""
339 register "name" = ""RT53""
340 register "desc" = ""Realtek RT5663""
341 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
342 register "probed" = "1"
343 device i2c 13 on end
344 end
345 end # I2C #5
V Sowmya5dc15382017-05-05 14:21:48 +0530346 device pci 19.2 on end # I2C #4
Furquan Shaikh88880722017-05-01 14:23:37 -0700347 device pci 1c.0 on
348 chip drivers/intel/wifi
349 register "wake" = "GPE0_PCI_EXP"
350 device pci 00.0 on end
351 end
352 end # PCI Express Port 1
353 device pci 1c.1 off end # PCI Express Port 2
354 device pci 1c.2 off end # PCI Express Port 3
355 device pci 1c.3 off end # PCI Express Port 4
356 device pci 1c.4 off end # PCI Express Port 5
357 device pci 1c.5 off end # PCI Express Port 6
358 device pci 1c.6 off end # PCI Express Port 7
359 device pci 1c.7 off end # PCI Express Port 8
360 device pci 1d.0 off end # PCI Express Port 9
361 device pci 1d.1 off end # PCI Express Port 10
362 device pci 1d.2 off end # PCI Express Port 11
363 device pci 1d.3 off end # PCI Express Port 12
364 device pci 1e.0 on end # UART #0
365 device pci 1e.1 off end # UART #1
Furquan Shaikh763b4062017-12-04 12:17:24 -0800366 device pci 1e.2 off end # GSPI #0
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700367 device pci 1e.3 off end # GSPI #1
Furquan Shaikh88880722017-05-01 14:23:37 -0700368 device pci 1e.4 on end # eMMC
369 device pci 1e.5 off end # SDIO
370 device pci 1e.6 on end # SDCard
371 device pci 1f.0 on
372 chip ec/google/chromeec
373 device pnp 0c09.0 on end
374 end
375 end # LPC Interface
376 device pci 1f.1 on end # P2SB
377 device pci 1f.2 on end # Power Management Controller
378 device pci 1f.3 on end # Intel HDA
379 device pci 1f.4 on end # SMBus
380 device pci 1f.5 on end # PCH SPI
381 device pci 1f.6 off end # GbE
382 end
383end