blob: 3e2b342864d1aa09f5b45294658510cc47078641 [file] [log] [blame]
Wonkyu Kim7e303582020-03-06 14:36:23 -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"
12 register "pmc_gpe0_dw1" = "GPP_D"
13 register "pmc_gpe0_dw2" = "GPP_E"
14
Jamie Ryu5a401ae2020-06-12 02:47:14 -070015 # Enable heci1 communication
16 register "HeciEnabled" = "1"
17
Wonkyu Kim7e303582020-03-06 14:36:23 -080018 # FSP configuration
19 register "SaGv" = "SaGv_Disabled"
20 register "SmbusEnable" = "1"
21
22 register "usb2_ports[0]" = "USB2_PORT_MID(OC3)" # Type-C Port1
23 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN
24 register "usb2_ports[2]" = "USB2_PORT_MID(OC0)" # M.2 Bluetooth, USB3/2 Type A port1
25 register "usb2_ports[3]" = "USB2_PORT_MID(OC3)" # USB3/2 Type A port1
26 register "usb2_ports[4]" = "USB2_PORT_MID(OC3)" # Type-C Port2
27 register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-C Port3
Wonkyu Kim7e303582020-03-06 14:36:23 -080028 register "usb2_ports[9]" = "USB2_PORT_MID(OC3)" # CNVi/BT
29
30 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port1
31 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port2
Wonkyu Kim7e303582020-03-06 14:36:23 -080032 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # USB3/USB2 Flex Connector
33
Angel Ponse16692e2020-08-03 12:54:48 +020034 # CPU replacement check
35 register "CpuReplacementCheck" = "1"
Jamie Ryuef079c82020-06-24 15:55:10 -070036
Wonkyu Kim7e303582020-03-06 14:36:23 -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
Wonkyu Kim7e303582020-03-06 14:36:23 -080043 register "PcieRpEnable[2]" = "1"
44 register "PcieRpEnable[3]" = "1"
45 register "PcieRpEnable[8]" = "1"
46 register "PcieRpEnable[10]" = "1"
47
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070048 # Enable PR 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
Wonkyu Kim7e303582020-03-06 14:36:23 -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
65 # enabling EDP in PortA
66 register "DdiPortAConfig" = "1"
67
Wonkyu Kim66815112020-03-09 14:48:51 -070068 register "DdiPortBHpd" = "1"
Wonkyu Kim7e303582020-03-06 14:36:23 -080069 register "DdiPort1Hpd" = "1"
70 register "DdiPort1Ddc" = "1"
71
72 register "SerialIoI2cMode" = "{
73 [PchSerialIoIndexI2C0] = PchSerialIoPci,
74 [PchSerialIoIndexI2C1] = PchSerialIoPci,
75 [PchSerialIoIndexI2C2] = PchSerialIoPci,
76 [PchSerialIoIndexI2C3] = PchSerialIoPci,
77 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
78 [PchSerialIoIndexI2C5] = PchSerialIoPci,
79 }"
80
81 register "SerialIoGSpiMode" = "{
82 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
83 [PchSerialIoIndexGSPI1] = PchSerialIoDisabled,
84 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
85 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
86 }"
87
88 register "SerialIoGSpiCsMode" = "{
89 [PchSerialIoIndexGSPI0] = 0,
90 [PchSerialIoIndexGSPI1] = 0,
91 [PchSerialIoIndexGSPI2] = 0,
92 [PchSerialIoIndexGSPI3] = 0,
93 }"
94
95 register "SerialIoGSpiCsState" = "{
96 [PchSerialIoIndexGSPI0] = 0,
97 [PchSerialIoIndexGSPI1] = 0,
98 [PchSerialIoIndexGSPI2] = 0,
99 [PchSerialIoIndexGSPI3] = 0,
100 }"
101
102 register "SerialIoUartMode" = "{
103 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
104 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
105 [PchSerialIoIndexUART2] = PchSerialIoPci,
106 }"
107
John Zhaob1c53fc2020-05-13 16:27:03 -0700108 # TCSS USB3
109 register "TcssXhciEn" = "1"
110 register "TcssAuxOri" = "0"
111
Shreesh Chhabbica128a02020-08-27 16:41:42 -0700112 # Enable "Intel Speed Shift Technology"
113 register "speed_shift_enable" = "1"
114
John Zhao23d3ad02020-06-30 17:36:24 -0700115 # Enable S0ix
116 register "s0ix_enable" = "1"
117
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530118 # Enable DPTF
119 register "dptf_enable" = "1"
120
121 # Enable Processor Thermal Control
122 register "Device4Enable" = "1"
123
124 # Add PL1 and PL2 values
125 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
126 .tdp_pl1_override = 9,
127 .tdp_pl2_override = 35,
128 .tdp_pl4 = 66,
129 }"
130 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
131 .tdp_pl1_override = 9,
132 .tdp_pl2_override = 40,
133 .tdp_pl4 = 83,
134 }"
135
Wonkyu Kim7e303582020-03-06 14:36:23 -0800136 #HD Audio
137 register "PchHdaDspEnable" = "1"
138 register "PchHdaAudioLinkHdaEnable" = "0"
139 register "PchHdaAudioLinkDmicEnable[0]" = "1"
140 register "PchHdaAudioLinkDmicEnable[1]" = "1"
141 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700142 register "PchHdaAudioLinkSspEnable[1]" = "0"
143 register "PchHdaAudioLinkSspEnable[2]" = "1"
144 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Wonkyu Kim7e303582020-03-06 14:36:23 -0800145
Wonkyu Kim5c271822020-04-03 00:42:22 -0700146 # Intel Common SoC Config
147 register "common_soc_config" = "{
148 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
149 .i2c[0] = {
150 .speed = I2C_SPEED_FAST,
151 },
152 .i2c[1] = {
153 .speed = I2C_SPEED_FAST,
154 },
155 .i2c[2] = {
156 .speed = I2C_SPEED_FAST,
157 },
158 .i2c[3] = {
159 .speed = I2C_SPEED_FAST,
160 },
161 .i2c[5] = {
162 .speed = I2C_SPEED_FAST,
163 },
164 }"
165
Wonkyu Kim7e303582020-03-06 14:36:23 -0800166 device domain 0 on
167 #From EDS(575683)
168 device pci 00.0 on end # Host Bridge 0x9A14:U/0x9A12:Y
169 device pci 02.0 on end # Graphics
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530170 device pci 04.0 on
171 # Default DPTF Policy for all tglrvp_up4 boards if not overridden
172 chip drivers/intel/dptf
173 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
174 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
175
176 # Power Limits Control
177 register "controls.power_limits.pl1" = "{
178 .min_power = 3000,
179 .max_power = 9000,
180 .time_window_min = 28 * MSECS_PER_SEC,
181 .time_window_max = 32 * MSECS_PER_SEC,
182 .granularity = 200,}"
183 register "controls.power_limits.pl2" = "{
184 .min_power = 9000,
185 .max_power = 40000,
186 .time_window_min = 28 * MSECS_PER_SEC,
187 .time_window_max = 32 * MSECS_PER_SEC,
188 .granularity = 1000,}"
189 device generic 0 on end
190 end
191 end # DPTF 0x9A02:Y22/0x9A12:Y42
192
Wonkyu Kim7e303582020-03-06 14:36:23 -0800193 device pci 05.0 on end # IPU 0x9A19
194 device pci 06.0 on end # PEG60 0x9A09
John Zhaob1c53fc2020-05-13 16:27:03 -0700195 device pci 07.0 on end # TBT_PCIe0 0x9A23
196 device pci 07.1 on end # TBT_PCIe1 0x9A25
197 device pci 07.2 on end # TBT_PCIe2 0x9A27
John Zhao3af09bb2020-08-18 22:32:47 -0700198 device pci 07.3 off end # TBT_PCIe3 0x9A29
Wonkyu Kim7e303582020-03-06 14:36:23 -0800199 device pci 08.0 off end # GNA 0x9A11
200 device pci 09.0 off end # NPK 0x9A33
201 device pci 0a.0 off end # Crash-log SRAM 0x9A0D
202 device pci 0d.0 on end # USB xHCI 0x9A13
203 device pci 0d.1 on end # USB xDCI (OTG) 0x9A15
John Zhaob1c53fc2020-05-13 16:27:03 -0700204 device pci 0d.2 on end # TBT DMA0 0x9A1B
205 device pci 0d.3 on end # TBT DMA1 0x9A1D
Wonkyu Kim165efa12020-05-05 09:10:13 -0700206 device pci 0e.0 off end # VMD 0x9A0B
Wonkyu Kim7e303582020-03-06 14:36:23 -0800207
208 # From PCH EDS(576591)
209 device pci 10.2 off end # CNVi: BT 0xA0F5 - A0F7
210 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
Wonkyu Kim7e303582020-03-06 14:36:23 -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
Wonkyu Kim7e303582020-03-06 14:36:23 -0800221 device pci 14.1 on end # USB3.1 xDCI 0xA0EE
222 device pci 14.2 on end # Shared RAM 0xA0EF
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800223 chip drivers/intel/wifi
224 register "wake" = "GPE0_PME_B0"
225 device pci 14.3 on end # CNVi: WiFi 0xA0F0 - A0F3
226 end
227
Elyes HAOUASfd8de182020-03-31 21:42:02 +0200228 device pci 15.0 on # I2C0 0xA0E8
Shaunak Saha48b388f2020-05-27 22:48:57 -0700229 chip drivers/i2c/generic
230 register "hid" = ""10EC1308""
231 register "name" = ""RTAM""
232 register "desc" = ""Realtek RT1308 Codec""
233 device i2c 10 on end
234 end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800235 chip drivers/i2c/max98373
236 register "vmon_slot_no" = "4"
237 register "imon_slot_no" = "5"
238 register "uid" = "0"
239 register "desc" = ""RIGHT SPEAKER AMP""
240 register "name" = ""MAXR""
241 device i2c 31 on end
242 end
243 chip drivers/i2c/max98373
244 register "vmon_slot_no" = "6"
245 register "imon_slot_no" = "7"
246 register "uid" = "1"
247 register "desc" = ""LEFT SPEAKER AMP""
248 register "name" = ""MAXL""
249 device i2c 32 on end
250 end
251 chip drivers/i2c/generic
252 register "hid" = ""10EC5682""
253 register "name" = ""RT58""
254 register "desc" = ""Realtek RT5682""
255 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
256 register "probed" = "1"
257 # Set the jd_src to RT5668_JD1 for jack detection
258 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
259 register "property_list[0].name" = ""realtek,jd-src""
260 register "property_list[0].integer" = "1"
261 device i2c 1a on end
262 end
263 end # I2C0
264 device pci 15.1 on end # I2C1 0xA0E9
265 device pci 15.2 on end # I2C2 0xA0EA
266 device pci 15.3 on end # I2C3 0xA0EB
267 device pci 16.0 on end # HECI1 0xA0E0
268 device pci 16.1 off end # HECI2 0xA0E1
269 device pci 16.2 off end # CSME 0xA0E2
270 device pci 16.3 off end # CSME 0xA0E3
271 device pci 16.4 off end # HECI3 0xA0E4
272 device pci 16.5 off end # HECI4 0xA0E5
273 device pci 17.0 on end # SATA 0xA0D3
274 device pci 19.0 off end # I2C4 0xA0C5
275 device pci 19.1 on end # I2C5 0xA0C6
276 device pci 19.2 on end # UART2 0xA0C7
277 device pci 1c.0 off end # RP1 0xA0B8
278 device pci 1c.1 off end # RP2 0xA0B9
279 device pci 1c.2 on end # RP3 0xA0BA
280 device pci 1c.3 on end # RP4 0xA0BB
281 device pci 1c.4 off end # RP5 0xA0BC
282 device pci 1c.5 off end # RP6 0xA0BD
283 device pci 1c.6 off end # RP7 0xA0BE
284 device pci 1c.7 off end # RP8 0xA0BF
285 device pci 1d.0 on end # RP9 0xA0B0
286 device pci 1d.1 off end # RP10 0xA0B1
287 device pci 1d.2 on end # RP11 0xA0B2
288 device pci 1d.3 off end # RP12 0xA0B3
289 device pci 1e.0 off end # UART0 0xA0A8
290 device pci 1e.1 off end # UART1 0xA0A9
291 device pci 1e.2 off end # GSPI0 0xA0AA
292 device pci 1e.3 off end # GSPI1 0xA0AB
John Zhaod05b15e2020-07-25 17:23:53 -0700293 device pci 1f.0 on
294 chip ec/google/chromeec
295 device pnp 0c09.0 on end
296 end
297 end # eSPI 0xA080 - A09F
Wonkyu Kim7e303582020-03-06 14:36:23 -0800298 device pci 1f.1 on end # P2SB 0xA0A0
John Zhao8466ac02020-07-13 09:29:33 -0700299 device pci 1f.2 hidden # PMC 0xA0A1
300 # The pmc_mux chip driver is a placeholder for the
301 # PMC.MUX device in the ACPI hierarchy.
302 chip drivers/intel/pmc_mux
303 device generic 0 on
304 chip drivers/intel/pmc_mux/conn
305 register "usb2_port_number" = "6"
306 register "usb3_port_number" = "3"
307 # SBU is fixed, HSL follows CC
308 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
309 device generic 0 on end
310 end
311 chip drivers/intel/pmc_mux/conn
312 register "usb2_port_number" = "5"
313 register "usb3_port_number" = "2"
314 # SBU is fixed, HSL follows CC
315 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
316 device generic 1 on end
317 end
318 end
319 end
320 end # PMC
Wonkyu Kim7e303582020-03-06 14:36:23 -0800321 device pci 1f.3 on end # Intel HD audio 0xA0C8-A0CF
322 device pci 1f.4 on end # SMBus 0xA0A3
323 device pci 1f.5 on end # SPI 0xA0A4
324 device pci 1f.6 off end # GbE 0x15E1/0x15E2
325 device pci 1f.7 off end # TH 0xA0A6
326 end
327end