blob: 9b8a18c2b074c09189d88daaef81b6adf2faf78d [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"
5 register "deep_s3_enable_dc" = "1"
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"
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 # FSP Configuration
28 register "ProbelessTrace" = "0"
29 register "EnableLan" = "0"
30 register "EnableSata" = "0"
31 register "SataSalpSupport" = "0"
32 register "SataMode" = "0"
33 register "SataPortsEnable[0]" = "0"
34 register "EnableAzalia" = "1"
35 register "DspEnable" = "1"
36 register "IoBufferOwnership" = "3"
37 register "EnableTraceHub" = "0"
38 register "XdciEnable" = "0"
39 register "SsicPortEnable" = "0"
40 register "SmbusEnable" = "1"
41 register "Cio2Enable" = "1"
42 register "SaImguEnable" = "1"
43 register "ScsEmmcEnabled" = "1"
44 register "ScsEmmcHs400Enabled" = "1"
45 register "ScsSdCardEnabled" = "2"
46 register "IshEnable" = "0"
47 register "PttSwitch" = "0"
48 register "InternalGfx" = "1"
49 register "SkipExtGfxScan" = "1"
50 register "Device4Enable" = "1"
51 register "HeciEnabled" = "0"
52 register "FspSkipMpInit" = "1"
53 register "SaGv" = "3"
54 register "SerialIrqConfigSirqEnable" = "1"
55 register "PmConfigSlpS3MinAssert" = "2" # 50ms
56 register "PmConfigSlpS4MinAssert" = "1" # 1s
57 register "PmConfigSlpSusMinAssert" = "1" # 500ms
58 register "PmConfigSlpAMinAssert" = "3" # 2s
59 register "PmTimerDisabled" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070060
61 register "pirqa_routing" = "PCH_IRQ11"
62 register "pirqb_routing" = "PCH_IRQ10"
63 register "pirqc_routing" = "PCH_IRQ11"
64 register "pirqd_routing" = "PCH_IRQ11"
65 register "pirqe_routing" = "PCH_IRQ11"
66 register "pirqf_routing" = "PCH_IRQ11"
67 register "pirqg_routing" = "PCH_IRQ11"
68 register "pirqh_routing" = "PCH_IRQ11"
69
70 # VR Settings Configuration for 4 Domains
71 #+----------------+-------+-------+-------+-------+
72 #| Domain/Setting | SA | IA | GTUS | GTS |
73 #+----------------+-------+-------+-------+-------+
74 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053075 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Furquan Shaikh88880722017-05-01 14:23:37 -070076 #| Psi3Threshold | 1A | 1A | 1A | 1A |
77 #| Psi3Enable | 1 | 1 | 1 | 1 |
78 #| Psi4Enable | 1 | 1 | 1 | 1 |
79 #| ImonSlope | 0 | 0 | 0 | 0 |
80 #| ImonOffset | 0 | 0 | 0 | 0 |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053081 #| IccMax | 5A | 24A | 24A | 24A |
Furquan Shaikh88880722017-05-01 14:23:37 -070082 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053083 #| AcLoadline | 15 | 5.7 | 5.5 | 5.5 |
84 #| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 |
Furquan Shaikh88880722017-05-01 14:23:37 -070085 #+----------------+-------+-------+-------+-------+
86 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
87 .vr_config_enable = 1,
88 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053089 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070090 .psi3threshold = VR_CFG_AMP(1),
91 .psi3enable = 1,
92 .psi4enable = 1,
93 .imon_slope = 0x0,
94 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053095 .icc_max = VR_CFG_AMP(5),
Furquan Shaikh88880722017-05-01 14:23:37 -070096 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053097 .ac_loadline = 1500,
98 .dc_loadline = 1430,
Furquan Shaikh88880722017-05-01 14:23:37 -070099 }"
100
101 register "domain_vr_config[VR_IA_CORE]" = "{
102 .vr_config_enable = 1,
103 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530104 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700105 .psi3threshold = VR_CFG_AMP(1),
106 .psi3enable = 1,
107 .psi4enable = 1,
108 .imon_slope = 0x0,
109 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530110 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700111 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530112 .ac_loadline = 570,
113 .dc_loadline = 483,
Furquan Shaikh88880722017-05-01 14:23:37 -0700114 }"
115
116 register "domain_vr_config[VR_GT_UNSLICED]" = "{
117 .vr_config_enable = 1,
118 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530119 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700120 .psi3threshold = VR_CFG_AMP(1),
121 .psi3enable = 1,
122 .psi4enable = 1,
123 .imon_slope = 0x0,
124 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530125 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700126 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530127 .ac_loadline = 550,
128 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700129 }"
130
131 register "domain_vr_config[VR_GT_SLICED]" = "{
132 .vr_config_enable = 1,
133 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530134 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700135 .psi3threshold = VR_CFG_AMP(1),
136 .psi3enable = 1,
137 .psi4enable = 1,
138 .imon_slope = 0x0,
139 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530140 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700141 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530142 .ac_loadline = 550,
143 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700144 }"
145
146 # Enable Root port 1.
147 register "PcieRpEnable[0]" = "1"
148 # Enable CLKREQ#
149 register "PcieRpClkReqSupport[0]" = "1"
150 # RP 1 uses SRCCLKREQ1#
151 register "PcieRpClkReqNumber[0]" = "1"
152
153 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
154 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
155 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
156 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
157 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
158 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
159
160 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
161 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
162 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
163 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
164
165 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # Touchscreen
166 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # H1
167 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" # Camera
168 register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8" # Pen
169 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # Camera
170 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
171
172 # Use GSPI0 for cr50 TPM. Early init is required to set up a BAR for TPM
173 # communication before memory is up.
174 register "gspi[0]" = "{
175 .speed_mhz = 1,
176 .early_init = 1,
177 }"
178
179 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
180 # for TPM communication before memory is up.
181 register "i2c[1]" = "{
182 .early_init = 1,
183 }"
184
185 # Must leave UART0 enabled or SD/eMMC will not work as PCI
186 register "SerialIoDevMode" = "{
187 [PchSerialIoIndexI2C0] = PchSerialIoPci,
188 [PchSerialIoIndexI2C1] = PchSerialIoPci,
189 [PchSerialIoIndexI2C2] = PchSerialIoPci,
190 [PchSerialIoIndexI2C3] = PchSerialIoPci,
191 [PchSerialIoIndexI2C4] = PchSerialIoPci,
192 [PchSerialIoIndexI2C5] = PchSerialIoPci,
193 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700194 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700195 [PchSerialIoIndexUart0] = PchSerialIoPci,
196 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
197 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
198 }"
199
200 register "speed_shift_enable" = "1"
201 register "tdp_pl2_override" = "7"
202 register "tcc_offset" = "10" # TCC of 90C
203
204 # Use default SD card detect GPIO configuration
205 register "sdcard_cd_gpio_default" = "GPP_E15"
206
207 device cpu_cluster 0 on
208 device lapic 0 on end
209 end
210 device domain 0 on
211 device pci 00.0 on end # Host Bridge
212 device pci 02.0 on end # Integrated Graphics Device
213 device pci 14.0 on end # USB xHCI
214 device pci 14.1 off end # USB xDCI (OTG)
215 device pci 14.2 on end # Thermal Subsystem
216 device pci 15.0 on
Wisley Chena80a0eb2017-07-06 18:02:04 +0800217 chip drivers/i2c/hid
218 register "generic.hid" = ""WCOMCOHO""
219 register "generic.desc" = ""WCOM Touchscreen""
220 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
221 register "generic.probed" = "1"
222 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
223 register "generic.reset_delay_ms" = "110"
224 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
225 register "generic.enable_delay_ms" = "1"
226 register "generic.has_power_resource" = "1"
227 register "generic.disable_gpio_export_in_crs" = "1"
228 register "hid_desc_reg_offset" = "0x1"
229 device i2c 0xA on end
230 end
Furquan Shaikh88880722017-05-01 14:23:37 -0700231 chip drivers/i2c/generic
232 register "hid" = ""ATML0001""
233 register "desc" = ""Atmel Touchscreen""
234 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
235 register "probed" = "1"
Furquan Shaikh73108de2017-05-23 11:56:09 -0700236 register "has_power_resource" = "1"
237 register "disable_gpio_export_in_crs" = "1"
238 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
239 register "enable_delay_ms" = "250"
Furquan Shaikh88880722017-05-01 14:23:37 -0700240 device i2c 4b on end
241 end
242 end # I2C #0
243 device pci 15.1 on
244 chip drivers/i2c/tpm
245 register "hid" = ""GOOG0005""
246 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
247 device i2c 50 on end
248 end
249 end # I2C #1
V Sowmya5dc15382017-05-05 14:21:48 +0530250 device pci 15.2 on end # I2C #2
Furquan Shaikh88880722017-05-01 14:23:37 -0700251 device pci 15.3 on
252 chip drivers/i2c/hid
253 register "generic.hid" = ""WCOM50C1""
254 register "generic.desc" = ""WCOM Digitizer""
255 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D1_IRQ)"
256 register "hid_desc_reg_offset" = "0x1"
257 device i2c 0x9 on end
258 end
259 end # I2C #3
260 device pci 16.0 on end # Management Engine Interface 1
261 device pci 16.1 off end # Management Engine Interface 2
262 device pci 16.2 off end # Management Engine IDE-R
263 device pci 16.3 off end # Management Engine KT Redirection
264 device pci 16.4 off end # Management Engine Interface 3
265 device pci 17.0 off end # SATA
266 device pci 19.0 on end # UART #2
267 device pci 19.1 on
268 chip drivers/i2c/max98927
269 register "interleave_mode" = "1"
270 register "uid" = "0"
271 register "desc" = ""SSM4567 Right Speaker Amp""
272 register "name" = ""MAXR""
273 device i2c 39 on end
274 end
275 chip drivers/i2c/max98927
276 register "interleave_mode" = "1"
277 register "uid" = "1"
278 register "desc" = ""SSM4567 Left Speaker Amp""
279 register "name" = ""MAXL""
280 device i2c 3A on end
281 end
282 chip drivers/i2c/generic
283 register "hid" = ""10EC5663""
284 register "name" = ""RT53""
285 register "desc" = ""Realtek RT5663""
286 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
287 register "probed" = "1"
288 device i2c 13 on end
289 end
290 end # I2C #5
V Sowmya5dc15382017-05-05 14:21:48 +0530291 device pci 19.2 on end # I2C #4
Furquan Shaikh88880722017-05-01 14:23:37 -0700292 device pci 1c.0 on
293 chip drivers/intel/wifi
294 register "wake" = "GPE0_PCI_EXP"
295 device pci 00.0 on end
296 end
297 end # PCI Express Port 1
298 device pci 1c.1 off end # PCI Express Port 2
299 device pci 1c.2 off end # PCI Express Port 3
300 device pci 1c.3 off end # PCI Express Port 4
301 device pci 1c.4 off end # PCI Express Port 5
302 device pci 1c.5 off end # PCI Express Port 6
303 device pci 1c.6 off end # PCI Express Port 7
304 device pci 1c.7 off end # PCI Express Port 8
305 device pci 1d.0 off end # PCI Express Port 9
306 device pci 1d.1 off end # PCI Express Port 10
307 device pci 1d.2 off end # PCI Express Port 11
308 device pci 1d.3 off end # PCI Express Port 12
309 device pci 1e.0 on end # UART #0
310 device pci 1e.1 off end # UART #1
Furquan Shaikhdec6d4e2017-06-09 17:59:07 -0700311 device pci 1e.2 on
312 chip drivers/spi/acpi
313 register "hid" = "ACPI_DT_NAMESPACE_HID"
314 register "compat_string" = ""google,cr50""
315 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
316 device spi 0 on end
317 end
318 end # GSPI #0
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700319 device pci 1e.3 off end # GSPI #1
Furquan Shaikh88880722017-05-01 14:23:37 -0700320 device pci 1e.4 on end # eMMC
321 device pci 1e.5 off end # SDIO
322 device pci 1e.6 on end # SDCard
323 device pci 1f.0 on
324 chip ec/google/chromeec
325 device pnp 0c09.0 on end
326 end
327 end # LPC Interface
328 device pci 1f.1 on end # P2SB
329 device pci 1f.2 on end # Power Management Controller
330 device pci 1f.3 on end # Intel HDA
331 device pci 1f.4 on end # SMBus
332 device pci 1f.5 on end # PCH SPI
333 device pci 1f.6 off end # GbE
334 end
335end