blob: 621bbe495df5a3c712aa6154848f90321b19264e [file] [log] [blame]
Nick Vaccaro17999942018-04-23 17:13:52 -07001chip soc/intel/skylake
2
3 # Deep Sx states
4 register "deep_s3_enable_ac" = "0"
5 register "deep_s3_enable_dc" = "0"
6 register "deep_s5_enable_ac" = "1"
7 register "deep_s5_enable_dc" = "1"
8 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
9
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
27 # Enable S0ix
28 register "s0ix_enable" = "1"
29
30 # 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 "SsicPortEnable" = "0"
42 register "SmbusEnable" = "1"
43 register "Cio2Enable" = "0" # FIXME: enable once MIPI is ready
44 register "SaImguEnable" = "0" # FIXME: enable once MIPI is ready
45 register "ScsEmmcEnabled" = "1"
46 register "ScsEmmcHs400Enabled" = "1"
47 register "ScsSdCardEnabled" = "0"
48 register "IshEnable" = "0"
49 register "PttSwitch" = "0"
50 register "InternalGfx" = "1"
51 register "SkipExtGfxScan" = "1"
52 register "Device4Enable" = "1"
53 register "HeciEnabled" = "0"
54 register "FspSkipMpInit" = "1"
55 register "SaGv" = "3"
56 register "SerialIrqConfigSirqEnable" = "1"
57 register "PmConfigSlpS3MinAssert" = "2" # 50ms
58 register "PmConfigSlpS4MinAssert" = "1" # 1s
59 register "PmConfigSlpSusMinAssert" = "1" # 500ms
60 register "PmConfigSlpAMinAssert" = "3" # 2s
61 register "PmTimerDisabled" = "1"
62 register "VmxEnable" = "1"
63
64 register "speed_shift_enable" = "1"
65 register "dptf_enable" = "1"
66 register "tdp_pl2_override" = "15"
67 register "psys_pmax" = "45"
68 register "tcc_offset" = "10"
69 register "pch_trip_temp" = "75"
70 register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT"
71
72 register "pirqa_routing" = "PCH_IRQ11"
73 register "pirqb_routing" = "PCH_IRQ10"
74 register "pirqc_routing" = "PCH_IRQ11"
75 register "pirqd_routing" = "PCH_IRQ11"
76 register "pirqe_routing" = "PCH_IRQ11"
77 register "pirqf_routing" = "PCH_IRQ11"
78 register "pirqg_routing" = "PCH_IRQ11"
79 register "pirqh_routing" = "PCH_IRQ11"
80
81 # VR Settings Configuration for 4 Domains
82 #+----------------+-------+-------+-------+-------+
83 #| Domain/Setting | SA | IA | GTUS | GTS |
84 #+----------------+-------+-------+-------+-------+
85 #| Psi1Threshold | 20A | 20A | 20A | 20A |
86 #| Psi2Threshold | 2A | 2A | 2A | 2A |
87 #| Psi3Threshold | 1A | 1A | 1A | 1A |
88 #| Psi3Enable | 1 | 1 | 1 | 1 |
89 #| Psi4Enable | 1 | 1 | 1 | 1 |
90 #| ImonSlope | 0 | 0 | 0 | 0 |
91 #| ImonOffset | 0 | 0 | 0 | 0 |
92 #| IccMax | 4A | 24A | 24A | 24A |
93 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
94 #| AcLoadline | 14.9 | 5 | 5.7 | 4.57 |
95 #| DcLoadline | 14.2 | 4.86 | 4.2 | 4.3 |
96 #+----------------+-------+-------+-------+-------+
97 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
98 .vr_config_enable = 1,
99 .psi1threshold = VR_CFG_AMP(20),
100 .psi2threshold = VR_CFG_AMP(2),
101 .psi3threshold = VR_CFG_AMP(1),
102 .psi3enable = 1,
103 .psi4enable = 1,
104 .imon_slope = 0x0,
105 .imon_offset = 0x0,
106 .icc_max = VR_CFG_AMP(4),
107 .voltage_limit = 1520,
108 .ac_loadline = 1490,
109 .dc_loadline = 1420,
110 }"
111
112 register "domain_vr_config[VR_IA_CORE]" = "{
113 .vr_config_enable = 1,
114 .psi1threshold = VR_CFG_AMP(20),
115 .psi2threshold = VR_CFG_AMP(2),
116 .psi3threshold = VR_CFG_AMP(1),
117 .psi3enable = 1,
118 .psi4enable = 1,
119 .imon_slope = 0x0,
120 .imon_offset = 0x0,
121 .icc_max = VR_CFG_AMP(24),
122 .voltage_limit = 1520,
123 .ac_loadline = 500,
124 .dc_loadline = 486,
125 }"
126
127 register "domain_vr_config[VR_GT_UNSLICED]" = "{
128 .vr_config_enable = 1,
129 .psi1threshold = VR_CFG_AMP(20),
130 .psi2threshold = VR_CFG_AMP(2),
131 .psi3threshold = VR_CFG_AMP(1),
132 .psi3enable = 1,
133 .psi4enable = 1,
134 .imon_slope = 0x0,
135 .imon_offset = 0x0,
136 .icc_max = VR_CFG_AMP(24),
137 .voltage_limit = 1520,
138 .ac_loadline = 570,
139 .dc_loadline = 420,
140 }"
141
142 register "domain_vr_config[VR_GT_SLICED]" = "{
143 .vr_config_enable = 1,
144 .psi1threshold = VR_CFG_AMP(20),
145 .psi2threshold = VR_CFG_AMP(2),
146 .psi3threshold = VR_CFG_AMP(1),
147 .psi3enable = 1,
148 .psi4enable = 1,
149 .imon_slope = 0x0,
150 .imon_offset = 0x0,
151 .icc_max = VR_CFG_AMP(24),
152 .voltage_limit = 1520,
153 .ac_loadline = 457,
154 .dc_loadline = 430,
155 }"
156
157 # PCIe Root port 1 with SRCCLKREQ1#
158 register "PcieRpEnable[0]" = "1"
159 register "PcieRpClkReqSupport[0]" = "1"
160 register "PcieRpClkReqNumber[0]" = "1"
161 register "PcieRpClkSrcNumber[0]" = "1"
162 register "PcieRpAdvancedErrorReporting[0]" = "1"
163 register "PcieRpLtrEnable[0]" = "1"
164
165 # USB 2.0
166 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
167 register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Empty
168 register "usb2_ports[2]" = "USB2_PORT_SHORT(OC_SKIP)" # Bluetooth
169 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
Nick Vaccaroa613ccd2018-05-16 02:47:40 -0700170 register "usb2_ports[6]" = "USB2_PORT_LONG(OC_SKIP)" # pogo port
171 register "usb2_ports[7]" = "USB2_PORT_EMPTY" # Empty
Nick Vaccaro17999942018-04-23 17:13:52 -0700172 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Empty
173
174 # USB 3.0
175 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
176 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
177 register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Empty
178 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
179
180 # Touchscreen
181 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
182 register "i2c[0]" = "{
183 .speed = I2C_SPEED_FAST,
184 .rise_time_ns = 98,
185 .fall_time_ns = 38,
186 }"
187
188 # Trackpad
189 register "i2c_voltage[1]" = "I2C_VOLTAGE_1V8"
190 register "i2c[1]" = "{
191 .speed = I2C_SPEED_FAST,
192 .speed_config[0] = {
193 .speed = I2C_SPEED_FAST,
194 .scl_lcnt = 186,
195 .scl_hcnt = 93,
196 .sda_hold = 36,
197 },
198 }"
199
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700200 # Front Camera
Nick Vaccaro17999942018-04-23 17:13:52 -0700201 register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8"
202 register "i2c[3]" = "{
203 .speed = I2C_SPEED_FAST,
204 .rise_time_ns = 98,
205 .fall_time_ns = 38,
206 }"
207
208 # Audio
209 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
210 register "i2c[4]" = "{
211 .speed = I2C_SPEED_FAST,
212 .speed_config[0] = {
213 .speed = I2C_SPEED_FAST,
214 .scl_lcnt = 176,
215 .scl_hcnt = 95,
216 .sda_hold = 36,
217 }
218 }"
219
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700220 # Rear Camera & SAR
221 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
222 register "i2c[5]" = "{
223 .speed = I2C_SPEED_FAST,
224 .rise_time_ns = 98,
225 .fall_time_ns = 38,
226 }"
227
Nick Vaccaro17999942018-04-23 17:13:52 -0700228 # GSPI0 for cr50 TPM
229 register "gspi[0]" = "{
230 .speed_mhz = 1,
231 .early_init = 1,
232 }"
233
234 register "SerialIoDevMode" = "{
235 [PchSerialIoIndexI2C0] = PchSerialIoPci,
236 [PchSerialIoIndexI2C1] = PchSerialIoPci,
237 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
238 [PchSerialIoIndexI2C3] = PchSerialIoPci,
239 [PchSerialIoIndexI2C4] = PchSerialIoPci,
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700240 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Nick Vaccaro17999942018-04-23 17:13:52 -0700241 [PchSerialIoIndexSpi0] = PchSerialIoPci,
242 [PchSerialIoIndexSpi1] = PchSerialIoPci,
243 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
244 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
245 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
246 }"
247
248 device cpu_cluster 0 on
249 device lapic 0 on end
250 end
251 device domain 0 on
252 device pci 00.0 on end # Host Bridge
253 device pci 02.0 on end # Integrated Graphics Device
254 device pci 14.0 on end # USB xHCI
255 device pci 14.1 on end # USB xDCI (OTG)
256 device pci 14.2 on end # Thermal Subsystem
Nick Vaccaro006114b2018-05-16 02:48:32 -0700257 device pci 15.0 on
258 chip drivers/i2c/hid
259 register "generic.hid" = ""WCOM50C1""
260 register "generic.desc" = ""WCOM Digitizer""
261 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
262 register "generic.speed" = "I2C_SPEED_FAST_PLUS"
263 register "generic.probed" = "1"
264 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
265 register "generic.reset_delay_ms" = "1"
266 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
267 register "generic.enable_delay_ms" = "1"
268 register "generic.has_power_resource" = "1"
269 register "hid_desc_reg_offset" = "0x1"
270 device i2c 0a on end
271 end
272 end # I2C #0 - Touchscreen
Nick Vaccaro17999942018-04-23 17:13:52 -0700273 device pci 15.1 on end # I2C #1 - Trackpad
274 device pci 15.2 off end # I2C #2
275 device pci 15.3 on end # I2C #3 - Camera
276 device pci 16.0 on end # Management Engine Interface 1
277 device pci 16.1 off end # Management Engine Interface 2
278 device pci 16.2 off end # Management Engine IDE-R
279 device pci 16.3 off end # Management Engine KT Redirection
280 device pci 16.4 off end # Management Engine Interface 3
281 device pci 17.0 off end # SATA
282 device pci 19.0 on end # UART #2
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700283 device pci 19.1 on end # I2C #5
Nick Vaccaro17999942018-04-23 17:13:52 -0700284 device pci 19.2 on
285 chip drivers/i2c/max98373
286 register "vmon_slot_no" = "4"
287 register "imon_slot_no" = "5"
288 register "uid" = "0"
289 register "desc" = ""RIGHT SPEAKER AMP""
290 register "name" = ""MAXR""
291 device i2c 31 on end
292 end
293 chip drivers/i2c/max98373
294 register "vmon_slot_no" = "6"
295 register "imon_slot_no" = "7"
296 register "uid" = "1"
297 register "desc" = ""LEFT SPEAKER AMP""
298 register "name" = ""MAXL""
299 device i2c 32 on end
300 end
Nick Vaccaro17999942018-04-23 17:13:52 -0700301 end # I2C #4 - Audio
302 device pci 1c.0 on
303 chip drivers/intel/wifi
304 register "wake" = "GPE0_PCI_EXP"
305 device pci 00.0 on end
306 end
307 end # PCI Express Port 1
308 device pci 1c.1 off end # PCI Express Port 2
309 device pci 1c.2 off end # PCI Express Port 3
310 device pci 1c.3 off end # PCI Express Port 4
311 device pci 1c.4 off end # PCI Express Port 5
312 device pci 1c.5 off end # PCI Express Port 6
313 device pci 1c.6 off end # PCI Express Port 7
314 device pci 1c.7 off end # PCI Express Port 8
315 device pci 1d.0 off end # PCI Express Port 9
316 device pci 1d.1 off end # PCI Express Port 10
317 device pci 1d.2 off end # PCI Express Port 11
318 device pci 1d.3 off end # PCI Express Port 12
319 device pci 1e.0 off end # UART #0
320 device pci 1e.1 off end # UART #1
321 device pci 1e.2 on
322 chip drivers/spi/acpi
323 register "hid" = "ACPI_DT_NAMESPACE_HID"
324 register "compat_string" = ""google,cr50""
325 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
326 device spi 0 on end
327 end
328 end # GSPI #0
329 device pci 1e.3 on end # GSPI #1
330 device pci 1e.4 on end # eMMC
331 device pci 1e.5 off end # SDIO
332 device pci 1e.6 off end # SDCard
333 device pci 1f.0 on
334 chip ec/google/chromeec
335 device pnp 0c09.0 on end
336 end
337 end # LPC Interface
338 device pci 1f.1 on end # P2SB
339 device pci 1f.2 on end # Power Management Controller
340 device pci 1f.3 on end # Intel HDA
341 device pci 1f.4 on end # SMBus
342 device pci 1f.5 on end # PCH SPI
343 device pci 1f.6 off end # GbE
344 end
345end