blob: 487dda3f35c42a5998158cafc140ef955ed10f51 [file] [log] [blame]
Duncan Laurie81485d22016-10-28 09:13:52 -07001chip soc/intel/skylake
2
3 # Enable deep Sx states
Duncan Laurie73ff0fb2017-04-10 21:07:06 -07004 register "deep_s3_enable_ac" = "0"
Duncan Laurie1fe32d62017-04-10 21:02:13 -07005 register "deep_s3_enable_dc" = "1"
6 register "deep_s5_enable_ac" = "1"
7 register "deep_s5_enable_dc" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -07008 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 # FSP Configuration
25 register "ProbelessTrace" = "0"
26 register "EnableLan" = "0"
27 register "EnableSata" = "0"
28 register "SataSalpSupport" = "0"
29 register "SataMode" = "0"
30 register "SataPortsEnable[0]" = "0"
31 register "EnableAzalia" = "1"
32 register "DspEnable" = "1"
33 register "IoBufferOwnership" = "3"
34 register "EnableTraceHub" = "0"
35 register "XdciEnable" = "0"
36 register "SsicPortEnable" = "0"
37 register "SmbusEnable" = "1"
38 register "Cio2Enable" = "0"
39 register "ScsEmmcEnabled" = "1"
40 register "ScsEmmcHs400Enabled" = "1"
41 register "ScsSdCardEnabled" = "0"
42 register "IshEnable" = "0"
43 register "PttSwitch" = "0"
44 register "InternalGfx" = "1"
45 register "SkipExtGfxScan" = "1"
46 register "Device4Enable" = "1"
47 register "HeciEnabled" = "0"
48 register "FspSkipMpInit" = "1"
49 register "SaGv" = "3"
50 register "SerialIrqConfigSirqEnable" = "1"
51 register "PmConfigSlpS3MinAssert" = "2" # 50ms
52 register "PmConfigSlpS4MinAssert" = "1" # 1s
53 register "PmConfigSlpSusMinAssert" = "1" # 500ms
54 register "PmConfigSlpAMinAssert" = "3" # 2s
55 register "PmTimerDisabled" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -070056
57 register "pirqa_routing" = "PCH_IRQ11"
58 register "pirqb_routing" = "PCH_IRQ10"
59 register "pirqc_routing" = "PCH_IRQ11"
60 register "pirqd_routing" = "PCH_IRQ11"
61 register "pirqe_routing" = "PCH_IRQ11"
62 register "pirqf_routing" = "PCH_IRQ11"
63 register "pirqg_routing" = "PCH_IRQ11"
64 register "pirqh_routing" = "PCH_IRQ11"
65
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070066 # VR Settings Configuration for 4 Domains
67 #+----------------+-------+-------+-------+-------+
68 #| Domain/Setting | SA | IA | GTUS | GTS |
69 #+----------------+-------+-------+-------+-------+
70 #| Psi1Threshold | 20A | 20A | 20A | 20A |
V Sowmya41f93732017-05-23 14:17:01 +053071 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070072 #| Psi3Threshold | 1A | 1A | 1A | 1A |
73 #| Psi3Enable | 1 | 1 | 1 | 1 |
74 #| Psi4Enable | 1 | 1 | 1 | 1 |
75 #| ImonSlope | 0 | 0 | 0 | 0 |
76 #| ImonOffset | 0 | 0 | 0 | 0 |
77 #| IccMax | 4A | 24A | 24A | 24A |
78 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
V Sowmya41f93732017-05-23 14:17:01 +053079 #| AcLoadline | 14.9 | 5 | 5.7 | 4.57 |
80 #| DcLoadline | 14.2 | 4.86 | 4.2 | 4.3 |
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070081 #+----------------+-------+-------+-------+-------+
Duncan Laurie81485d22016-10-28 09:13:52 -070082 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
83 .vr_config_enable = 1,
84 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +053085 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -070086 .psi3threshold = VR_CFG_AMP(1),
87 .psi3enable = 1,
88 .psi4enable = 1,
89 .imon_slope = 0x0,
90 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -080091 .icc_max = VR_CFG_AMP(4),
Duncan Laurie81485d22016-10-28 09:13:52 -070092 .voltage_limit = 1520,
V Sowmya41f93732017-05-23 14:17:01 +053093 .ac_loadline = 1490,
94 .dc_loadline = 1420,
Duncan Laurie81485d22016-10-28 09:13:52 -070095 }"
96
97 register "domain_vr_config[VR_IA_CORE]" = "{
98 .vr_config_enable = 1,
99 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +0530100 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -0700101 .psi3threshold = VR_CFG_AMP(1),
102 .psi3enable = 1,
103 .psi4enable = 1,
104 .imon_slope = 0x0,
105 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800106 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700107 .voltage_limit = 1520,
V Sowmya41f93732017-05-23 14:17:01 +0530108 .ac_loadline = 500,
109 .dc_loadline = 486,
Duncan Laurie81485d22016-10-28 09:13:52 -0700110 }"
111
Duncan Laurie81485d22016-10-28 09:13:52 -0700112 register "domain_vr_config[VR_GT_UNSLICED]" = "{
113 .vr_config_enable = 1,
114 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +0530115 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -0700116 .psi3threshold = VR_CFG_AMP(1),
117 .psi3enable = 1,
118 .psi4enable = 1,
119 .imon_slope = 0x0,
120 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800121 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700122 .voltage_limit = 1520,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -0700123 .ac_loadline = 570,
124 .dc_loadline = 420,
Duncan Laurie81485d22016-10-28 09:13:52 -0700125 }"
126
127 register "domain_vr_config[VR_GT_SLICED]" = "{
128 .vr_config_enable = 1,
129 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +0530130 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -0700131 .psi3threshold = VR_CFG_AMP(1),
132 .psi3enable = 1,
133 .psi4enable = 1,
134 .imon_slope = 0x0,
135 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800136 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700137 .voltage_limit = 1520,
V Sowmya41f93732017-05-23 14:17:01 +0530138 .ac_loadline = 457,
139 .dc_loadline = 430,
Duncan Laurie81485d22016-10-28 09:13:52 -0700140 }"
141
Duncan Laurie949e34c2017-01-21 19:11:37 -0800142 # Enable Root port 1 with SRCCLKREQ1#
Duncan Laurie81485d22016-10-28 09:13:52 -0700143 register "PcieRpEnable[0]" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -0700144 register "PcieRpClkReqSupport[0]" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -0700145 register "PcieRpClkReqNumber[0]" = "1"
146
Duncan Laurie949e34c2017-01-21 19:11:37 -0800147 # Enable Root port 5 with SRCCLKREQ4#
148 register "PcieRpEnable[4]" = "1"
149 register "PcieRpClkReqSupport[4]" = "1"
150 register "PcieRpClkReqNumber[4]" = "4"
151
Subrata Banik2c3054c2016-11-22 20:21:49 +0530152 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
153 register "usb2_ports[1]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
154 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
155 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800156 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # H1
Subrata Banik2c3054c2016-11-22 20:21:49 +0530157 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Empty
Duncan Laurie81485d22016-10-28 09:13:52 -0700158
Subrata Banik2c3054c2016-11-22 20:21:49 +0530159 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
160 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800161 register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Empty
162 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
Duncan Laurie81485d22016-10-28 09:13:52 -0700163
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800164 # Touchscreen
165 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
166 register "i2c[0]" = "{
167 .speed = I2C_SPEED_FAST_PLUS,
Duncan Laurie92dde2f2017-04-07 02:03:45 -0700168 .rise_time_ns = 98,
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800169 .fall_time_ns = 38,
170 }"
Duncan Laurie81485d22016-10-28 09:13:52 -0700171
172 # Enable I2C1 bus early for TPM access
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800173 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Duncan Lauriec86fa6d2017-02-17 17:26:04 -0800174 register "i2c[1]" = "{
175 .early_init = 1,
176 .speed = I2C_SPEED_FAST,
Duncan Laurie92dde2f2017-04-07 02:03:45 -0700177 .rise_time_ns = 112,
178 .fall_time_ns = 34,
Duncan Lauriec86fa6d2017-02-17 17:26:04 -0800179 }"
Duncan Laurie81485d22016-10-28 09:13:52 -0700180
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800181 # Touchpad
182 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
183 register "i2c[2]" = "{
184 .speed = I2C_SPEED_FAST,
Duncan Laurie4f7d5362017-05-16 19:04:16 -0700185 .speed_config[0] = {
186 .speed = I2C_SPEED_FAST,
187 .scl_lcnt = 186,
188 .scl_hcnt = 93,
189 .sda_hold = 36,
190 }
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800191 }"
192
193 # Audio
194 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
195 register "i2c[4]" = "{
196 .speed = I2C_SPEED_FAST,
197 .rise_time_ns = 240,
198 .fall_time_ns = 30,
199 }"
200
Duncan Laurie81485d22016-10-28 09:13:52 -0700201 # Must leave UART0 enabled or SD/eMMC will not work as PCI
202 register "SerialIoDevMode" = "{
203 [PchSerialIoIndexI2C0] = PchSerialIoPci,
204 [PchSerialIoIndexI2C1] = PchSerialIoPci,
205 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800206 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Duncan Laurie81485d22016-10-28 09:13:52 -0700207 [PchSerialIoIndexI2C4] = PchSerialIoPci,
208 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
209 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Duncan Lauriec5eab982017-05-16 19:06:04 -0700210 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Duncan Lauriee49b8662017-04-13 01:40:53 -0700211 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
Duncan Laurie81485d22016-10-28 09:13:52 -0700212 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
213 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
214 }"
215
216 register "speed_shift_enable" = "1"
217 register "dptf_enable" = "1"
218 register "tdp_pl2_override" = "7"
Duncan Laurie690831d2016-12-16 08:01:09 -0800219 register "tcc_offset" = "10"
Duncan Laurie81485d22016-10-28 09:13:52 -0700220
221 device cpu_cluster 0 on
222 device lapic 0 on end
223 end
224 device domain 0 on
225 device pci 00.0 on end # Host Bridge
226 device pci 02.0 on end # Integrated Graphics Device
227 device pci 14.0 on end # USB xHCI
228 device pci 14.1 off end # USB xDCI (OTG)
229 device pci 14.2 on end # Thermal Subsystem
230 device pci 15.0 on
Furquan Shaikh5360c7e2017-02-19 01:18:09 -0800231 chip drivers/i2c/hid
232 register "generic.hid" = ""WCOM50C1""
233 register "generic.desc" = ""WCOM Digitizer""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800234 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
Duncan Laurie658a6dc2017-02-17 17:27:51 -0800235 register "generic.speed" = "I2C_SPEED_FAST_PLUS"
Duncan Laurie2d140212016-12-15 18:51:29 -0800236 register "hid_desc_reg_offset" = "0x1"
237 device i2c 0a on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700238 end
239 end # I2C #0
240 device pci 15.1 on
241 chip drivers/i2c/tpm
242 register "hid" = ""GOOG0005""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800243 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
Duncan Laurie81485d22016-10-28 09:13:52 -0700244 device i2c 50 on end
245 end
246 end # I2C #1
247 device pci 15.2 on
Wei-Ning Huang267e4a52017-04-24 18:53:22 +0800248 chip drivers/i2c/hid
249 register "generic.hid" = ""ACPI0C50""
250 register "generic.desc" = ""Touchpad""
251 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)"
252 register "hid_desc_reg_offset" = "0x1"
Duncan Laurie2d140212016-12-15 18:51:29 -0800253 device i2c 49 on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700254 end
Wei-Ning Huang267e4a52017-04-24 18:53:22 +0800255 chip drivers/i2c/generic
256 register "hid" = ""GOOG0008""
257 register "desc" = ""Touchpad EC Interface""
258 device i2c 1e on end
259 end
Duncan Laurie81485d22016-10-28 09:13:52 -0700260 end # I2C #2
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800261 device pci 15.3 off end # I2C #3
Duncan Laurie81485d22016-10-28 09:13:52 -0700262 device pci 16.0 on end # Management Engine Interface 1
263 device pci 16.1 off end # Management Engine Interface 2
264 device pci 16.2 off end # Management Engine IDE-R
265 device pci 16.3 off end # Management Engine KT Redirection
266 device pci 16.4 off end # Management Engine Interface 3
267 device pci 17.0 off end # SATA
268 device pci 19.0 on end # UART #2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800269 device pci 19.1 off end # I2C #5
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800270 device pci 19.2 on
271 chip drivers/i2c/max98927
272 register "interleave_mode" = "1"
273 register "uid" = "0"
274 register "desc" = ""Right Speaker Amp""
275 register "name" = ""MAXR""
276 device i2c 39 on end
277 end
278 chip drivers/i2c/max98927
279 register "interleave_mode" = "1"
280 register "uid" = "1"
281 register "desc" = ""Left Speaker Amp""
282 register "name" = ""MAXL""
283 device i2c 3a on end
284 end
285 chip drivers/i2c/generic
286 register "hid" = ""10EC5663""
287 register "name" = ""RT53""
288 register "desc" = ""Realtek RT5663""
Duncan Laurie887e7932017-03-15 11:34:04 -0700289 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800290 device i2c 13 on end
291 end
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800292 chip drivers/i2c/generic
293 register "hid" = ""10EC5514""
294 register "name" = ""RT54""
295 register "desc" = ""Realtek RT5514""
296 device i2c 57 on end
297 end
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800298 end # I2C #4
Duncan Laurie81485d22016-10-28 09:13:52 -0700299 device pci 1c.0 on
300 chip drivers/intel/wifi
301 register "wake" = "GPE0_PCI_EXP"
302 device pci 00.0 on end
303 end
304 end # PCI Express Port 1
305 device pci 1c.1 off end # PCI Express Port 2
306 device pci 1c.2 off end # PCI Express Port 3
307 device pci 1c.3 off end # PCI Express Port 4
Duncan Laurie949e34c2017-01-21 19:11:37 -0800308 device pci 1c.4 on end # PCI Express Port 5
Duncan Laurie81485d22016-10-28 09:13:52 -0700309 device pci 1c.5 off end # PCI Express Port 6
310 device pci 1c.6 off end # PCI Express Port 7
311 device pci 1c.7 off end # PCI Express Port 8
312 device pci 1d.0 off end # PCI Express Port 9
313 device pci 1d.1 off end # PCI Express Port 10
314 device pci 1d.2 off end # PCI Express Port 11
315 device pci 1d.3 off end # PCI Express Port 12
316 device pci 1e.0 on end # UART #0
317 device pci 1e.1 off end # UART #1
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800318 device pci 1e.2 on
319 chip drivers/spi/acpi
320 register "hid" = "ACPI_DT_NAMESPACE_HID"
321 register "compat_string" = ""realtek,rt5514""
322 register "irq" = "ACPI_IRQ_LEVEL_HIGH(GPP_F10_IRQ)"
323 device spi 0 on end
324 end
325 end # GSPI #0
Duncan Lauriec5eab982017-05-16 19:06:04 -0700326 device pci 1e.3 off end # GSPI #1
Duncan Laurie81485d22016-10-28 09:13:52 -0700327 device pci 1e.4 on end # eMMC
328 device pci 1e.5 off end # SDIO
329 device pci 1e.6 off end # SDCard
330 device pci 1f.0 on
331 chip ec/google/chromeec
332 device pnp 0c09.0 on end
333 end
334 end # LPC Interface
335 device pci 1f.1 on end # P2SB
336 device pci 1f.2 on end # Power Management Controller
337 device pci 1f.3 on end # Intel HDA
338 device pci 1f.4 on end # SMBus
339 device pci 1f.5 on end # PCH SPI
340 device pci 1f.6 off end # GbE
341 end
342end