blob: 762955df4425cc8e8c9f8a73a016bb8a2ef5c92c [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"
48 register "IshEnable" = "0"
49 register "PttSwitch" = "0"
50 register "InternalGfx" = "1"
51 register "SkipExtGfxScan" = "1"
52 register "Device4Enable" = "1"
53 register "HeciEnabled" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070054 register "SaGv" = "3"
55 register "SerialIrqConfigSirqEnable" = "1"
56 register "PmConfigSlpS3MinAssert" = "2" # 50ms
57 register "PmConfigSlpS4MinAssert" = "1" # 1s
58 register "PmConfigSlpSusMinAssert" = "1" # 500ms
59 register "PmConfigSlpAMinAssert" = "3" # 2s
60 register "PmTimerDisabled" = "1"
Furquan Shaikh92263852018-04-16 23:26:55 -070061 register "VmxEnable" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070062
63 register "pirqa_routing" = "PCH_IRQ11"
64 register "pirqb_routing" = "PCH_IRQ10"
65 register "pirqc_routing" = "PCH_IRQ11"
66 register "pirqd_routing" = "PCH_IRQ11"
67 register "pirqe_routing" = "PCH_IRQ11"
68 register "pirqf_routing" = "PCH_IRQ11"
69 register "pirqg_routing" = "PCH_IRQ11"
70 register "pirqh_routing" = "PCH_IRQ11"
71
72 # VR Settings Configuration for 4 Domains
73 #+----------------+-------+-------+-------+-------+
74 #| Domain/Setting | SA | IA | GTUS | GTS |
75 #+----------------+-------+-------+-------+-------+
76 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053077 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Furquan Shaikh88880722017-05-01 14:23:37 -070078 #| Psi3Threshold | 1A | 1A | 1A | 1A |
79 #| Psi3Enable | 1 | 1 | 1 | 1 |
80 #| Psi4Enable | 1 | 1 | 1 | 1 |
81 #| ImonSlope | 0 | 0 | 0 | 0 |
82 #| ImonOffset | 0 | 0 | 0 | 0 |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053083 #| IccMax | 5A | 24A | 24A | 24A |
Furquan Shaikh88880722017-05-01 14:23:37 -070084 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053085 #| AcLoadline | 15 | 5.7 | 5.5 | 5.5 |
86 #| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 |
Furquan Shaikh88880722017-05-01 14:23:37 -070087 #+----------------+-------+-------+-------+-------+
88 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
89 .vr_config_enable = 1,
90 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053091 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070092 .psi3threshold = VR_CFG_AMP(1),
93 .psi3enable = 1,
94 .psi4enable = 1,
95 .imon_slope = 0x0,
96 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053097 .icc_max = VR_CFG_AMP(5),
Furquan Shaikh88880722017-05-01 14:23:37 -070098 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053099 .ac_loadline = 1500,
100 .dc_loadline = 1430,
Furquan Shaikh88880722017-05-01 14:23:37 -0700101 }"
102
103 register "domain_vr_config[VR_IA_CORE]" = "{
104 .vr_config_enable = 1,
105 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530106 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700107 .psi3threshold = VR_CFG_AMP(1),
108 .psi3enable = 1,
109 .psi4enable = 1,
110 .imon_slope = 0x0,
111 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530112 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700113 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530114 .ac_loadline = 570,
115 .dc_loadline = 483,
Furquan Shaikh88880722017-05-01 14:23:37 -0700116 }"
117
118 register "domain_vr_config[VR_GT_UNSLICED]" = "{
119 .vr_config_enable = 1,
120 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530121 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700122 .psi3threshold = VR_CFG_AMP(1),
123 .psi3enable = 1,
124 .psi4enable = 1,
125 .imon_slope = 0x0,
126 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530127 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700128 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530129 .ac_loadline = 550,
130 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700131 }"
132
133 register "domain_vr_config[VR_GT_SLICED]" = "{
134 .vr_config_enable = 1,
135 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530136 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700137 .psi3threshold = VR_CFG_AMP(1),
138 .psi3enable = 1,
139 .psi4enable = 1,
140 .imon_slope = 0x0,
141 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530142 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700143 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530144 .ac_loadline = 550,
145 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700146 }"
147
148 # Enable Root port 1.
149 register "PcieRpEnable[0]" = "1"
150 # Enable CLKREQ#
151 register "PcieRpClkReqSupport[0]" = "1"
152 # RP 1 uses SRCCLKREQ1#
153 register "PcieRpClkReqNumber[0]" = "1"
Rizwan Qureshi86885362017-09-05 14:23:27 +0530154 # RP 1, Enable Advanced Error Reporting
Rizwan Qureshi09703f62017-09-16 02:01:13 +0530155 register "PcieRpAdvancedErrorReporting[0]" = "1"
156 # RP 1, Enable Latency Tolerance Reporting Mechanism
157 register "PcieRpLtrEnable[0]" = "1"
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530158 # RP 1 uses uses CLK SRC 1
159 register "PcieRpClkSrcNumber[0]" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -0700160
161 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
162 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
163 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Wisley Chen1fbc1922017-09-05 17:14:06 +0800164 register "usb2_ports[4]" = "USB2_PORT_MAX(OC1)" # Type-C Port 2
Furquan Shaikh88880722017-05-01 14:23:37 -0700165 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
166 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
167
168 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
169 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
170 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
171 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
172
Subrata Banikc4986eb2018-05-09 14:55:09 +0530173 # Intel Common SoC Config
174 #+-------------------+---------------------------+
175 #| Field | Value |
176 #+-------------------+---------------------------+
177 #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT |
178 #| I2C0 | Touchscreen |
179 #| I2C1 | cr50 TPM. Early init is |
180 #| | required to set up a BAR |
181 #| | for TPM communication |
182 #| | before memory is up |
183 #| I2C2 | Camera |
184 #| I2C4 | Camera |
185 #| I2C5 | Audio |
186 #+-------------------+---------------------------+
187 register "common_soc_config" = "{
188 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
189 .i2c[0] = {
Furquan Shaikheeab2712017-08-28 14:32:05 -0700190 .speed = I2C_SPEED_FAST,
Subrata Banikc4986eb2018-05-09 14:55:09 +0530191 .speed_config[0] = {
192 .speed = I2C_SPEED_FAST,
193 .scl_lcnt = 180,
194 .scl_hcnt = 85,
195 .sda_hold = 36,
196 },
197 },
198 .i2c[1] = {
199 .early_init = 1,
200 .speed = I2C_SPEED_FAST,
201 .speed_config[0] = {
202 .speed = I2C_SPEED_FAST,
203 .scl_lcnt = 190,
204 .scl_hcnt = 90,
205 .sda_hold = 36,
206 },
207 },
208 .i2c[2] = {
209 .speed = I2C_SPEED_FAST,
210 .speed_config[0] = {
211 .speed = I2C_SPEED_FAST,
212 .scl_lcnt = 192,
213 .scl_hcnt = 90,
214 .sda_hold = 36,
215 },
216 },
217 .i2c[4] = {
218 .speed = I2C_SPEED_FAST,
219 .speed_config[0] = {
220 .speed = I2C_SPEED_FAST,
221 .scl_lcnt = 190,
222 .scl_hcnt = 90,
223 .sda_hold = 36,
224 },
225 },
226 .i2c[5] = {
227 .speed = I2C_SPEED_FAST,
228 .speed_config[0] = {
229 .speed = I2C_SPEED_FAST,
230 .scl_lcnt = 190,
231 .scl_hcnt = 90,
232 .sda_hold = 36,
233 },
Furquan Shaikheeab2712017-08-28 14:32:05 -0700234 },
235 }"
236
Subrata Banikc4986eb2018-05-09 14:55:09 +0530237 # Touchscreen
238 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
239
Furquan Shaikheeab2712017-08-28 14:32:05 -0700240 # H1
Furquan Shaikheeab2712017-08-28 14:32:05 -0700241 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
242 # for TPM communication before memory is up.
Subrata Banikc4986eb2018-05-09 14:55:09 +0530243 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700244
245 # Camera
246 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700247
Furquan Shaikheeab2712017-08-28 14:32:05 -0700248 # Camera
249 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700250
251 # Audio
252 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
Furquan Shaikh88880722017-05-01 14:23:37 -0700253
Furquan Shaikh88880722017-05-01 14:23:37 -0700254 # Must leave UART0 enabled or SD/eMMC will not work as PCI
255 register "SerialIoDevMode" = "{
256 [PchSerialIoIndexI2C0] = PchSerialIoPci,
257 [PchSerialIoIndexI2C1] = PchSerialIoPci,
258 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800259 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700260 [PchSerialIoIndexI2C4] = PchSerialIoPci,
261 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Furquan Shaikh763b4062017-12-04 12:17:24 -0800262 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700263 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700264 [PchSerialIoIndexUart0] = PchSerialIoPci,
265 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
266 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
267 }"
268
269 register "speed_shift_enable" = "1"
Naresh G Solanki5b131e22018-02-14 20:31:18 +0530270 register "psys_pmax" = "45"
Sumeet Pawnikarb4411d32017-08-10 18:55:12 +0530271 # PL2 override 15W for KBL-Y
272 register "tdp_pl2_override" = "15"
Furquan Shaikh88880722017-05-01 14:23:37 -0700273 register "tcc_offset" = "10" # TCC of 90C
274
275 # Use default SD card detect GPIO configuration
276 register "sdcard_cd_gpio_default" = "GPP_E15"
277
Subrata Banika6802ec2017-11-29 16:42:10 +0530278 # PCH Trip Temperature in degree C
279 register "pch_trip_temp" = "75"
280
Furquan Shaikh88880722017-05-01 14:23:37 -0700281 device cpu_cluster 0 on
282 device lapic 0 on end
283 end
284 device domain 0 on
285 device pci 00.0 on end # Host Bridge
286 device pci 02.0 on end # Integrated Graphics Device
287 device pci 14.0 on end # USB xHCI
Furquan Shaikh7ca40062018-04-25 17:59:09 -0700288 device pci 14.1 on end # USB xDCI (OTG)
Furquan Shaikh88880722017-05-01 14:23:37 -0700289 device pci 14.2 on end # Thermal Subsystem
290 device pci 15.0 on
Wisley Chena80a0eb2017-07-06 18:02:04 +0800291 chip drivers/i2c/hid
292 register "generic.hid" = ""WCOMCOHO""
293 register "generic.desc" = ""WCOM Touchscreen""
294 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
295 register "generic.probed" = "1"
296 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
Furquan Shaikhef1a5ed2017-10-06 14:06:27 -0700297 register "generic.reset_delay_ms" = "10"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800298 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
299 register "generic.enable_delay_ms" = "1"
Furquan Shaikh3ed59692017-08-28 17:26:28 -0700300 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800301 register "generic.has_power_resource" = "1"
302 register "generic.disable_gpio_export_in_crs" = "1"
303 register "hid_desc_reg_offset" = "0x1"
304 device i2c 0xA on end
305 end
Furquan Shaikh88880722017-05-01 14:23:37 -0700306 end # I2C #0
307 device pci 15.1 on
308 chip drivers/i2c/tpm
309 register "hid" = ""GOOG0005""
310 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
311 device i2c 50 on end
312 end
313 end # I2C #1
V Sowmya5dc15382017-05-05 14:21:48 +0530314 device pci 15.2 on end # I2C #2
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800315 device pci 15.3 off end # I2C #3
Furquan Shaikh88880722017-05-01 14:23:37 -0700316 device pci 16.0 on end # Management Engine Interface 1
317 device pci 16.1 off end # Management Engine Interface 2
318 device pci 16.2 off end # Management Engine IDE-R
319 device pci 16.3 off end # Management Engine KT Redirection
320 device pci 16.4 off end # Management Engine Interface 3
321 device pci 17.0 off end # SATA
322 device pci 19.0 on end # UART #2
323 device pci 19.1 on
324 chip drivers/i2c/max98927
325 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700326 register "vmon_slot_no" = "4"
327 register "imon_slot_no" = "5"
Furquan Shaikh88880722017-05-01 14:23:37 -0700328 register "uid" = "0"
329 register "desc" = ""SSM4567 Right Speaker Amp""
330 register "name" = ""MAXR""
331 device i2c 39 on end
332 end
333 chip drivers/i2c/max98927
334 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700335 register "vmon_slot_no" = "6"
336 register "imon_slot_no" = "7"
Furquan Shaikh88880722017-05-01 14:23:37 -0700337 register "uid" = "1"
338 register "desc" = ""SSM4567 Left Speaker Amp""
339 register "name" = ""MAXL""
340 device i2c 3A on end
341 end
342 chip drivers/i2c/generic
343 register "hid" = ""10EC5663""
344 register "name" = ""RT53""
345 register "desc" = ""Realtek RT5663""
346 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
347 register "probed" = "1"
348 device i2c 13 on end
349 end
350 end # I2C #5
V Sowmya5dc15382017-05-05 14:21:48 +0530351 device pci 19.2 on end # I2C #4
Furquan Shaikh88880722017-05-01 14:23:37 -0700352 device pci 1c.0 on
353 chip drivers/intel/wifi
354 register "wake" = "GPE0_PCI_EXP"
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
Furquan Shaikh763b4062017-12-04 12:17:24 -0800371 device pci 1e.2 off end # GSPI #0
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700372 device pci 1e.3 off end # GSPI #1
Furquan Shaikh88880722017-05-01 14:23:37 -0700373 device pci 1e.4 on end # eMMC
374 device pci 1e.5 off end # SDIO
375 device pci 1e.6 on end # SDCard
376 device pci 1f.0 on
377 chip ec/google/chromeec
378 device pnp 0c09.0 on end
379 end
380 end # LPC Interface
381 device pci 1f.1 on end # P2SB
382 device pci 1f.2 on end # Power Management Controller
383 device pci 1f.3 on end # Intel HDA
384 device pci 1f.4 on end # SMBus
385 device pci 1f.5 on end # PCH SPI
386 device pci 1f.6 off end # GbE
387 end
388end