blob: 201983cc873bcbe84203b8fd6d6cd64368c55317 [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
Jamie Ryu5a401ae2020-06-12 02:47:14 -070011 # Enable heci1 communication
12 register "HeciEnabled" = "1"
13
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080014 # FSP configuration
Shreesh Chhabbic7fe0bd2020-07-07 18:25:45 -070015 register "SaGv" = "SaGv_Enabled"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080016
Cliff Huang3663fb32021-02-09 15:16:18 -080017 # CNVi BT enable/disable
18 register "CnviBtCore" = "true"
19
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080020 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)" # Type-C Port1
Bora Guvendik7377cda2020-08-28 10:50:47 -070021 register "usb2_ports[1]" = "USB2_PORT_EMPTY" # M.2 WWAN
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080022 register "usb2_ports[2]" = "USB2_PORT_MID(OC3)" # M.2 Bluetooth
23 register "usb2_ports[3]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port1
24 register "usb2_ports[4]" = "USB2_PORT_MID(OC0)" # Type-C Port2
25 register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-C Port3
26 register "usb2_ports[6]" = "USB2_PORT_MID(OC3)" # Type-C Port4
27 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port2
28 register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # USB2 Type A port3
29 register "usb2_ports[9]" = "USB2_PORT_MID(OC3)" # USB2 Type A port4
30
31 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port1
32 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port2
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080033
Angel Ponse16692e2020-08-03 12:54:48 +020034 # CPU replacement check
35 register "CpuReplacementCheck" = "1"
Jamie Ryuef079c82020-06-24 15:55:10 -070036
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080037 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
38 register "gen1_dec" = "0x00fc0801"
39 register "gen2_dec" = "0x000c0201"
40 # EC memory map range is 0x900-0x9ff
41 register "gen3_dec" = "0x00fc0901"
42
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080043 register "PcieRpEnable[2]" = "1"
44 register "PcieRpEnable[3]" = "1"
45 register "PcieRpEnable[8]" = "1"
Wonkyu Kim06e067e2020-01-22 23:48:52 -080046 register "PcieRpEnable[10]" = "1"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080047
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070048 # Enable RP LTR
49 register "PcieRpLtrEnable[2]" = "1"
50 register "PcieRpLtrEnable[3]" = "1"
51 register "PcieRpLtrEnable[8]" = "1"
52 register "PcieRpLtrEnable[10]" = "1"
53
Wonkyu Kimf787e872020-03-03 01:58:17 -080054 # Hybrid storage mode
55 register "HybridStorageMode" = "1"
56
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080057 register "PcieClkSrcClkReq[1]" = "1"
58 register "PcieClkSrcClkReq[2]" = "2"
59 register "PcieClkSrcClkReq[3]" = "3"
60
61 register "PcieClkSrcUsage[1]" = "0x2"
62 register "PcieClkSrcUsage[2]" = "0x3"
63 register "PcieClkSrcUsage[3]" = "0x8"
64
Wonkyu Kimd2500632020-01-21 21:54:14 -080065 register "SataSalpSupport" = "1"
66 register "SataPortsEnable[0]" = "1"
67 register "SataPortsEnable[1]" = "1"
68
Wonkyu Kim46cef442020-01-23 00:12:46 -080069 # enabling EDP in PortA
70 register "DdiPortAConfig" = "1"
71
Wonkyu Kim34944be2020-03-02 22:18:26 -080072 register "DdiPortBHpd" = "1"
Wonkyu Kim46cef442020-01-23 00:12:46 -080073 register "DdiPort1Hpd" = "1"
74 register "DdiPort1Ddc" = "1"
75
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080076 register "SerialIoI2cMode" = "{
77 [PchSerialIoIndexI2C0] = PchSerialIoPci,
78 [PchSerialIoIndexI2C1] = PchSerialIoPci,
79 [PchSerialIoIndexI2C2] = PchSerialIoPci,
80 [PchSerialIoIndexI2C3] = PchSerialIoPci,
81 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
82 [PchSerialIoIndexI2C5] = PchSerialIoPci,
83 }"
84
85 register "SerialIoGSpiMode" = "{
86 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070087 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080088 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
89 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
90 }"
91
92 register "SerialIoGSpiCsMode" = "{
93 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070094 [PchSerialIoIndexGSPI1] = 1,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080095 [PchSerialIoIndexGSPI2] = 0,
96 [PchSerialIoIndexGSPI3] = 0,
97 }"
98
99 register "SerialIoGSpiCsState" = "{
100 [PchSerialIoIndexGSPI0] = 0,
101 [PchSerialIoIndexGSPI1] = 0,
102 [PchSerialIoIndexGSPI2] = 0,
103 [PchSerialIoIndexGSPI3] = 0,
104 }"
105
106 register "SerialIoUartMode" = "{
107 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
108 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
109 [PchSerialIoIndexUART2] = PchSerialIoPci,
110 }"
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800111
John Zhaob1c53fc2020-05-13 16:27:03 -0700112 # TCSS USB3
113 register "TcssXhciEn" = "1"
114 register "TcssAuxOri" = "0"
115
John Zhao23d3ad02020-06-30 17:36:24 -0700116 # Enable S0ix
117 register "s0ix_enable" = "1"
118
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530119 # Enable DPTF
120 register "dptf_enable" = "1"
121
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530122 # Add PL1 and PL2 values
123 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
124 .tdp_pl1_override = 15,
125 .tdp_pl2_override = 38,
126 .tdp_pl4 = 71,
127 }"
128 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
129 .tdp_pl1_override = 15,
130 .tdp_pl2_override = 60,
131 .tdp_pl4 = 105,
132 }"
133
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800134 #HD Audio
135 register "PchHdaDspEnable" = "1"
136 register "PchHdaAudioLinkHdaEnable" = "0"
137 register "PchHdaAudioLinkDmicEnable[0]" = "1"
138 register "PchHdaAudioLinkDmicEnable[1]" = "1"
139 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700140 register "PchHdaAudioLinkSspEnable[1]" = "0"
141 register "PchHdaAudioLinkSspEnable[2]" = "1"
142 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800143
Wonkyu Kim5c271822020-04-03 00:42:22 -0700144 # Intel Common SoC Config
145 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700146 .gspi[1] = {
147 .speed_mhz = 1,
148 .early_init = 1,
149 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700150 .i2c[0] = {
151 .speed = I2C_SPEED_FAST,
152 },
153 .i2c[1] = {
154 .speed = I2C_SPEED_FAST,
155 },
156 .i2c[2] = {
157 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200158 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700159 .i2c[3] = {
160 .speed = I2C_SPEED_FAST,
161 },
162 .i2c[5] = {
163 .speed = I2C_SPEED_FAST,
164 },
165 }"
166
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800167 device domain 0 on
168 #From EDS(575683)
169 device pci 00.0 on end # Host Bridge 0x9A14:U/0x9A12:Y
170 device pci 02.0 on end # Graphics
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530171 device pci 04.0 on
172 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
173 chip drivers/intel/dptf
174 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
175 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
176
177 # Power Limits Control
178 register "controls.power_limits.pl1" = "{
179 .min_power = 3000,
180 .max_power = 15000,
181 .time_window_min = 28 * MSECS_PER_SEC,
182 .time_window_max = 32 * MSECS_PER_SEC,
183 .granularity = 200,}"
184 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530185 .min_power = 60000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530186 .max_power = 60000,
187 .time_window_min = 28 * MSECS_PER_SEC,
188 .time_window_max = 32 * MSECS_PER_SEC,
189 .granularity = 1000,}"
190 device generic 0 on end
191 end
192 end # DPTF 0x9A04:U22/0x9A14:U42
193
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800194 device pci 05.0 on end # IPU 0x9A19
195 device pci 06.0 on end # PEG60 0x9A09
John Zhaob1c53fc2020-05-13 16:27:03 -0700196 device pci 07.0 on end # TBT_PCIe0 0x9A23
197 device pci 07.1 on end # TBT_PCIe1 0x9A25
198 device pci 07.2 on end # TBT_PCIe2 0x9A27
199 device pci 07.3 on end # TBT_PCIe3 0x9A29
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800200 device pci 08.0 off end # GNA 0x9A11
201 device pci 09.0 off end # NPK 0x9A33
202 device pci 0a.0 off end # Crash-log SRAM 0x9A0D
203 device pci 0d.0 on end # USB xHCI 0x9A13
204 device pci 0d.1 on end # USB xDCI (OTG) 0x9A15
John Zhaob1c53fc2020-05-13 16:27:03 -0700205 device pci 0d.2 on end # TBT DMA0 0x9A1B
206 device pci 0d.3 on end # TBT DMA1 0x9A1D
Wonkyu Kim165efa12020-05-05 09:10:13 -0700207 device pci 0e.0 off end # VMD 0x9A0B
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800208
209 # From PCH EDS(576591)
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800210 device pci 10.6 off end # THC0 0xA0D0
211 device pci 10.7 off end # THC1 0xA0D1
li feng23954252020-03-12 16:38:34 -0700212 device pci 12.0 on # SensorHUB 0xA0FC
213 chip drivers/intel/ish
214 register "firmware_name" = ""tglrvp_ish.bin""
215 device generic 0 on end
216 end
217 end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800218 device pci 12.6 off end # GSPI2 0x34FB
219 device pci 13.0 off end # GSPI3 0xA0FD
Elyes HAOUASfd8de182020-03-31 21:42:02 +0200220 device pci 14.0 on end # USB3.1 xHCI 0xA0ED
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800221 device pci 14.1 on end # USB3.1 xDCI 0xA0EE
222 device pci 14.2 on end # Shared RAM 0xA0EF
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700223 device pci 14.3 on
224 chip drivers/wifi/generic
225 register "wake" = "GPE0_PME_B0"
226 device generic 0 on end
227 end
228 end # CNVi: WiFi 0xA0F0 - A0F3
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800229
Elyes HAOUASfd8de182020-03-31 21:42:02 +0200230 device pci 15.0 on # I2C0 0xA0E8
Shaunak Saha48b388f2020-05-27 22:48:57 -0700231 chip drivers/i2c/generic
232 register "hid" = ""10EC1308""
233 register "name" = ""RTAM""
234 register "desc" = ""Realtek RT1308 Codec""
235 device i2c 10 on end
236 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800237 chip drivers/i2c/max98373
238 register "vmon_slot_no" = "4"
239 register "imon_slot_no" = "5"
240 register "uid" = "0"
241 register "desc" = ""RIGHT SPEAKER AMP""
242 register "name" = ""MAXR""
243 device i2c 31 on end
244 end
245 chip drivers/i2c/max98373
246 register "vmon_slot_no" = "6"
247 register "imon_slot_no" = "7"
248 register "uid" = "1"
249 register "desc" = ""LEFT SPEAKER AMP""
250 register "name" = ""MAXL""
251 device i2c 32 on end
252 end
253 chip drivers/i2c/generic
254 register "hid" = ""10EC5682""
255 register "name" = ""RT58""
256 register "desc" = ""Realtek RT5682""
257 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
258 register "probed" = "1"
259 # Set the jd_src to RT5668_JD1 for jack detection
260 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
261 register "property_list[0].name" = ""realtek,jd-src""
262 register "property_list[0].integer" = "1"
263 device i2c 1a on end
264 end
265 end # I2C0
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800266 device pci 15.1 on end # I2C1 0xA0E9
267 device pci 15.2 on end # I2C2 0xA0EA
268 device pci 15.3 on end # I2C3 0xA0EB
269 device pci 16.0 on end # HECI1 0xA0E0
270 device pci 16.1 off end # HECI2 0xA0E1
271 device pci 16.2 off end # CSME 0xA0E2
272 device pci 16.3 off end # CSME 0xA0E3
273 device pci 16.4 off end # HECI3 0xA0E4
274 device pci 16.5 off end # HECI4 0xA0E5
Wonkyu Kimd2500632020-01-21 21:54:14 -0800275 device pci 17.0 on end # SATA 0xA0D3
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800276 device pci 19.0 off end # I2C4 0xA0C5
277 device pci 19.1 on end # I2C5 0xA0C6
278 device pci 19.2 on end # UART2 0xA0C7
279 device pci 1c.0 off end # RP1 0xA0B8
280 device pci 1c.1 off end # RP2 0xA0B9
281 device pci 1c.2 on end # RP3 0xA0BA
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800282 device pci 1c.3 on
283 chip soc/intel/common/block/pcie/rtd3
284 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
285 register "srcclk_pin" = "2"
286 device generic 0 on end
287 end
288 end # RP4 0xA0BB
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800289 device pci 1c.4 off end # RP5 0xA0BC
290 device pci 1c.5 off end # RP6 0xA0BD
291 device pci 1c.6 off end # RP7 0xA0BE
292 device pci 1c.7 off end # RP8 0xA0BF
293 device pci 1d.0 on end # RP9 0xA0B0
Wonkyu Kim06e067e2020-01-22 23:48:52 -0800294 device pci 1d.1 off end # RP10 0xA0B1
295 device pci 1d.2 on end # RP11 0xA0B2
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800296 device pci 1d.3 off end # RP12 0xA0B3
297 device pci 1e.0 off end # UART0 0xA0A8
298 device pci 1e.1 off end # UART1 0xA0A9
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700299 device pci 1e.2 on end # GSPI0 0xA0AA
300 device pci 1e.3 on
301 chip drivers/spi/acpi
302 register "hid" = "ACPI_DT_NAMESPACE_HID"
303 register "compat_string" = ""google,cr50""
304 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
305 device spi 0 on end
306 end
307 end # GSPI1 0xA0AB
John Zhaod05b15e2020-07-25 17:23:53 -0700308 device pci 1f.0 on
309 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600310 use conn0 as mux_conn[0]
311 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700312 device pnp 0c09.0 on end
313 end
314 end # eSPI 0xA080 - A09F
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800315 device pci 1f.1 on end # P2SB 0xA0A0
John Zhao7b46aae2020-06-30 15:44:44 -0700316 device pci 1f.2 hidden # PMC 0xA0A1
317 # The pmc_mux chip driver is a placeholder for the
318 # PMC.MUX device in the ACPI hierarchy.
319 chip drivers/intel/pmc_mux
320 device generic 0 on
321 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100322 use usb2_port6 as usb2_port
323 use tcss_usb3_port3 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700324 # SBU is fixed, HSL follows CC
325 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600326 device generic 0 alias conn0 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700327 end
328 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100329 use usb2_port7 as usb2_port
330 use tcss_usb3_port4 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700331 # SBU is fixed, HSL follows CC
332 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600333 device generic 1 alias conn1 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700334 end
335 end
336 end
337 end # PMC
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800338 device pci 1f.3 on end # Intel HD audio 0xA0C8-A0CF
339 device pci 1f.4 on end # SMBus 0xA0A3
340 device pci 1f.5 on end # SPI 0xA0A4
341 device pci 1f.6 off end # GbE 0x15E1/0x15E2
342 device pci 1f.7 off end # TH 0xA0A6
343 end
344end