blob: 30a327e2ccb6850897d099709afb3c92b0f8c8ca [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 Lauried60b4932017-11-01 13:23:45 -070056 register "VmxEnable" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -070057
58 register "pirqa_routing" = "PCH_IRQ11"
59 register "pirqb_routing" = "PCH_IRQ10"
60 register "pirqc_routing" = "PCH_IRQ11"
61 register "pirqd_routing" = "PCH_IRQ11"
62 register "pirqe_routing" = "PCH_IRQ11"
63 register "pirqf_routing" = "PCH_IRQ11"
64 register "pirqg_routing" = "PCH_IRQ11"
65 register "pirqh_routing" = "PCH_IRQ11"
66
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070067 # VR Settings Configuration for 4 Domains
68 #+----------------+-------+-------+-------+-------+
69 #| Domain/Setting | SA | IA | GTUS | GTS |
70 #+----------------+-------+-------+-------+-------+
71 #| Psi1Threshold | 20A | 20A | 20A | 20A |
V Sowmya41f93732017-05-23 14:17:01 +053072 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070073 #| Psi3Threshold | 1A | 1A | 1A | 1A |
74 #| Psi3Enable | 1 | 1 | 1 | 1 |
75 #| Psi4Enable | 1 | 1 | 1 | 1 |
76 #| ImonSlope | 0 | 0 | 0 | 0 |
77 #| ImonOffset | 0 | 0 | 0 | 0 |
78 #| IccMax | 4A | 24A | 24A | 24A |
79 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
V Sowmya41f93732017-05-23 14:17:01 +053080 #| AcLoadline | 14.9 | 5 | 5.7 | 4.57 |
81 #| DcLoadline | 14.2 | 4.86 | 4.2 | 4.3 |
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070082 #+----------------+-------+-------+-------+-------+
Duncan Laurie81485d22016-10-28 09:13:52 -070083 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
84 .vr_config_enable = 1,
85 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +053086 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -070087 .psi3threshold = VR_CFG_AMP(1),
88 .psi3enable = 1,
89 .psi4enable = 1,
90 .imon_slope = 0x0,
91 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -080092 .icc_max = VR_CFG_AMP(4),
Duncan Laurie81485d22016-10-28 09:13:52 -070093 .voltage_limit = 1520,
V Sowmya41f93732017-05-23 14:17:01 +053094 .ac_loadline = 1490,
95 .dc_loadline = 1420,
Duncan Laurie81485d22016-10-28 09:13:52 -070096 }"
97
98 register "domain_vr_config[VR_IA_CORE]" = "{
99 .vr_config_enable = 1,
100 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +0530101 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -0700102 .psi3threshold = VR_CFG_AMP(1),
103 .psi3enable = 1,
104 .psi4enable = 1,
105 .imon_slope = 0x0,
106 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800107 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700108 .voltage_limit = 1520,
V Sowmya41f93732017-05-23 14:17:01 +0530109 .ac_loadline = 500,
110 .dc_loadline = 486,
Duncan Laurie81485d22016-10-28 09:13:52 -0700111 }"
112
Duncan Laurie81485d22016-10-28 09:13:52 -0700113 register "domain_vr_config[VR_GT_UNSLICED]" = "{
114 .vr_config_enable = 1,
115 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +0530116 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -0700117 .psi3threshold = VR_CFG_AMP(1),
118 .psi3enable = 1,
119 .psi4enable = 1,
120 .imon_slope = 0x0,
121 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800122 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700123 .voltage_limit = 1520,
Duncan Laurie57e9e3b2017-03-14 16:42:33 -0700124 .ac_loadline = 570,
125 .dc_loadline = 420,
Duncan Laurie81485d22016-10-28 09:13:52 -0700126 }"
127
128 register "domain_vr_config[VR_GT_SLICED]" = "{
129 .vr_config_enable = 1,
130 .psi1threshold = VR_CFG_AMP(20),
V Sowmya41f93732017-05-23 14:17:01 +0530131 .psi2threshold = VR_CFG_AMP(2),
Duncan Laurie81485d22016-10-28 09:13:52 -0700132 .psi3threshold = VR_CFG_AMP(1),
133 .psi3enable = 1,
134 .psi4enable = 1,
135 .imon_slope = 0x0,
136 .imon_offset = 0x0,
Duncan Laurie949e34c2017-01-21 19:11:37 -0800137 .icc_max = VR_CFG_AMP(24),
Duncan Laurie81485d22016-10-28 09:13:52 -0700138 .voltage_limit = 1520,
V Sowmya41f93732017-05-23 14:17:01 +0530139 .ac_loadline = 457,
140 .dc_loadline = 430,
Duncan Laurie81485d22016-10-28 09:13:52 -0700141 }"
142
Duncan Laurie949e34c2017-01-21 19:11:37 -0800143 # Enable Root port 1 with SRCCLKREQ1#
Duncan Laurie81485d22016-10-28 09:13:52 -0700144 register "PcieRpEnable[0]" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -0700145 register "PcieRpClkReqSupport[0]" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -0700146 register "PcieRpClkReqNumber[0]" = "1"
Furquan Shaikhebd67c22017-09-18 14:21:48 -0700147 register "PcieRpAdvancedErrorReporting[0]" = "1"
148 register "PcieRpLtrEnable[0]" = "1"
Duncan Laurie81485d22016-10-28 09:13:52 -0700149
Duncan Laurie949e34c2017-01-21 19:11:37 -0800150 # Enable Root port 5 with SRCCLKREQ4#
151 register "PcieRpEnable[4]" = "1"
152 register "PcieRpClkReqSupport[4]" = "1"
153 register "PcieRpClkReqNumber[4]" = "4"
Furquan Shaikhebd67c22017-09-18 14:21:48 -0700154 register "PcieRpAdvancedErrorReporting[4]" = "1"
155 register "PcieRpLtrEnable[4]" = "1"
Duncan Laurie949e34c2017-01-21 19:11:37 -0800156
Subrata Banik2c3054c2016-11-22 20:21:49 +0530157 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
158 register "usb2_ports[1]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
159 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
160 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800161 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # H1
Subrata Banik2c3054c2016-11-22 20:21:49 +0530162 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Empty
Duncan Laurie81485d22016-10-28 09:13:52 -0700163
Subrata Banik2c3054c2016-11-22 20:21:49 +0530164 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
165 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800166 register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Empty
167 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
Duncan Laurie81485d22016-10-28 09:13:52 -0700168
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800169 # Touchscreen
170 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
171 register "i2c[0]" = "{
172 .speed = I2C_SPEED_FAST_PLUS,
Duncan Laurie92dde2f2017-04-07 02:03:45 -0700173 .rise_time_ns = 98,
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800174 .fall_time_ns = 38,
175 }"
Duncan Laurie81485d22016-10-28 09:13:52 -0700176
177 # Enable I2C1 bus early for TPM access
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800178 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Duncan Lauriec86fa6d2017-02-17 17:26:04 -0800179 register "i2c[1]" = "{
180 .early_init = 1,
181 .speed = I2C_SPEED_FAST,
Duncan Laurie92dde2f2017-04-07 02:03:45 -0700182 .rise_time_ns = 112,
183 .fall_time_ns = 34,
Duncan Lauriec86fa6d2017-02-17 17:26:04 -0800184 }"
Duncan Laurie81485d22016-10-28 09:13:52 -0700185
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800186 # Touchpad
187 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
188 register "i2c[2]" = "{
189 .speed = I2C_SPEED_FAST,
Duncan Laurie4f7d5362017-05-16 19:04:16 -0700190 .speed_config[0] = {
191 .speed = I2C_SPEED_FAST,
192 .scl_lcnt = 186,
193 .scl_hcnt = 93,
194 .sda_hold = 36,
195 }
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800196 }"
197
198 # Audio
199 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
200 register "i2c[4]" = "{
201 .speed = I2C_SPEED_FAST,
Duncan Lauriebfd17e32017-10-26 08:44:16 -0700202 .speed_config[0] = {
203 .speed = I2C_SPEED_FAST,
204 .scl_lcnt = 176,
205 .scl_hcnt = 95,
206 .sda_hold = 36,
207 }
Duncan Lauried4d6ba12017-02-24 12:28:12 -0800208 }"
209
Duncan Laurie81485d22016-10-28 09:13:52 -0700210 # Must leave UART0 enabled or SD/eMMC will not work as PCI
211 register "SerialIoDevMode" = "{
212 [PchSerialIoIndexI2C0] = PchSerialIoPci,
213 [PchSerialIoIndexI2C1] = PchSerialIoPci,
214 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800215 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Duncan Laurie81485d22016-10-28 09:13:52 -0700216 [PchSerialIoIndexI2C4] = PchSerialIoPci,
217 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
218 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Duncan Lauriec5eab982017-05-16 19:06:04 -0700219 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Duncan Lauriee49b8662017-04-13 01:40:53 -0700220 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
Duncan Laurie81485d22016-10-28 09:13:52 -0700221 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
222 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
223 }"
224
225 register "speed_shift_enable" = "1"
226 register "dptf_enable" = "1"
Duncan Laurie07a597f2017-05-26 15:55:04 -0700227 register "tdp_pl2_override" = "15"
Duncan Laurie690831d2016-12-16 08:01:09 -0800228 register "tcc_offset" = "10"
Duncan Laurie81485d22016-10-28 09:13:52 -0700229
Subrata Banikc204aaa2017-08-17 15:49:58 +0530230 # Lock Down
231 register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT"
232
Duncan Laurie81485d22016-10-28 09:13:52 -0700233 device cpu_cluster 0 on
234 device lapic 0 on end
235 end
236 device domain 0 on
237 device pci 00.0 on end # Host Bridge
238 device pci 02.0 on end # Integrated Graphics Device
239 device pci 14.0 on end # USB xHCI
240 device pci 14.1 off end # USB xDCI (OTG)
241 device pci 14.2 on end # Thermal Subsystem
242 device pci 15.0 on
Furquan Shaikh5360c7e2017-02-19 01:18:09 -0800243 chip drivers/i2c/hid
244 register "generic.hid" = ""WCOM50C1""
245 register "generic.desc" = ""WCOM Digitizer""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800246 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
Duncan Laurie658a6dc2017-02-17 17:27:51 -0800247 register "generic.speed" = "I2C_SPEED_FAST_PLUS"
Duncan Laurie2d140212016-12-15 18:51:29 -0800248 register "hid_desc_reg_offset" = "0x1"
249 device i2c 0a on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700250 end
251 end # I2C #0
252 device pci 15.1 on
253 chip drivers/i2c/tpm
254 register "hid" = ""GOOG0005""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800255 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
Duncan Laurie81485d22016-10-28 09:13:52 -0700256 device i2c 50 on end
257 end
258 end # I2C #1
259 device pci 15.2 on
Wei-Ning Huang267e4a52017-04-24 18:53:22 +0800260 chip drivers/i2c/hid
261 register "generic.hid" = ""ACPI0C50""
262 register "generic.desc" = ""Touchpad""
263 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)"
264 register "hid_desc_reg_offset" = "0x1"
Duncan Laurie2d140212016-12-15 18:51:29 -0800265 device i2c 49 on end
Duncan Laurie81485d22016-10-28 09:13:52 -0700266 end
Wei-Ning Huang267e4a52017-04-24 18:53:22 +0800267 chip drivers/i2c/generic
268 register "hid" = ""GOOG0008""
269 register "desc" = ""Touchpad EC Interface""
270 device i2c 1e on end
271 end
Duncan Laurie81485d22016-10-28 09:13:52 -0700272 end # I2C #2
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800273 device pci 15.3 off end # I2C #3
Duncan Laurie81485d22016-10-28 09:13:52 -0700274 device pci 16.0 on end # Management Engine Interface 1
275 device pci 16.1 off end # Management Engine Interface 2
276 device pci 16.2 off end # Management Engine IDE-R
277 device pci 16.3 off end # Management Engine KT Redirection
278 device pci 16.4 off end # Management Engine Interface 3
279 device pci 17.0 off end # SATA
280 device pci 19.0 on end # UART #2
Duncan Laurie949e34c2017-01-21 19:11:37 -0800281 device pci 19.1 off end # I2C #5
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800282 device pci 19.2 on
283 chip drivers/i2c/max98927
284 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700285 register "vmon_slot_no" = "4"
286 register "imon_slot_no" = "5"
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800287 register "uid" = "0"
288 register "desc" = ""Right Speaker Amp""
289 register "name" = ""MAXR""
290 device i2c 39 on end
291 end
292 chip drivers/i2c/max98927
293 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700294 register "vmon_slot_no" = "6"
295 register "imon_slot_no" = "7"
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800296 register "uid" = "1"
297 register "desc" = ""Left Speaker Amp""
298 register "name" = ""MAXL""
299 device i2c 3a on end
300 end
Duncan Laurief8e4eb82017-08-10 18:42:08 -0700301 chip drivers/i2c/rt5663
Duncan Laurie887e7932017-03-15 11:34:04 -0700302 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
Duncan Laurief8e4eb82017-08-10 18:42:08 -0700303 register "dc_offset_l_manual" = "0xffd160"
304 register "dc_offset_r_manual" = "0xffd1c0"
305 register "dc_offset_l_manual_mic" = "0xff8a10"
306 register "dc_offset_r_manual_mic" = "0xff8ab0"
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800307 device i2c 13 on end
308 end
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800309 chip drivers/i2c/generic
310 register "hid" = ""10EC5514""
311 register "name" = ""RT54""
312 register "desc" = ""Realtek RT5514""
Duncan Laurief10c8f92017-08-29 08:36:55 -0700313 register "property_count" = "1"
314 # Set the DMIC initial delay to 16ms to avoid pop noise
315 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
316 register "property_list[0].name" = ""realtek,dmic-init-delay""
317 register "property_list[0].integer" = "16"
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800318 device i2c 57 on end
319 end
Duncan Laurie5492bfb52017-02-17 17:40:10 -0800320 end # I2C #4
Duncan Laurie81485d22016-10-28 09:13:52 -0700321 device pci 1c.0 on
322 chip drivers/intel/wifi
323 register "wake" = "GPE0_PCI_EXP"
324 device pci 00.0 on end
325 end
326 end # PCI Express Port 1
327 device pci 1c.1 off end # PCI Express Port 2
328 device pci 1c.2 off end # PCI Express Port 3
329 device pci 1c.3 off end # PCI Express Port 4
Duncan Laurie949e34c2017-01-21 19:11:37 -0800330 device pci 1c.4 on end # PCI Express Port 5
Duncan Laurie81485d22016-10-28 09:13:52 -0700331 device pci 1c.5 off end # PCI Express Port 6
332 device pci 1c.6 off end # PCI Express Port 7
333 device pci 1c.7 off end # PCI Express Port 8
334 device pci 1d.0 off end # PCI Express Port 9
335 device pci 1d.1 off end # PCI Express Port 10
336 device pci 1d.2 off end # PCI Express Port 11
337 device pci 1d.3 off end # PCI Express Port 12
338 device pci 1e.0 on end # UART #0
339 device pci 1e.1 off end # UART #1
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800340 device pci 1e.2 on
341 chip drivers/spi/acpi
342 register "hid" = "ACPI_DT_NAMESPACE_HID"
343 register "compat_string" = ""realtek,rt5514""
Duncan Laurie9692f312017-06-30 02:01:02 -0700344 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_F10_IRQ)"
Duncan Laurie37da8842017-09-27 03:45:53 -0700345 register "speed" = "12 * MHz"
Duncan Laurie2661a9f2017-03-02 10:15:23 -0800346 device spi 0 on end
347 end
348 end # GSPI #0
Duncan Lauriec5eab982017-05-16 19:06:04 -0700349 device pci 1e.3 off end # GSPI #1
Duncan Laurie81485d22016-10-28 09:13:52 -0700350 device pci 1e.4 on end # eMMC
351 device pci 1e.5 off end # SDIO
352 device pci 1e.6 off end # SDCard
353 device pci 1f.0 on
354 chip ec/google/chromeec
355 device pnp 0c09.0 on end
356 end
357 end # LPC Interface
358 device pci 1f.1 on end # P2SB
359 device pci 1f.2 on end # Power Management Controller
360 device pci 1f.3 on end # Intel HDA
361 device pci 1f.4 on end # SMBus
362 device pci 1f.5 on end # PCH SPI
363 device pci 1f.6 off end # GbE
364 end
365end