blob: 76ef17c610861b9d7e6050002773ac6cfaab0c97 [file] [log] [blame]
Duncan Laurie81485d22016-10-28 09:13:52 -07001chip soc/intel/skylake
2
3 # Enable deep Sx states
4 register "deep_s3_enable" = "1"
5 register "deep_s5_enable" = "1"
6 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN"
7
8 # GPE configuration
9 # Note that GPE events called out in ASL code rely on this
10 # route. i.e. If this route changes then the affected GPE
11 # offset bits also need to be changed.
12 register "gpe0_dw0" = "GPP_B"
13 register "gpe0_dw1" = "GPP_D"
14 register "gpe0_dw2" = "GPP_E"
15
16 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
17 register "gen1_dec" = "0x00fc0801"
18 register "gen2_dec" = "0x000c0201"
19 # EC memory map range is 0x900-0x9ff
20 register "gen3_dec" = "0x00fc0901"
21
22 # FSP Configuration
23 register "ProbelessTrace" = "0"
24 register "EnableLan" = "0"
25 register "EnableSata" = "0"
26 register "SataSalpSupport" = "0"
27 register "SataMode" = "0"
28 register "SataPortsEnable[0]" = "0"
29 register "EnableAzalia" = "1"
30 register "DspEnable" = "1"
31 register "IoBufferOwnership" = "3"
32 register "EnableTraceHub" = "0"
33 register "XdciEnable" = "0"
34 register "SsicPortEnable" = "0"
35 register "SmbusEnable" = "1"
36 register "Cio2Enable" = "0"
37 register "ScsEmmcEnabled" = "1"
38 register "ScsEmmcHs400Enabled" = "1"
39 register "ScsSdCardEnabled" = "0"
40 register "IshEnable" = "0"
41 register "PttSwitch" = "0"
42 register "InternalGfx" = "1"
43 register "SkipExtGfxScan" = "1"
44 register "Device4Enable" = "1"
45 register "HeciEnabled" = "0"
46 register "FspSkipMpInit" = "1"
47 register "SaGv" = "3"
48 register "SerialIrqConfigSirqEnable" = "1"
49 register "PmConfigSlpS3MinAssert" = "2" # 50ms
50 register "PmConfigSlpS4MinAssert" = "1" # 1s
51 register "PmConfigSlpSusMinAssert" = "1" # 500ms
52 register "PmConfigSlpAMinAssert" = "3" # 2s
53 register "PmTimerDisabled" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -070054
55 register "pirqa_routing" = "PCH_IRQ11"
56 register "pirqb_routing" = "PCH_IRQ10"
57 register "pirqc_routing" = "PCH_IRQ11"
58 register "pirqd_routing" = "PCH_IRQ11"
59 register "pirqe_routing" = "PCH_IRQ11"
60 register "pirqf_routing" = "PCH_IRQ11"
61 register "pirqg_routing" = "PCH_IRQ11"
62 register "pirqh_routing" = "PCH_IRQ11"
63
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070064 # VR Settings Configuration for 4 Domains
65 #+----------------+-------+-------+-------+-------+
66 #| Domain/Setting | SA | IA | GTUS | GTS |
67 #+----------------+-------+-------+-------+-------+
68 #| Psi1Threshold | 20A | 20A | 20A | 20A |
69 #| Psi2Threshold | 4A | 5A | 5A | 5A |
70 #| Psi3Threshold | 1A | 1A | 1A | 1A |
71 #| Psi3Enable | 1 | 1 | 1 | 1 |
72 #| Psi4Enable | 1 | 1 | 1 | 1 |
73 #| ImonSlope | 0 | 0 | 0 | 0 |
74 #| ImonOffset | 0 | 0 | 0 | 0 |
75 #| IccMax | 4A | 24A | 24A | 24A |
76 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Duncan Laurie57e9e3b2017-03-14 16:42:33 -070077 #| AcLoadline | 17.9 | 5.9 | 5.7 | 5.7 |
78 #| DcLoadline | 14 | 4.7 | 4.2 | 4.2 |
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070079 #+----------------+-------+-------+-------+-------+
Duncan Laurie81485d22016-10-28 09:13:52 -070080 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
81 .vr_config_enable = 1,
82 .psi1threshold = VR_CFG_AMP(20),
83 .psi2threshold = VR_CFG_AMP(4),
84 .psi3threshold = VR_CFG_AMP(1),
85 .psi3enable = 1,
86 .psi4enable = 1,
87 .imon_slope = 0x0,
88 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -080089 .icc_max = VR_CFG_AMP(4),
Duncan Laurie81485d22016-10-28 09:13:52 -070090 .voltage_limit = 1520,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -070091 .ac_loadline = 1790,
92 .dc_loadline = 1400,
Duncan Laurie81485d22016-10-28 09:13:52 -070093 }"
94
95 register "domain_vr_config[VR_IA_CORE]" = "{
96 .vr_config_enable = 1,
97 .psi1threshold = VR_CFG_AMP(20),
98 .psi2threshold = VR_CFG_AMP(5),
99 .psi3threshold = VR_CFG_AMP(1),
100 .psi3enable = 1,
101 .psi4enable = 1,
102 .imon_slope = 0x0,
103 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800104 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700105 .voltage_limit = 1520,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -0700106 .ac_loadline = 590,
107 .dc_loadline = 470,
Duncan Laurie81485d22016-10-28 09:13:52 -0700108 }"
109
Duncan Laurie81485d22016-10-28 09:13:52 -0700110 register "domain_vr_config[VR_GT_UNSLICED]" = "{
111 .vr_config_enable = 1,
112 .psi1threshold = VR_CFG_AMP(20),
113 .psi2threshold = VR_CFG_AMP(5),
114 .psi3threshold = VR_CFG_AMP(1),
115 .psi3enable = 1,
116 .psi4enable = 1,
117 .imon_slope = 0x0,
118 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800119 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700120 .voltage_limit = 1520,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -0700121 .ac_loadline = 570,
122 .dc_loadline = 420,
Duncan Laurie81485d22016-10-28 09:13:52 -0700123 }"
124
125 register "domain_vr_config[VR_GT_SLICED]" = "{
126 .vr_config_enable = 1,
127 .psi1threshold = VR_CFG_AMP(20),
128 .psi2threshold = VR_CFG_AMP(5),
129 .psi3threshold = VR_CFG_AMP(1),
130 .psi3enable = 1,
131 .psi4enable = 1,
132 .imon_slope = 0x0,
133 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800134 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700135 .voltage_limit = 1520,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -0700136 .ac_loadline = 570,
137 .dc_loadline = 420,
Duncan Laurie81485d22016-10-28 09:13:52 -0700138 }"
139
Duncan Laurie949e34c2017-01-21 19:11:37 -0800140 # Enable Root port 1 with SRCCLKREQ1#
Duncan Laurie81485d22016-10-28 09:13:52 -0700141 register "PcieRpEnable[0]" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -0700142 register "PcieRpClkReqSupport[0]" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -0700143 register "PcieRpClkReqNumber[0]" = "1"
144
Duncan Laurie949e34c2017-01-21 19:11:37 -0800145 # Enable Root port 5 with SRCCLKREQ4#
146 register "PcieRpEnable[4]" = "1"
147 register "PcieRpClkReqSupport[4]" = "1"
148 register "PcieRpClkReqNumber[4]" = "4"
149
Subrata Banik2c3054c2016-11-22 20:21:49 +0530150 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
151 register "usb2_ports[1]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
152 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
153 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800154 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # H1
Subrata Banik2c3054c2016-11-22 20:21:49 +0530155 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Empty
Duncan Laurie81485d22016-10-28 09:13:52 -0700156
Subrata Banik2c3054c2016-11-22 20:21:49 +0530157 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
158 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800159 register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Empty
160 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
Duncan Laurie81485d22016-10-28 09:13:52 -0700161
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800162 # Touchscreen
163 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
164 register "i2c[0]" = "{
165 .speed = I2C_SPEED_FAST_PLUS,
166 .rise_time_ns = 17,
167 .fall_time_ns = 38,
168 }"
Duncan Laurie81485d22016-10-28 09:13:52 -0700169
170 # Enable I2C1 bus early for TPM access
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800171 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Duncan Lauriec86fa6d2017-02-17 17:26:04 -0800172 register "i2c[1]" = "{
173 .early_init = 1,
174 .speed = I2C_SPEED_FAST,
175 .rise_time_ns = 88,
176 .fall_time_ns = 32,
177 }"
Duncan Laurie81485d22016-10-28 09:13:52 -0700178
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800179 # Touchpad
180 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
181 register "i2c[2]" = "{
182 .speed = I2C_SPEED_FAST,
183 .rise_time_ns = 247,
184 .fall_time_ns = 17,
185 }"
186
187 # Audio
188 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
189 register "i2c[4]" = "{
190 .speed = I2C_SPEED_FAST,
191 .rise_time_ns = 240,
192 .fall_time_ns = 30,
193 }"
194
Duncan Laurie81485d22016-10-28 09:13:52 -0700195 # Must leave UART0 enabled or SD/eMMC will not work as PCI
196 register "SerialIoDevMode" = "{
197 [PchSerialIoIndexI2C0] = PchSerialIoPci,
198 [PchSerialIoIndexI2C1] = PchSerialIoPci,
199 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800200 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Duncan Laurie81485d22016-10-28 09:13:52 -0700201 [PchSerialIoIndexI2C4] = PchSerialIoPci,
202 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
203 [PchSerialIoIndexSpi0] = PchSerialIoPci,
204 [PchSerialIoIndexSpi1] = PchSerialIoPci,
205 [PchSerialIoIndexUart0] = PchSerialIoPci,
206 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
207 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
208 }"
209
210 register "speed_shift_enable" = "1"
211 register "dptf_enable" = "1"
212 register "tdp_pl2_override" = "7"
Duncan Laurie690831d2016-12-16 08:01:09 -0800213 register "tcc_offset" = "10"
Duncan Laurie81485d22016-10-28 09:13:52 -0700214
215 device cpu_cluster 0 on
216 device lapic 0 on end
217 end
218 device domain 0 on
219 device pci 00.0 on end # Host Bridge
220 device pci 02.0 on end # Integrated Graphics Device
221 device pci 14.0 on end # USB xHCI
222 device pci 14.1 off end # USB xDCI (OTG)
223 device pci 14.2 on end # Thermal Subsystem
224 device pci 15.0 on
Furquan Shaikh5360c7e2017-02-19 01:18:09 -0800225 chip drivers/i2c/hid
226 register "generic.hid" = ""WCOM50C1""
227 register "generic.desc" = ""WCOM Digitizer""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800228 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
Duncan Laurie658a6dc2017-02-17 17:27:51 -0800229 register "generic.speed" = "I2C_SPEED_FAST_PLUS"
Duncan Laurie2d140212016-12-15 18:51:29 -0800230 register "hid_desc_reg_offset" = "0x1"
231 device i2c 0a on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700232 end
233 end # I2C #0
234 device pci 15.1 on
235 chip drivers/i2c/tpm
236 register "hid" = ""GOOG0005""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800237 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
Duncan Laurie81485d22016-10-28 09:13:52 -0700238 device i2c 50 on end
239 end
240 end # I2C #1
241 device pci 15.2 on
Wei-Ning Huange9a22952017-02-07 14:14:39 +0800242 chip drivers/i2c/generic
243 register "hid" = ""GOOG5400""
244 register "desc" = ""Touchpad""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800245 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
Duncan Laurie2d140212016-12-15 18:51:29 -0800246 device i2c 49 on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700247 end
248 end # I2C #2
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800249 device pci 15.3 off end # I2C #3
Duncan Laurie81485d22016-10-28 09:13:52 -0700250 device pci 16.0 on end # Management Engine Interface 1
251 device pci 16.1 off end # Management Engine Interface 2
252 device pci 16.2 off end # Management Engine IDE-R
253 device pci 16.3 off end # Management Engine KT Redirection
254 device pci 16.4 off end # Management Engine Interface 3
255 device pci 17.0 off end # SATA
256 device pci 19.0 on end # UART #2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800257 device pci 19.1 off end # I2C #5
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800258 device pci 19.2 on
259 chip drivers/i2c/max98927
260 register "interleave_mode" = "1"
261 register "uid" = "0"
262 register "desc" = ""Right Speaker Amp""
263 register "name" = ""MAXR""
264 device i2c 39 on end
265 end
266 chip drivers/i2c/max98927
267 register "interleave_mode" = "1"
268 register "uid" = "1"
269 register "desc" = ""Left Speaker Amp""
270 register "name" = ""MAXL""
271 device i2c 3a on end
272 end
273 chip drivers/i2c/generic
274 register "hid" = ""10EC5663""
275 register "name" = ""RT53""
276 register "desc" = ""Realtek RT5663""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800277 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)"
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800278 register "probed" = "1"
279 device i2c 13 on end
280 end
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800281 chip drivers/i2c/generic
282 register "hid" = ""10EC5514""
283 register "name" = ""RT54""
284 register "desc" = ""Realtek RT5514""
285 device i2c 57 on end
286 end
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800287 end # I2C #4
Duncan Laurie81485d22016-10-28 09:13:52 -0700288 device pci 1c.0 on
289 chip drivers/intel/wifi
290 register "wake" = "GPE0_PCI_EXP"
291 device pci 00.0 on end
292 end
293 end # PCI Express Port 1
294 device pci 1c.1 off end # PCI Express Port 2
295 device pci 1c.2 off end # PCI Express Port 3
296 device pci 1c.3 off end # PCI Express Port 4
Duncan Laurie949e34c2017-01-21 19:11:37 -0800297 device pci 1c.4 on end # PCI Express Port 5
Duncan Laurie81485d22016-10-28 09:13:52 -0700298 device pci 1c.5 off end # PCI Express Port 6
299 device pci 1c.6 off end # PCI Express Port 7
300 device pci 1c.7 off end # PCI Express Port 8
301 device pci 1d.0 off end # PCI Express Port 9
302 device pci 1d.1 off end # PCI Express Port 10
303 device pci 1d.2 off end # PCI Express Port 11
304 device pci 1d.3 off end # PCI Express Port 12
305 device pci 1e.0 on end # UART #0
306 device pci 1e.1 off end # UART #1
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800307 device pci 1e.2 on
308 chip drivers/spi/acpi
309 register "hid" = "ACPI_DT_NAMESPACE_HID"
310 register "compat_string" = ""realtek,rt5514""
311 register "irq" = "ACPI_IRQ_LEVEL_HIGH(GPP_F10_IRQ)"
312 device spi 0 on end
313 end
314 end # GSPI #0
Furquan Shaikh231c1982017-02-11 12:02:40 -0800315 device pci 1e.3 on
316 chip drivers/spi/acpi
317 register "hid" = "ACPI_DT_NAMESPACE_HID"
318 register "uid" = "1"
319 register "compat_string" = ""fpc,fpc1020""
Duncan Laurie6c823852017-02-17 17:24:12 -0800320 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_HIGH(GPP_C8)"
321 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C9)"
Furquan Shaikh231c1982017-02-11 12:02:40 -0800322 device spi 0 on end
323 end
324 end # GSPI #1
Duncan Laurie81485d22016-10-28 09:13:52 -0700325 device pci 1e.4 on end # eMMC
326 device pci 1e.5 off end # SDIO
327 device pci 1e.6 off end # SDCard
328 device pci 1f.0 on
329 chip ec/google/chromeec
330 device pnp 0c09.0 on end
331 end
332 end # LPC Interface
333 device pci 1f.1 on end # P2SB
334 device pci 1f.2 on end # Power Management Controller
335 device pci 1f.3 on end # Intel HDA
336 device pci 1f.4 on end # SMBus
337 device pci 1f.5 on end # PCH SPI
338 device pci 1f.6 off end # GbE
339 end
340end