blob: 1af05c49cd9e829c2d3af8b244ad8baba1aafb52 [file] [log] [blame]
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -08001chip soc/intel/tigerlake
2
Shaunak Sahad72cca02020-03-25 11:42:12 -07003 # GPE configuration
4 # Note that GPE events called out in ASL code rely on this
5 # route. i.e. If this route changes then the affected GPE
6 # offset bits also need to be changed.
7 register "pmc_gpe0_dw0" = "GPP_B"
Shaunak Sahab449b9c2020-08-23 21:35:21 -07008 register "pmc_gpe0_dw1" = "GPP_C"
9 register "pmc_gpe0_dw2" = "GPP_D"
Shaunak Sahad72cca02020-03-25 11:42:12 -070010
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080011 # FSP configuration
Shreesh Chhabbic7fe0bd2020-07-07 18:25:45 -070012 register "SaGv" = "SaGv_Enabled"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080013
Cliff Huang3663fb32021-02-09 15:16:18 -080014 # CNVi BT enable/disable
15 register "CnviBtCore" = "true"
16
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080017 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)" # Type-C Port1
Bora Guvendik7377cda2020-08-28 10:50:47 -070018 register "usb2_ports[1]" = "USB2_PORT_EMPTY" # M.2 WWAN
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080019 register "usb2_ports[2]" = "USB2_PORT_MID(OC3)" # M.2 Bluetooth
20 register "usb2_ports[3]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port1
21 register "usb2_ports[4]" = "USB2_PORT_MID(OC0)" # Type-C Port2
22 register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-C Port3
23 register "usb2_ports[6]" = "USB2_PORT_MID(OC3)" # Type-C Port4
24 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port2
25 register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # USB2 Type A port3
26 register "usb2_ports[9]" = "USB2_PORT_MID(OC3)" # USB2 Type A port4
27
28 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port1
29 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port2
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080030
Angel Ponse16692e2020-08-03 12:54:48 +020031 # CPU replacement check
32 register "CpuReplacementCheck" = "1"
Jamie Ryuef079c82020-06-24 15:55:10 -070033
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080034 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
35 register "gen1_dec" = "0x00fc0801"
36 register "gen2_dec" = "0x000c0201"
37 # EC memory map range is 0x900-0x9ff
38 register "gen3_dec" = "0x00fc0901"
39
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080040 register "PcieRpEnable[2]" = "1"
41 register "PcieRpEnable[3]" = "1"
42 register "PcieRpEnable[8]" = "1"
Wonkyu Kim06e067e2020-01-22 23:48:52 -080043 register "PcieRpEnable[10]" = "1"
Michael Niewöhner45b60802022-01-08 20:47:11 +010044 register "PcieRpSlotImplemented[2]" = "1"
45 register "PcieRpSlotImplemented[3]" = "1"
46 register "PcieRpSlotImplemented[8]" = "1"
47 register "PcieRpSlotImplemented[10]" = "1"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080048
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070049 # Enable RP LTR
50 register "PcieRpLtrEnable[2]" = "1"
51 register "PcieRpLtrEnable[3]" = "1"
52 register "PcieRpLtrEnable[8]" = "1"
53 register "PcieRpLtrEnable[10]" = "1"
54
Wonkyu Kimf787e872020-03-03 01:58:17 -080055 # Hybrid storage mode
56 register "HybridStorageMode" = "1"
57
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080058 register "PcieClkSrcClkReq[1]" = "1"
59 register "PcieClkSrcClkReq[2]" = "2"
60 register "PcieClkSrcClkReq[3]" = "3"
61
62 register "PcieClkSrcUsage[1]" = "0x2"
63 register "PcieClkSrcUsage[2]" = "0x3"
64 register "PcieClkSrcUsage[3]" = "0x8"
65
Wonkyu Kimd2500632020-01-21 21:54:14 -080066 register "SataSalpSupport" = "1"
67 register "SataPortsEnable[0]" = "1"
68 register "SataPortsEnable[1]" = "1"
69
Wonkyu Kim46cef442020-01-23 00:12:46 -080070 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020071 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim46cef442020-01-23 00:12:46 -080072
Wonkyu Kim34944be2020-03-02 22:18:26 -080073 register "DdiPortBHpd" = "1"
Wonkyu Kim46cef442020-01-23 00:12:46 -080074 register "DdiPort1Hpd" = "1"
75 register "DdiPort1Ddc" = "1"
76
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080077 register "SerialIoI2cMode" = "{
78 [PchSerialIoIndexI2C0] = PchSerialIoPci,
79 [PchSerialIoIndexI2C1] = PchSerialIoPci,
80 [PchSerialIoIndexI2C2] = PchSerialIoPci,
81 [PchSerialIoIndexI2C3] = PchSerialIoPci,
82 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
83 [PchSerialIoIndexI2C5] = PchSerialIoPci,
84 }"
85
86 register "SerialIoGSpiMode" = "{
87 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070088 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080089 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
90 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
91 }"
92
93 register "SerialIoGSpiCsMode" = "{
94 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070095 [PchSerialIoIndexGSPI1] = 1,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080096 [PchSerialIoIndexGSPI2] = 0,
97 [PchSerialIoIndexGSPI3] = 0,
98 }"
99
100 register "SerialIoGSpiCsState" = "{
101 [PchSerialIoIndexGSPI0] = 0,
102 [PchSerialIoIndexGSPI1] = 0,
103 [PchSerialIoIndexGSPI2] = 0,
104 [PchSerialIoIndexGSPI3] = 0,
105 }"
106
107 register "SerialIoUartMode" = "{
108 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
109 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
110 [PchSerialIoIndexUART2] = PchSerialIoPci,
111 }"
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800112
John Zhaob1c53fc2020-05-13 16:27:03 -0700113 # TCSS USB3
114 register "TcssXhciEn" = "1"
115 register "TcssAuxOri" = "0"
116
John Zhao23d3ad02020-06-30 17:36:24 -0700117 # Enable S0ix
118 register "s0ix_enable" = "1"
119
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530120 # Enable DPTF
121 register "dptf_enable" = "1"
122
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530123 # Add PL1 and PL2 values
124 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
125 .tdp_pl1_override = 15,
126 .tdp_pl2_override = 38,
127 .tdp_pl4 = 71,
128 }"
129 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
130 .tdp_pl1_override = 15,
131 .tdp_pl2_override = 60,
132 .tdp_pl4 = 105,
133 }"
134
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800135 #HD Audio
136 register "PchHdaDspEnable" = "1"
137 register "PchHdaAudioLinkHdaEnable" = "0"
138 register "PchHdaAudioLinkDmicEnable[0]" = "1"
139 register "PchHdaAudioLinkDmicEnable[1]" = "1"
140 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700141 register "PchHdaAudioLinkSspEnable[1]" = "0"
142 register "PchHdaAudioLinkSspEnable[2]" = "1"
143 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800144
Wonkyu Kim5c271822020-04-03 00:42:22 -0700145 # Intel Common SoC Config
146 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700147 .gspi[1] = {
148 .speed_mhz = 1,
149 .early_init = 1,
150 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700151 .i2c[0] = {
152 .speed = I2C_SPEED_FAST,
153 },
154 .i2c[1] = {
155 .speed = I2C_SPEED_FAST,
156 },
157 .i2c[2] = {
158 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200159 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700160 .i2c[3] = {
161 .speed = I2C_SPEED_FAST,
162 },
163 .i2c[5] = {
164 .speed = I2C_SPEED_FAST,
165 },
166 }"
167
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800168 device domain 0 on
169 #From EDS(575683)
170 device pci 00.0 on end # Host Bridge 0x9A14:U/0x9A12:Y
171 device pci 02.0 on end # Graphics
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530172 device pci 04.0 on
173 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
174 chip drivers/intel/dptf
175 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
176 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
177
178 # Power Limits Control
179 register "controls.power_limits.pl1" = "{
180 .min_power = 3000,
181 .max_power = 15000,
182 .time_window_min = 28 * MSECS_PER_SEC,
183 .time_window_max = 32 * MSECS_PER_SEC,
184 .granularity = 200,}"
185 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530186 .min_power = 60000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530187 .max_power = 60000,
188 .time_window_min = 28 * MSECS_PER_SEC,
189 .time_window_max = 32 * MSECS_PER_SEC,
190 .granularity = 1000,}"
191 device generic 0 on end
192 end
193 end # DPTF 0x9A04:U22/0x9A14:U42
194
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800195 device pci 05.0 on end # IPU 0x9A19
196 device pci 06.0 on end # PEG60 0x9A09
John Zhaob1c53fc2020-05-13 16:27:03 -0700197 device pci 07.0 on end # TBT_PCIe0 0x9A23
198 device pci 07.1 on end # TBT_PCIe1 0x9A25
199 device pci 07.2 on end # TBT_PCIe2 0x9A27
200 device pci 07.3 on end # TBT_PCIe3 0x9A29
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800201 device pci 08.0 off end # GNA 0x9A11
202 device pci 09.0 off end # NPK 0x9A33
203 device pci 0a.0 off end # Crash-log SRAM 0x9A0D
204 device pci 0d.0 on end # USB xHCI 0x9A13
205 device pci 0d.1 on end # USB xDCI (OTG) 0x9A15
John Zhaob1c53fc2020-05-13 16:27:03 -0700206 device pci 0d.2 on end # TBT DMA0 0x9A1B
207 device pci 0d.3 on end # TBT DMA1 0x9A1D
Wonkyu Kim165efa12020-05-05 09:10:13 -0700208 device pci 0e.0 off end # VMD 0x9A0B
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800209
210 # From PCH EDS(576591)
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800211 device pci 10.6 off end # THC0 0xA0D0
212 device pci 10.7 off end # THC1 0xA0D1
li feng23954252020-03-12 16:38:34 -0700213 device pci 12.0 on # SensorHUB 0xA0FC
214 chip drivers/intel/ish
215 register "firmware_name" = ""tglrvp_ish.bin""
216 device generic 0 on end
217 end
218 end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800219 device pci 12.6 off end # GSPI2 0x34FB
220 device pci 13.0 off end # GSPI3 0xA0FD
Elyes HAOUASfd8de182020-03-31 21:42:02 +0200221 device pci 14.0 on end # USB3.1 xHCI 0xA0ED
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800222 device pci 14.1 on end # USB3.1 xDCI 0xA0EE
223 device pci 14.2 on end # Shared RAM 0xA0EF
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700224 device pci 14.3 on
225 chip drivers/wifi/generic
226 register "wake" = "GPE0_PME_B0"
227 device generic 0 on end
228 end
229 end # CNVi: WiFi 0xA0F0 - A0F3
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800230
Elyes HAOUASfd8de182020-03-31 21:42:02 +0200231 device pci 15.0 on # I2C0 0xA0E8
Shaunak Saha48b388f2020-05-27 22:48:57 -0700232 chip drivers/i2c/generic
233 register "hid" = ""10EC1308""
234 register "name" = ""RTAM""
235 register "desc" = ""Realtek RT1308 Codec""
236 device i2c 10 on end
237 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800238 chip drivers/i2c/max98373
239 register "vmon_slot_no" = "4"
240 register "imon_slot_no" = "5"
241 register "uid" = "0"
242 register "desc" = ""RIGHT SPEAKER AMP""
243 register "name" = ""MAXR""
244 device i2c 31 on end
245 end
246 chip drivers/i2c/max98373
247 register "vmon_slot_no" = "6"
248 register "imon_slot_no" = "7"
249 register "uid" = "1"
250 register "desc" = ""LEFT SPEAKER AMP""
251 register "name" = ""MAXL""
252 device i2c 32 on end
253 end
254 chip drivers/i2c/generic
255 register "hid" = ""10EC5682""
256 register "name" = ""RT58""
257 register "desc" = ""Realtek RT5682""
258 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
259 register "probed" = "1"
260 # Set the jd_src to RT5668_JD1 for jack detection
261 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
262 register "property_list[0].name" = ""realtek,jd-src""
263 register "property_list[0].integer" = "1"
264 device i2c 1a on end
265 end
266 end # I2C0
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800267 device pci 15.1 on end # I2C1 0xA0E9
268 device pci 15.2 on end # I2C2 0xA0EA
269 device pci 15.3 on end # I2C3 0xA0EB
270 device pci 16.0 on end # HECI1 0xA0E0
271 device pci 16.1 off end # HECI2 0xA0E1
272 device pci 16.2 off end # CSME 0xA0E2
273 device pci 16.3 off end # CSME 0xA0E3
274 device pci 16.4 off end # HECI3 0xA0E4
275 device pci 16.5 off end # HECI4 0xA0E5
Wonkyu Kimd2500632020-01-21 21:54:14 -0800276 device pci 17.0 on end # SATA 0xA0D3
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800277 device pci 19.0 off end # I2C4 0xA0C5
278 device pci 19.1 on end # I2C5 0xA0C6
279 device pci 19.2 on end # UART2 0xA0C7
280 device pci 1c.0 off end # RP1 0xA0B8
281 device pci 1c.1 off end # RP2 0xA0B9
282 device pci 1c.2 on end # RP3 0xA0BA
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800283 device pci 1c.3 on
284 chip soc/intel/common/block/pcie/rtd3
285 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
286 register "srcclk_pin" = "2"
287 device generic 0 on end
288 end
289 end # RP4 0xA0BB
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800290 device pci 1c.4 off end # RP5 0xA0BC
291 device pci 1c.5 off end # RP6 0xA0BD
292 device pci 1c.6 off end # RP7 0xA0BE
293 device pci 1c.7 off end # RP8 0xA0BF
294 device pci 1d.0 on end # RP9 0xA0B0
Wonkyu Kim06e067e2020-01-22 23:48:52 -0800295 device pci 1d.1 off end # RP10 0xA0B1
296 device pci 1d.2 on end # RP11 0xA0B2
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800297 device pci 1d.3 off end # RP12 0xA0B3
298 device pci 1e.0 off end # UART0 0xA0A8
299 device pci 1e.1 off end # UART1 0xA0A9
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700300 device pci 1e.2 on end # GSPI0 0xA0AA
301 device pci 1e.3 on
302 chip drivers/spi/acpi
303 register "hid" = "ACPI_DT_NAMESPACE_HID"
304 register "compat_string" = ""google,cr50""
305 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
306 device spi 0 on end
307 end
308 end # GSPI1 0xA0AB
John Zhaod05b15e2020-07-25 17:23:53 -0700309 device pci 1f.0 on
310 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600311 use conn0 as mux_conn[0]
312 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700313 device pnp 0c09.0 on end
314 end
315 end # eSPI 0xA080 - A09F
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800316 device pci 1f.1 on end # P2SB 0xA0A0
John Zhao7b46aae2020-06-30 15:44:44 -0700317 device pci 1f.2 hidden # PMC 0xA0A1
318 # The pmc_mux chip driver is a placeholder for the
319 # PMC.MUX device in the ACPI hierarchy.
320 chip drivers/intel/pmc_mux
321 device generic 0 on
322 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100323 use usb2_port6 as usb2_port
324 use tcss_usb3_port3 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700325 # SBU is fixed, HSL follows CC
326 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600327 device generic 0 alias conn0 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700328 end
329 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100330 use usb2_port7 as usb2_port
331 use tcss_usb3_port4 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700332 # SBU is fixed, HSL follows CC
333 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600334 device generic 1 alias conn1 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700335 end
336 end
337 end
338 end # PMC
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800339 device pci 1f.3 on end # Intel HD audio 0xA0C8-A0CF
340 device pci 1f.4 on end # SMBus 0xA0A3
341 device pci 1f.5 on end # SPI 0xA0A4
342 device pci 1f.6 off end # GbE 0x15E1/0x15E2
343 device pci 1f.7 off end # TH 0xA0A6
344 end
345end