blob: e16bd1f1742a2f813f3493af6f15592789b77358 [file] [log] [blame]
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -08001chip soc/intel/tigerlake
2
3 device cpu_cluster 0 on
4 device lapic 0 on end
5 end
6
Shaunak Sahad72cca02020-03-25 11:42:12 -07007 # GPE configuration
8 # Note that GPE events called out in ASL code rely on this
9 # route. i.e. If this route changes then the affected GPE
10 # offset bits also need to be changed.
11 register "pmc_gpe0_dw0" = "GPP_B"
Shaunak Sahab449b9c2020-08-23 21:35:21 -070012 register "pmc_gpe0_dw1" = "GPP_C"
13 register "pmc_gpe0_dw2" = "GPP_D"
Shaunak Sahad72cca02020-03-25 11:42:12 -070014
Jamie Ryu5a401ae2020-06-12 02:47:14 -070015 # Enable heci1 communication
16 register "HeciEnabled" = "1"
17
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080018 # FSP configuration
Shreesh Chhabbic7fe0bd2020-07-07 18:25:45 -070019 register "SaGv" = "SaGv_Enabled"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080020 register "SmbusEnable" = "1"
21
22 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)" # Type-C Port1
Bora Guvendik7377cda2020-08-28 10:50:47 -070023 register "usb2_ports[1]" = "USB2_PORT_EMPTY" # M.2 WWAN
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080024 register "usb2_ports[2]" = "USB2_PORT_MID(OC3)" # M.2 Bluetooth
25 register "usb2_ports[3]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port1
26 register "usb2_ports[4]" = "USB2_PORT_MID(OC0)" # Type-C Port2
27 register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-C Port3
28 register "usb2_ports[6]" = "USB2_PORT_MID(OC3)" # Type-C Port4
29 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port2
30 register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # USB2 Type A port3
31 register "usb2_ports[9]" = "USB2_PORT_MID(OC3)" # USB2 Type A port4
32
33 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port1
34 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port2
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080035
Angel Ponse16692e2020-08-03 12:54:48 +020036 # CPU replacement check
37 register "CpuReplacementCheck" = "1"
Jamie Ryuef079c82020-06-24 15:55:10 -070038
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080039 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
40 register "gen1_dec" = "0x00fc0801"
41 register "gen2_dec" = "0x000c0201"
42 # EC memory map range is 0x900-0x9ff
43 register "gen3_dec" = "0x00fc0901"
44
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080045 register "PcieRpEnable[2]" = "1"
46 register "PcieRpEnable[3]" = "1"
47 register "PcieRpEnable[8]" = "1"
Wonkyu Kim06e067e2020-01-22 23:48:52 -080048 register "PcieRpEnable[10]" = "1"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080049
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070050 # Enable RP LTR
51 register "PcieRpLtrEnable[2]" = "1"
52 register "PcieRpLtrEnable[3]" = "1"
53 register "PcieRpLtrEnable[8]" = "1"
54 register "PcieRpLtrEnable[10]" = "1"
55
Wonkyu Kimf787e872020-03-03 01:58:17 -080056 # Hybrid storage mode
57 register "HybridStorageMode" = "1"
58
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080059 register "PcieClkSrcClkReq[1]" = "1"
60 register "PcieClkSrcClkReq[2]" = "2"
61 register "PcieClkSrcClkReq[3]" = "3"
62
63 register "PcieClkSrcUsage[1]" = "0x2"
64 register "PcieClkSrcUsage[2]" = "0x3"
65 register "PcieClkSrcUsage[3]" = "0x8"
66
Wonkyu Kimd2500632020-01-21 21:54:14 -080067 register "SataSalpSupport" = "1"
68 register "SataPortsEnable[0]" = "1"
69 register "SataPortsEnable[1]" = "1"
70
Wonkyu Kim46cef442020-01-23 00:12:46 -080071 # enabling EDP in PortA
72 register "DdiPortAConfig" = "1"
73
Wonkyu Kim34944be2020-03-02 22:18:26 -080074 register "DdiPortBHpd" = "1"
Wonkyu Kim46cef442020-01-23 00:12:46 -080075 register "DdiPort1Hpd" = "1"
76 register "DdiPort1Ddc" = "1"
77
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080078 register "SerialIoI2cMode" = "{
79 [PchSerialIoIndexI2C0] = PchSerialIoPci,
80 [PchSerialIoIndexI2C1] = PchSerialIoPci,
81 [PchSerialIoIndexI2C2] = PchSerialIoPci,
82 [PchSerialIoIndexI2C3] = PchSerialIoPci,
83 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
84 [PchSerialIoIndexI2C5] = PchSerialIoPci,
85 }"
86
87 register "SerialIoGSpiMode" = "{
88 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070089 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080090 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
91 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
92 }"
93
94 register "SerialIoGSpiCsMode" = "{
95 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070096 [PchSerialIoIndexGSPI1] = 1,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080097 [PchSerialIoIndexGSPI2] = 0,
98 [PchSerialIoIndexGSPI3] = 0,
99 }"
100
101 register "SerialIoGSpiCsState" = "{
102 [PchSerialIoIndexGSPI0] = 0,
103 [PchSerialIoIndexGSPI1] = 0,
104 [PchSerialIoIndexGSPI2] = 0,
105 [PchSerialIoIndexGSPI3] = 0,
106 }"
107
108 register "SerialIoUartMode" = "{
109 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
110 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
111 [PchSerialIoIndexUART2] = PchSerialIoPci,
112 }"
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800113
John Zhaob1c53fc2020-05-13 16:27:03 -0700114 # TCSS USB3
115 register "TcssXhciEn" = "1"
116 register "TcssAuxOri" = "0"
117
John Zhao23d3ad02020-06-30 17:36:24 -0700118 # Enable S0ix
119 register "s0ix_enable" = "1"
120
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530121 # Enable DPTF
122 register "dptf_enable" = "1"
123
124 # Enable Processor Thermal Control
125 register "Device4Enable" = "1"
126
127 # Add PL1 and PL2 values
128 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
129 .tdp_pl1_override = 15,
130 .tdp_pl2_override = 38,
131 .tdp_pl4 = 71,
132 }"
133 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
134 .tdp_pl1_override = 15,
135 .tdp_pl2_override = 60,
136 .tdp_pl4 = 105,
137 }"
138
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800139 #HD Audio
140 register "PchHdaDspEnable" = "1"
141 register "PchHdaAudioLinkHdaEnable" = "0"
142 register "PchHdaAudioLinkDmicEnable[0]" = "1"
143 register "PchHdaAudioLinkDmicEnable[1]" = "1"
144 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700145 register "PchHdaAudioLinkSspEnable[1]" = "0"
146 register "PchHdaAudioLinkSspEnable[2]" = "1"
147 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800148
Wonkyu Kim5c271822020-04-03 00:42:22 -0700149 # Intel Common SoC Config
150 register "common_soc_config" = "{
151 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700152 .gspi[1] = {
153 .speed_mhz = 1,
154 .early_init = 1,
155 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700156 .i2c[0] = {
157 .speed = I2C_SPEED_FAST,
158 },
159 .i2c[1] = {
160 .speed = I2C_SPEED_FAST,
161 },
162 .i2c[2] = {
163 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200164 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700165 .i2c[3] = {
166 .speed = I2C_SPEED_FAST,
167 },
168 .i2c[5] = {
169 .speed = I2C_SPEED_FAST,
170 },
171 }"
172
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800173 device domain 0 on
174 #From EDS(575683)
175 device pci 00.0 on end # Host Bridge 0x9A14:U/0x9A12:Y
176 device pci 02.0 on end # Graphics
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530177 device pci 04.0 on
178 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
179 chip drivers/intel/dptf
180 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
181 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
182
183 # Power Limits Control
184 register "controls.power_limits.pl1" = "{
185 .min_power = 3000,
186 .max_power = 15000,
187 .time_window_min = 28 * MSECS_PER_SEC,
188 .time_window_max = 32 * MSECS_PER_SEC,
189 .granularity = 200,}"
190 register "controls.power_limits.pl2" = "{
191 .min_power = 15000,
192 .max_power = 60000,
193 .time_window_min = 28 * MSECS_PER_SEC,
194 .time_window_max = 32 * MSECS_PER_SEC,
195 .granularity = 1000,}"
196 device generic 0 on end
197 end
198 end # DPTF 0x9A04:U22/0x9A14:U42
199
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800200 device pci 05.0 on end # IPU 0x9A19
201 device pci 06.0 on end # PEG60 0x9A09
John Zhaob1c53fc2020-05-13 16:27:03 -0700202 device pci 07.0 on end # TBT_PCIe0 0x9A23
203 device pci 07.1 on end # TBT_PCIe1 0x9A25
204 device pci 07.2 on end # TBT_PCIe2 0x9A27
205 device pci 07.3 on end # TBT_PCIe3 0x9A29
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800206 device pci 08.0 off end # GNA 0x9A11
207 device pci 09.0 off end # NPK 0x9A33
208 device pci 0a.0 off end # Crash-log SRAM 0x9A0D
209 device pci 0d.0 on end # USB xHCI 0x9A13
210 device pci 0d.1 on end # USB xDCI (OTG) 0x9A15
John Zhaob1c53fc2020-05-13 16:27:03 -0700211 device pci 0d.2 on end # TBT DMA0 0x9A1B
212 device pci 0d.3 on end # TBT DMA1 0x9A1D
Wonkyu Kim165efa12020-05-05 09:10:13 -0700213 device pci 0e.0 off end # VMD 0x9A0B
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800214
215 # From PCH EDS(576591)
Srinidhi N Kaushik3663d552020-03-12 01:08:14 -0700216 device pci 10.2 on end # CNVi: BT 0xA0F5 - A0F7
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800217 device pci 10.6 off end # THC0 0xA0D0
218 device pci 10.7 off end # THC1 0xA0D1
li feng23954252020-03-12 16:38:34 -0700219 device pci 12.0 on # SensorHUB 0xA0FC
220 chip drivers/intel/ish
221 register "firmware_name" = ""tglrvp_ish.bin""
222 device generic 0 on end
223 end
224 end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800225 device pci 12.6 off end # GSPI2 0x34FB
226 device pci 13.0 off end # GSPI3 0xA0FD
Elyes HAOUASfd8de182020-03-31 21:42:02 +0200227 device pci 14.0 on end # USB3.1 xHCI 0xA0ED
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800228 device pci 14.1 on end # USB3.1 xDCI 0xA0EE
229 device pci 14.2 on end # Shared RAM 0xA0EF
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700230 chip drivers/wifi/generic
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800231 register "wake" = "GPE0_PME_B0"
232 device pci 14.3 on end # CNVi: WiFi 0xA0F0 - A0F3
233 end
234
Elyes HAOUASfd8de182020-03-31 21:42:02 +0200235 device pci 15.0 on # I2C0 0xA0E8
Shaunak Saha48b388f2020-05-27 22:48:57 -0700236 chip drivers/i2c/generic
237 register "hid" = ""10EC1308""
238 register "name" = ""RTAM""
239 register "desc" = ""Realtek RT1308 Codec""
240 device i2c 10 on end
241 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800242 chip drivers/i2c/max98373
243 register "vmon_slot_no" = "4"
244 register "imon_slot_no" = "5"
245 register "uid" = "0"
246 register "desc" = ""RIGHT SPEAKER AMP""
247 register "name" = ""MAXR""
248 device i2c 31 on end
249 end
250 chip drivers/i2c/max98373
251 register "vmon_slot_no" = "6"
252 register "imon_slot_no" = "7"
253 register "uid" = "1"
254 register "desc" = ""LEFT SPEAKER AMP""
255 register "name" = ""MAXL""
256 device i2c 32 on end
257 end
258 chip drivers/i2c/generic
259 register "hid" = ""10EC5682""
260 register "name" = ""RT58""
261 register "desc" = ""Realtek RT5682""
262 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
263 register "probed" = "1"
264 # Set the jd_src to RT5668_JD1 for jack detection
265 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
266 register "property_list[0].name" = ""realtek,jd-src""
267 register "property_list[0].integer" = "1"
268 device i2c 1a on end
269 end
270 end # I2C0
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800271 device pci 15.1 on end # I2C1 0xA0E9
272 device pci 15.2 on end # I2C2 0xA0EA
273 device pci 15.3 on end # I2C3 0xA0EB
274 device pci 16.0 on end # HECI1 0xA0E0
275 device pci 16.1 off end # HECI2 0xA0E1
276 device pci 16.2 off end # CSME 0xA0E2
277 device pci 16.3 off end # CSME 0xA0E3
278 device pci 16.4 off end # HECI3 0xA0E4
279 device pci 16.5 off end # HECI4 0xA0E5
Wonkyu Kimd2500632020-01-21 21:54:14 -0800280 device pci 17.0 on end # SATA 0xA0D3
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800281 device pci 19.0 off end # I2C4 0xA0C5
282 device pci 19.1 on end # I2C5 0xA0C6
283 device pci 19.2 on end # UART2 0xA0C7
284 device pci 1c.0 off end # RP1 0xA0B8
285 device pci 1c.1 off end # RP2 0xA0B9
286 device pci 1c.2 on end # RP3 0xA0BA
287 device pci 1c.3 on end # RP4 0xA0BB
288 device pci 1c.4 off end # RP5 0xA0BC
289 device pci 1c.5 off end # RP6 0xA0BD
290 device pci 1c.6 off end # RP7 0xA0BE
291 device pci 1c.7 off end # RP8 0xA0BF
292 device pci 1d.0 on end # RP9 0xA0B0
Wonkyu Kim06e067e2020-01-22 23:48:52 -0800293 device pci 1d.1 off end # RP10 0xA0B1
294 device pci 1d.2 on end # RP11 0xA0B2
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800295 device pci 1d.3 off end # RP12 0xA0B3
296 device pci 1e.0 off end # UART0 0xA0A8
297 device pci 1e.1 off end # UART1 0xA0A9
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700298 device pci 1e.2 on end # GSPI0 0xA0AA
299 device pci 1e.3 on
300 chip drivers/spi/acpi
301 register "hid" = "ACPI_DT_NAMESPACE_HID"
302 register "compat_string" = ""google,cr50""
303 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
304 device spi 0 on end
305 end
306 end # GSPI1 0xA0AB
John Zhaod05b15e2020-07-25 17:23:53 -0700307 device pci 1f.0 on
308 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600309 use conn0 as mux_conn[0]
310 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700311 device pnp 0c09.0 on end
312 end
313 end # eSPI 0xA080 - A09F
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800314 device pci 1f.1 on end # P2SB 0xA0A0
John Zhao7b46aae2020-06-30 15:44:44 -0700315 device pci 1f.2 hidden # PMC 0xA0A1
316 # The pmc_mux chip driver is a placeholder for the
317 # PMC.MUX device in the ACPI hierarchy.
318 chip drivers/intel/pmc_mux
319 device generic 0 on
320 chip drivers/intel/pmc_mux/conn
321 register "usb2_port_number" = "6"
322 register "usb3_port_number" = "3"
323 # SBU is fixed, HSL follows CC
324 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600325 device generic 0 alias conn0 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700326 end
327 chip drivers/intel/pmc_mux/conn
328 register "usb2_port_number" = "7"
329 register "usb3_port_number" = "4"
330 # SBU is fixed, HSL follows CC
331 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600332 device generic 1 alias conn1 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700333 end
334 end
335 end
336 end # PMC
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800337 device pci 1f.3 on end # Intel HD audio 0xA0C8-A0CF
338 device pci 1f.4 on end # SMBus 0xA0A3
339 device pci 1f.5 on end # SPI 0xA0A4
340 device pci 1f.6 off end # GbE 0x15E1/0x15E2
341 device pci 1f.7 off end # TH 0xA0A6
342 end
343end