blob: 99ddb2edeaab0343642aa35821ec2a99b45ca532 [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 |
71 #| Psi2Threshold | 4A | 5A | 5A | 5A |
72 #| 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 |
Duncan Laurie57e9e3b2017-03-14 16:42:33 -070079 #| AcLoadline | 17.9 | 5.9 | 5.7 | 5.7 |
80 #| DcLoadline | 14 | 4.7 | 4.2 | 4.2 |
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),
85 .psi2threshold = VR_CFG_AMP(4),
86 .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,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -070093 .ac_loadline = 1790,
94 .dc_loadline = 1400,
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),
100 .psi2threshold = VR_CFG_AMP(5),
101 .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,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -0700108 .ac_loadline = 590,
109 .dc_loadline = 470,
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),
115 .psi2threshold = VR_CFG_AMP(5),
116 .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),
130 .psi2threshold = VR_CFG_AMP(5),
131 .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,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -0700138 .ac_loadline = 570,
139 .dc_loadline = 420,
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 Laurie92dde2f2017-04-07 02:03:45 -0700185 .rise_time_ns = 111,
186 .fall_time_ns = 41,
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800187 }"
188
189 # Audio
190 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
191 register "i2c[4]" = "{
192 .speed = I2C_SPEED_FAST,
193 .rise_time_ns = 240,
194 .fall_time_ns = 30,
195 }"
196
Duncan Laurie81485d22016-10-28 09:13:52 -0700197 # Must leave UART0 enabled or SD/eMMC will not work as PCI
198 register "SerialIoDevMode" = "{
199 [PchSerialIoIndexI2C0] = PchSerialIoPci,
200 [PchSerialIoIndexI2C1] = PchSerialIoPci,
201 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800202 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Duncan Laurie81485d22016-10-28 09:13:52 -0700203 [PchSerialIoIndexI2C4] = PchSerialIoPci,
204 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
205 [PchSerialIoIndexSpi0] = PchSerialIoPci,
206 [PchSerialIoIndexSpi1] = PchSerialIoPci,
Duncan Lauriee49b8662017-04-13 01:40:53 -0700207 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
Duncan Laurie81485d22016-10-28 09:13:52 -0700208 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
209 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
210 }"
211
212 register "speed_shift_enable" = "1"
213 register "dptf_enable" = "1"
214 register "tdp_pl2_override" = "7"
Duncan Laurie690831d2016-12-16 08:01:09 -0800215 register "tcc_offset" = "10"
Duncan Laurie81485d22016-10-28 09:13:52 -0700216
217 device cpu_cluster 0 on
218 device lapic 0 on end
219 end
220 device domain 0 on
221 device pci 00.0 on end # Host Bridge
222 device pci 02.0 on end # Integrated Graphics Device
223 device pci 14.0 on end # USB xHCI
224 device pci 14.1 off end # USB xDCI (OTG)
225 device pci 14.2 on end # Thermal Subsystem
226 device pci 15.0 on
Furquan Shaikh5360c7e2017-02-19 01:18:09 -0800227 chip drivers/i2c/hid
228 register "generic.hid" = ""WCOM50C1""
229 register "generic.desc" = ""WCOM Digitizer""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800230 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
Duncan Laurie658a6dc2017-02-17 17:27:51 -0800231 register "generic.speed" = "I2C_SPEED_FAST_PLUS"
Duncan Laurie2d140212016-12-15 18:51:29 -0800232 register "hid_desc_reg_offset" = "0x1"
233 device i2c 0a on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700234 end
235 end # I2C #0
236 device pci 15.1 on
237 chip drivers/i2c/tpm
238 register "hid" = ""GOOG0005""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800239 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
Duncan Laurie81485d22016-10-28 09:13:52 -0700240 device i2c 50 on end
241 end
242 end # I2C #1
243 device pci 15.2 on
Wei-Ning Huange9a22952017-02-07 14:14:39 +0800244 chip drivers/i2c/generic
245 register "hid" = ""GOOG5400""
246 register "desc" = ""Touchpad""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800247 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
Duncan Laurie2d140212016-12-15 18:51:29 -0800248 device i2c 49 on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700249 end
250 end # I2C #2
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800251 device pci 15.3 off end # I2C #3
Duncan Laurie81485d22016-10-28 09:13:52 -0700252 device pci 16.0 on end # Management Engine Interface 1
253 device pci 16.1 off end # Management Engine Interface 2
254 device pci 16.2 off end # Management Engine IDE-R
255 device pci 16.3 off end # Management Engine KT Redirection
256 device pci 16.4 off end # Management Engine Interface 3
257 device pci 17.0 off end # SATA
258 device pci 19.0 on end # UART #2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800259 device pci 19.1 off end # I2C #5
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800260 device pci 19.2 on
261 chip drivers/i2c/max98927
262 register "interleave_mode" = "1"
263 register "uid" = "0"
264 register "desc" = ""Right Speaker Amp""
265 register "name" = ""MAXR""
266 device i2c 39 on end
267 end
268 chip drivers/i2c/max98927
269 register "interleave_mode" = "1"
270 register "uid" = "1"
271 register "desc" = ""Left Speaker Amp""
272 register "name" = ""MAXL""
273 device i2c 3a on end
274 end
275 chip drivers/i2c/generic
276 register "hid" = ""10EC5663""
277 register "name" = ""RT53""
278 register "desc" = ""Realtek RT5663""
Duncan Laurie887e7932017-03-15 11:34:04 -0700279 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800280 register "probed" = "1"
281 device i2c 13 on end
282 end
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800283 chip drivers/i2c/generic
284 register "hid" = ""10EC5514""
285 register "name" = ""RT54""
286 register "desc" = ""Realtek RT5514""
287 device i2c 57 on end
288 end
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800289 end # I2C #4
Duncan Laurie81485d22016-10-28 09:13:52 -0700290 device pci 1c.0 on
291 chip drivers/intel/wifi
292 register "wake" = "GPE0_PCI_EXP"
293 device pci 00.0 on end
294 end
295 end # PCI Express Port 1
296 device pci 1c.1 off end # PCI Express Port 2
297 device pci 1c.2 off end # PCI Express Port 3
298 device pci 1c.3 off end # PCI Express Port 4
Duncan Laurie949e34c2017-01-21 19:11:37 -0800299 device pci 1c.4 on end # PCI Express Port 5
Duncan Laurie81485d22016-10-28 09:13:52 -0700300 device pci 1c.5 off end # PCI Express Port 6
301 device pci 1c.6 off end # PCI Express Port 7
302 device pci 1c.7 off end # PCI Express Port 8
303 device pci 1d.0 off end # PCI Express Port 9
304 device pci 1d.1 off end # PCI Express Port 10
305 device pci 1d.2 off end # PCI Express Port 11
306 device pci 1d.3 off end # PCI Express Port 12
307 device pci 1e.0 on end # UART #0
308 device pci 1e.1 off end # UART #1
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800309 device pci 1e.2 on
310 chip drivers/spi/acpi
311 register "hid" = "ACPI_DT_NAMESPACE_HID"
312 register "compat_string" = ""realtek,rt5514""
313 register "irq" = "ACPI_IRQ_LEVEL_HIGH(GPP_F10_IRQ)"
314 device spi 0 on end
315 end
316 end # GSPI #0
Furquan Shaikh231c1982017-02-11 12:02:40 -0800317 device pci 1e.3 on
318 chip drivers/spi/acpi
319 register "hid" = "ACPI_DT_NAMESPACE_HID"
320 register "uid" = "1"
321 register "compat_string" = ""fpc,fpc1020""
Duncan Laurie6c823852017-02-17 17:24:12 -0800322 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_HIGH(GPP_C8)"
323 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C9)"
Furquan Shaikh231c1982017-02-11 12:02:40 -0800324 device spi 0 on end
325 end
326 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