blob: ddbedac3f323185b43aeddb68d4e315c6ba1f82b [file] [log] [blame]
Rehan Ghori711b6c52021-08-18 15:34:20 -04001chip soc/intel/cannonlake
2 # Auto-switch between X4 NVMe and X2 NVMe.
3 register "TetonGlacierMode" = "1"
4
5 register "SerialIoDevMode" = "{
6 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
7 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
8 [PchSerialIoIndexI2C2] = PchSerialIoPci,
9 [PchSerialIoIndexI2C3] = PchSerialIoPci,
10 [PchSerialIoIndexI2C4] = PchSerialIoPci,
11 [PchSerialIoIndexI2C5] = PchSerialIoPci,
12 [PchSerialIoIndexSPI0] = PchSerialIoPci,
13 [PchSerialIoIndexSPI1] = PchSerialIoPci,
14 [PchSerialIoIndexSPI2] = PchSerialIoDisabled,
15 [PchSerialIoIndexUART0] = PchSerialIoSkipInit,
Pablo Ceballos69c36112022-03-17 18:37:55 -040016 [PchSerialIoIndexUART1] = PchSerialIoPci,
Rehan Ghori711b6c52021-08-18 15:34:20 -040017 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
18 }"
19
20 # USB configuration
21 register "usb2_ports[0]" = "{
22 .enable = 1,
23 .ocpin = OC2,
24 .tx_bias = USB2_BIAS_0MV,
25 .tx_emp_enable = USB2_PRE_EMP_ON,
26 .pre_emp_bias = USB2_BIAS_11P25MV,
27 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
28 }" # Type-A Port 2
29 register "usb2_ports[1]" = "{
30 .enable = 1,
31 .ocpin = OC1,
32 .tx_bias = USB2_BIAS_0MV,
33 .tx_emp_enable = USB2_PRE_EMP_ON,
34 .pre_emp_bias = USB2_BIAS_28P15MV,
35 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
36 }" # Type-A Port 1
37 register "usb2_ports[2]" = "{
38 .enable = 1,
39 .ocpin = OC3,
40 .tx_bias = USB2_BIAS_0MV,
41 .tx_emp_enable = USB2_PRE_EMP_ON,
42 .pre_emp_bias = USB2_BIAS_28P15MV,
43 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
44 }" # Type-A Port 3
45 register "usb2_ports[3]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port
46 register "usb2_ports[4]" = "{
47 .enable = 1,
48 .ocpin = OC_SKIP,
49 .tx_bias = USB2_BIAS_0MV,
50 .tx_emp_enable = USB2_PRE_EMP_ON,
51 .pre_emp_bias = USB2_BIAS_28P15MV,
52 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
53 }" # Type-A Port 4
54 register "usb2_ports[5]" = "{
55 .enable = 1,
56 .ocpin = OC0,
57 .tx_bias = USB2_BIAS_0MV,
58 .tx_emp_enable = USB2_PRE_EMP_ON,
59 .pre_emp_bias = USB2_BIAS_28P15MV,
60 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
61 }" # Type-A port 0
62 register "usb2_ports[6]" = "USB2_PORT_EMPTY"
63 register "usb2_ports[7]" = "USB2_PORT_EMPTY"
64 register "usb2_ports[8]" = "USB2_PORT_EMPTY"
65 register "usb2_ports[9]" = "{
66 .enable = 1,
67 .ocpin = OC_SKIP,
68 .tx_bias = USB2_BIAS_0MV,
69 .tx_emp_enable = USB2_PRE_EMP_ON,
70 .pre_emp_bias = USB2_BIAS_28P15MV,
71 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
72 }" # BT
73
74 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Port 2
75 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port 3
76 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Port 1
77 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C
78 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port 0
79 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port 4
80
81 # Bitmap for Wake Enable on USB attach/detach
Felix Singer21b5a9a2023-10-23 07:26:28 +020082 register "usb2_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) |
83 USB_PORT_WAKE_ENABLE(2) |
84 USB_PORT_WAKE_ENABLE(3) |
85 USB_PORT_WAKE_ENABLE(5) |
Rehan Ghori711b6c52021-08-18 15:34:20 -040086 USB_PORT_WAKE_ENABLE(6)"
Felix Singer21b5a9a2023-10-23 07:26:28 +020087 register "usb3_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) |
88 USB_PORT_WAKE_ENABLE(2) |
89 USB_PORT_WAKE_ENABLE(3) |
90 USB_PORT_WAKE_ENABLE(5) |
Rehan Ghori711b6c52021-08-18 15:34:20 -040091 USB_PORT_WAKE_ENABLE(6)"
92
93 # Enable eMMC HS400
94 register "ScsEmmcHs400Enabled" = "1"
95
96 # EMMC Tx CMD Delay
97 # Refer to EDS-Vol2-14.3.7.
98 # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39.
99 # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39.
100 register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505"
101
102 # EMMC TX DATA Delay 1
103 # Refer to EDS-Vol2-14.3.8.
104 # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78.
105 # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79.
106 register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x911"
107
108 # EMMC TX DATA Delay 2
109 # Refer to EDS-Vol2-14.3.9.
110 # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79.
111 # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78.
112 # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79.
113 # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79.
114 register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C262828"
115
116 # EMMC RX CMD/DATA Delay 1
117 # Refer to EDS-Vol2-14.3.10.
118 # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119.
119 # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78.
120 # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119.
121 # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119.
122 register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C16583b"
123
124 # EMMC RX CMD/DATA Delay 2
125 # Refer to EDS-Vol2-14.3.12.
126 # [17:16] stands for Rx Clock before Output Buffer,
127 # 00: Rx clock after output buffer,
128 # 01: Rx clock before output buffer,
129 # 10: Automatic selection based on working mode.
130 # 11: Reserved
131 # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39.
132 # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79.
133 register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x1001D"
134
135 # EMMC Rx Strobe Delay
136 # Refer to EDS-Vol2-14.3.11.
137 # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39.
138 # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39.
139 register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x1515"
140
141 # Intel HDA - disable I2S Audio SSP1 and DMIC0 as puff variant does not have them.
142 register "PchHdaAudioLinkSsp1" = "0"
143 register "PchHdaAudioLinkDmic0" = "0"
144
145 # Intel Common SoC Config
146 #+-------------------+---------------------------+
147 #| Field | Value |
148 #+-------------------+---------------------------+
149 #| GSPI0 | cr50 TPM. Early init is |
150 #| | required to set up a BAR |
151 #| | for TPM communication |
152 #| | before memory is up |
153 #| I2C0 | RFU |
154 #| I2C2 | PS175 |
155 #| I2C3 | MST |
156 #| I2C4 | Audio |
157 #+-------------------+---------------------------+
158 register "common_soc_config" = "{
159 .gspi[0] = {
160 .speed_mhz = 1,
161 .early_init = 1,
162 },
163 .i2c[0] = {
164 .speed = I2C_SPEED_FAST,
165 .rise_time_ns = 0,
166 .fall_time_ns = 0,
167 },
168 .i2c[2] = {
169 .speed = I2C_SPEED_FAST,
170 .rise_time_ns = 60,
171 .fall_time_ns = 60,
172 },
173 .i2c[3] = {
174 .speed = I2C_SPEED_FAST,
175 .rise_time_ns = 60,
176 .fall_time_ns = 60,
177 },
178 .i2c[4] = {
179 .speed = I2C_SPEED_FAST,
180 .rise_time_ns = 60,
181 .fall_time_ns = 60,
182 },
183 }"
184
Jeff Chase374a8b82021-09-13 13:20:37 -0400185 # PCIe root port 7 for LAN
Rehan Ghori711b6c52021-08-18 15:34:20 -0400186 register "PcieRpEnable[6]" = "1"
187 register "PcieRpLtrEnable[6]" = "1"
Rehan Ghori711b6c52021-08-18 15:34:20 -0400188 # Uses CLK SRC 0
189 register "PcieClkSrcUsage[0]" = "6"
190 register "PcieClkSrcClkReq[0]" = "0"
191
Jeff Chase374a8b82021-09-13 13:20:37 -0400192 # PCIe root port 8 for WLAN
193 register "PcieRpEnable[7]" = "1"
194 register "PcieRpLtrEnable[7]" = "1"
195 # Uses CLK SRC 5
196 register "PcieClkSrcUsage[5]" = "7"
197 register "PcieClkSrcClkReq[5]" = "5"
198
199 # PCIe root port 9 for SSD (PCIe Lanes 11, 12)
200 register "PcieRpEnable[8]" = "1"
201 register "PcieRpLtrEnable[8]" = "1"
202 # RP 9 uses CLK SRC 1
203 register "PcieClkSrcUsage[1]" = "8"
204 register "PcieClkSrcClkReq[1]" = "1"
205
206 # PCIe root port 10 disabled
207 register "PcieRpEnable[9]" = "0"
208
209 # PCIe root port 11 TPU1
210 register "PcieRpEnable[10]" = "1"
211 register "PcieRpLtrEnable[10]" = "1"
212 # RP 11 uses CLK SRC 1
213 register "PcieClkSrcUsage[4]" = "10"
214 register "PcieClkSrcClkReq[4]" = "4"
215
216 # PCIe root port 12 TPU0
217 register "PcieRpEnable[11]" = "1"
218 register "PcieRpLtrEnable[11]" = "1"
219 # RP 11 uses CLK SRC 1
220 register "PcieClkSrcUsage[2]" = "11"
221 register "PcieClkSrcClkReq[2]" = "2"
222
223 # PCIe port 13 for i350 NIC (x4)
224 register "PcieRpEnable[12]" = "1"
225 register "PcieRpLtrEnable[12]" = "1"
226 # RP 13 uses CLK SRC 3
227 register "PcieClkSrcUsage[3]" = "12"
228 # RP 13 does not use a source clock request line
229 # NOTE: Any value other than a valid source-clock-request (0-5) is
230 # effectively "not connected"
231 register "PcieClkSrcClkReq[3]" = "0xFF"
232 # Disable the remaining ports 14-16
233 register "PcieRpEnable[13]" = "0"
234 register "PcieRpEnable[14]" = "0"
235 register "PcieRpEnable[15]" = "0"
236
Rehan Ghori711b6c52021-08-18 15:34:20 -0400237 # GPIO for SD card detect
238 register "sdcard_cd_gpio" = "vSD3_CD_B"
239
240 # SATA port 1 Gen3 Strength
241 # Port1 Tx De-Emphasis = 20*log(0x20/64) = -6dB
242 register "sata_port[1].TxGen3DeEmphEnable" = "1"
243 register "sata_port[1].TxGen3DeEmph" = "0x20"
244
245 device domain 0 on
Felix Singerd571ea22024-01-17 21:51:07 +0100246 device ref dptf on
Rehan Ghori711b6c52021-08-18 15:34:20 -0400247 chip drivers/intel/dptf
248 ## Active Policy
249 register "policies.active[0]" = "{.target=DPTF_CPU,
Kenneth Chan40123882021-09-24 17:15:24 +0800250 .thresholds={TEMP_PCT(94, 0),}}"
Rehan Ghori711b6c52021-08-18 15:34:20 -0400251 register "policies.active[1]" = "{.target=DPTF_TEMP_SENSOR_0,
Kenneth Chan40123882021-09-24 17:15:24 +0800252 .thresholds={TEMP_PCT(72, 90),
253 TEMP_PCT(68, 80),
254 TEMP_PCT(62, 70),
255 TEMP_PCT(54, 60),
256 TEMP_PCT(46, 50),
257 TEMP_PCT(39, 40),}}"
Rehan Ghori711b6c52021-08-18 15:34:20 -0400258
259 ## Passive Policy
Kenneth Chan40123882021-09-24 17:15:24 +0800260 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 5000)"
261 register "policies.passive[1]" = "DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 85, 6000)"
Rehan Ghori711b6c52021-08-18 15:34:20 -0400262
263 ## Critical Policy
264 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 100, SHUTDOWN)"
Kenneth Chan40123882021-09-24 17:15:24 +0800265 register "policies.critical[1]" = "DPTF_CRITICAL(TEMP_SENSOR_0, 90, SHUTDOWN)"
Rehan Ghori711b6c52021-08-18 15:34:20 -0400266
267 ## Power Limits Control
268 # PL1 is fixed at 15W, avg over 28-32s interval
Kenneth Chan40123882021-09-24 17:15:24 +0800269 # 51-51W PL2 in 1000mW increments, avg over 28-32s interval
Rehan Ghori711b6c52021-08-18 15:34:20 -0400270 register "controls.power_limits.pl1" = "{
271 .min_power = 15000,
272 .max_power = 15000,
273 .time_window_min = 28 * MSECS_PER_SEC,
274 .time_window_max = 32 * MSECS_PER_SEC,
Kenneth Chan40123882021-09-24 17:15:24 +0800275 .granularity = 125,}"
Rehan Ghori711b6c52021-08-18 15:34:20 -0400276 register "controls.power_limits.pl2" = "{
Kenneth Chan40123882021-09-24 17:15:24 +0800277 .min_power = 51000,
278 .max_power = 51000,
Rehan Ghori711b6c52021-08-18 15:34:20 -0400279 .time_window_min = 28 * MSECS_PER_SEC,
280 .time_window_max = 32 * MSECS_PER_SEC,
281 .granularity = 1000,}"
282
283 ## Charger Performance Control (Control, mA)
284 register "controls.charger_perf[0]" = "{ 255, 1700 }"
285 register "controls.charger_perf[1]" = "{ 24, 1500 }"
286 register "controls.charger_perf[2]" = "{ 16, 1000 }"
287 register "controls.charger_perf[3]" = "{ 8, 500 }"
288
289 ## Fan Performance Control (Percent, Speed, Noise, Power)
290 register "controls.fan_perf[0]" = "{ 90, 6700, 220, 2200, }"
291 register "controls.fan_perf[1]" = "{ 80, 5800, 180, 1800, }"
292 register "controls.fan_perf[2]" = "{ 70, 5000, 145, 1450, }"
293 register "controls.fan_perf[3]" = "{ 60, 4900, 115, 1150, }"
294 register "controls.fan_perf[4]" = "{ 50, 3838, 90, 900, }"
295 register "controls.fan_perf[5]" = "{ 40, 2904, 55, 550, }"
296 register "controls.fan_perf[6]" = "{ 30, 2337, 30, 300, }"
297 register "controls.fan_perf[7]" = "{ 20, 1608, 15, 150, }"
298 register "controls.fan_perf[8]" = "{ 10, 800, 10, 100, }"
299 register "controls.fan_perf[9]" = "{ 0, 0, 0, 50, }"
300
301 # Fan options
302 register "options.fan.fine_grained_control" = "1"
303 register "options.fan.step_size" = "2"
304
305 device generic 0 on end
306 end
Felix Singerd571ea22024-01-17 21:51:07 +0100307 end
308 device ref xhci on
Rehan Ghori711b6c52021-08-18 15:34:20 -0400309 chip drivers/usb/acpi
310 device usb 0.0 on
311 chip drivers/usb/acpi
312 register "desc" = ""USB2 Type-A Front Left""
313 register "type" = "UPC_TYPE_A"
314 register "group" = "ACPI_PLD_GROUP(0, 0)"
315 device usb 2.0 on end
316 end
317 chip drivers/usb/acpi
318 register "desc" = ""USB2 Type-C Port Rear""
319 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
320 register "group" = "ACPI_PLD_GROUP(1, 3)"
321 device usb 2.1 on end
322 end
323 chip drivers/usb/acpi
324 register "desc" = ""USB2 Type-A Front Right""
325 register "type" = "UPC_TYPE_A"
326 register "group" = "ACPI_PLD_GROUP(0, 1)"
327 device usb 2.2 on end
328 end
329 chip drivers/usb/acpi
330 register "desc" = ""USB2 Type-A Rear Right""
331 register "type" = "UPC_TYPE_A"
332 register "group" = "ACPI_PLD_GROUP(1, 2)"
333 device usb 2.3 on end
334 end
335 chip drivers/usb/acpi
336 register "desc" = ""USB2 Type-A Rear Middle""
337 register "type" = "UPC_TYPE_A"
338 register "group" = "ACPI_PLD_GROUP(1, 1)"
339 device usb 2.4 on end
340 end
341 chip drivers/usb/acpi
342 register "desc" = ""USB2 Type-A Rear Left""
343 register "type" = "UPC_TYPE_A"
344 register "group" = "ACPI_PLD_GROUP(1, 0)"
345 device usb 2.5 on end
346 end
347 chip drivers/usb/acpi
348 device usb 2.6 off end
349 end
350 chip drivers/usb/acpi
351 register "desc" = ""USB3 Type-A Front Left""
352 register "type" = "UPC_TYPE_USB3_A"
353 register "group" = "ACPI_PLD_GROUP(0, 0)"
354 device usb 3.0 on end
355 end
356 chip drivers/usb/acpi
357 register "desc" = ""USB3 Type-A Front Right""
358 register "type" = "UPC_TYPE_USB3_A"
359 register "group" = "ACPI_PLD_GROUP(0, 1)"
360 device usb 3.1 on end
361 end
362 chip drivers/usb/acpi
363 register "desc" = ""USB3 Type-A Rear Right""
364 register "type" = "UPC_TYPE_USB3_A"
365 register "group" = "ACPI_PLD_GROUP(1, 2)"
366 device usb 3.2 on end
367 end
368 chip drivers/usb/acpi
369 register "desc" = ""USB3 Type-C Rear""
370 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
371 register "group" = "ACPI_PLD_GROUP(1, 3)"
372 device usb 3.3 on end
373 end
374 chip drivers/usb/acpi
375 register "desc" = ""USB3 Type-A Rear Left""
376 register "type" = "UPC_TYPE_USB3_A"
377 register "group" = "ACPI_PLD_GROUP(1, 0)"
378 device usb 3.4 on end
379 end
380 chip drivers/usb/acpi
381 register "desc" = ""USB3 Type-A Rear Middle""
382 register "type" = "UPC_TYPE_USB3_A"
383 register "group" = "ACPI_PLD_GROUP(1, 1)"
384 device usb 3.5 on end
385 end
386 end
387 end
Felix Singerd571ea22024-01-17 21:51:07 +0100388 end
389 device ref i2c0 off
Rehan Ghori711b6c52021-08-18 15:34:20 -0400390 # RFU - Reserved for Future Use.
Felix Singerd571ea22024-01-17 21:51:07 +0100391 end
392 device ref i2c1 off end
393 device ref i2c2 on
394 # PCON PS175
Rehan Ghori711b6c52021-08-18 15:34:20 -0400395 chip drivers/i2c/generic
396 register "hid" = ""1AF80175""
397 register "name" = ""PS17""
398 register "desc" = ""Parade PS175""
399 device i2c 4a on end
400 end
Felix Singerd571ea22024-01-17 21:51:07 +0100401 end
402 device ref i2c3 on
403 # Realtek RTD2142
Rehan Ghori711b6c52021-08-18 15:34:20 -0400404 chip drivers/i2c/generic
405 register "hid" = ""10EC2142""
406 register "name" = ""RTD2""
407 register "desc" = ""Realtek RTD2142""
408 device i2c 4a on end
409 end
Felix Singerd571ea22024-01-17 21:51:07 +0100410 end
411 device ref heci1 on end
412 device ref i2c4 on
Rehan Ghori711b6c52021-08-18 15:34:20 -0400413 chip drivers/i2c/generic
414 register "hid" = ""10EC5682""
415 register "name" = ""RT58""
416 register "desc" = ""Realtek RT5682""
417 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)"
418 register "property_count" = "1"
419 # Set the jd_src to RT5668_JD1 for jack detection
420 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
421 register "property_list[0].name" = ""realtek,jd-src""
422 register "property_list[0].integer" = "1"
423 device i2c 1a on end
424 end
Felix Singerd571ea22024-01-17 21:51:07 +0100425 end
426 device ref emmc off end
427 device ref pcie_rp7 on
428 # LAN
Jeff Chase374a8b82021-09-13 13:20:37 -0400429 chip drivers/net # RTL8111H Ethernet NIC
Rehan Ghori711b6c52021-08-18 15:34:20 -0400430 register "customized_leds" = "0x05af"
431 register "wake" = "GPE0_DW1_07" # GPP_C7
Rehan Ghori711b6c52021-08-18 15:34:20 -0400432 register "device_index" = "0"
Alexis Savery8ba64cd2023-08-30 20:11:34 +0000433 register "enable_aspm_l1_2" = "1"
Matt DeVillierf03b8fc2023-11-19 16:12:56 -0600434 device pci 00.0 on end
Rehan Ghori711b6c52021-08-18 15:34:20 -0400435 end
Jeff Chase374a8b82021-09-13 13:20:37 -0400436 end
Felix Singerd571ea22024-01-17 21:51:07 +0100437 device ref pcie_rp8 on
438 # WLAN
Jeff Chase374a8b82021-09-13 13:20:37 -0400439 register "PcieRpSlotImplemented[7]" = "1" # M.2 Slot
440 end
Felix Singerd571ea22024-01-17 21:51:07 +0100441 device ref pcie_rp9 on
442 # TPU
Jeff Chase374a8b82021-09-13 13:20:37 -0400443 register "PcieRpSlotImplemented[8]" = "1" # M.2 Slot
444 end
Felix Singerd571ea22024-01-17 21:51:07 +0100445 device ref pcie_rp10 off end
446 device ref pcie_rp11 on end
447 # TPU1
Jeff Chase374a8b82021-09-13 13:20:37 -0400448 register "PcieRpSlotImplemented[10]" = "1" # M.2 Slot
Felix Singerd571ea22024-01-17 21:51:07 +0100449 device ref pcie_rp12 on end
450 # TPU0
Jeff Chase374a8b82021-09-13 13:20:37 -0400451 register "PcieRpSlotImplemented[11]" = "1" # M.2 Slot
Felix Singerd571ea22024-01-17 21:51:07 +0100452 device ref pcie_rp13 on
453 # X4 i350 NIC
Jeff Chase374a8b82021-09-13 13:20:37 -0400454 register "PcieRpSlotImplemented[12]" = "0" # Built-in
455 end
Felix Singerd571ea22024-01-17 21:51:07 +0100456 device ref pcie_rp14 on end # non-root
457 device ref pcie_rp15 on end # non-root
458 device ref pcie_rp16 on end # non-root
459 device ref uart0 on end
460 device ref uart1 on end
461 device ref gspi1 off end
Rehan Ghori711b6c52021-08-18 15:34:20 -0400462 end
463
464 # VR Settings Configuration for 4 Domains
465 #+----------------+-------+-------+-------+-------+
466 #| Domain/Setting | SA | IA | GTUS | GTS |
467 #+----------------+-------+-------+-------+-------+
468 #| Psi1Threshold | 20A | 20A | 20A | 20A |
469 #| Psi2Threshold | 5A | 5A | 5A | 5A |
470 #| Psi3Threshold | 1A | 1A | 1A | 1A |
471 #| Psi3Enable | 1 | 1 | 1 | 1 |
472 #| Psi4Enable | 1 | 1 | 1 | 1 |
473 #| ImonSlope | 0 | 0 | 0 | 0 |
474 #| ImonOffset | 0 | 0 | 0 | 0 |
475 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
476 #| AcLoadline | 10.04 | 1.81 | 3.19 | 3.19 |
477 #| DcLoadline | 10.04 | 1.81 | 3.19 | 3.19 |
478 #+----------------+-------+-------+-------+-------+
479 #Note: IccMax settings are moved to SoC code
480 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
481 .vr_config_enable = 1,
482 .psi1threshold = VR_CFG_AMP(20),
483 .psi2threshold = VR_CFG_AMP(5),
484 .psi3threshold = VR_CFG_AMP(1),
485 .psi3enable = 1,
486 .psi4enable = 1,
487 .imon_slope = 0x0,
488 .imon_offset = 0x0,
489 .icc_max = 0,
490 .voltage_limit = 1520,
491 .ac_loadline = 1004,
492 .dc_loadline = 1004,
493 }"
494
495 register "domain_vr_config[VR_IA_CORE]" = "{
496 .vr_config_enable = 1,
497 .psi1threshold = VR_CFG_AMP(20),
498 .psi2threshold = VR_CFG_AMP(5),
499 .psi3threshold = VR_CFG_AMP(1),
500 .psi3enable = 1,
501 .psi4enable = 1,
502 .imon_slope = 0x0,
503 .imon_offset = 0x0,
504 .icc_max = 0,
505 .voltage_limit = 1520,
506 .ac_loadline = 181,
507 .dc_loadline = 181,
508 }"
509
510 register "domain_vr_config[VR_GT_UNSLICED]" = "{
511 .vr_config_enable = 1,
512 .psi1threshold = VR_CFG_AMP(20),
513 .psi2threshold = VR_CFG_AMP(5),
514 .psi3threshold = VR_CFG_AMP(1),
515 .psi3enable = 1,
516 .psi4enable = 1,
517 .imon_slope = 0x0,
518 .imon_offset = 0x0,
519 .icc_max = 0,
520 .voltage_limit = 1520,
521 .ac_loadline = 319,
522 .dc_loadline = 319,
523 }"
524
525 register "domain_vr_config[VR_GT_SLICED]" = "{
526 .vr_config_enable = 1,
527 .psi1threshold = VR_CFG_AMP(20),
528 .psi2threshold = VR_CFG_AMP(5),
529 .psi3threshold = VR_CFG_AMP(1),
530 .psi3enable = 1,
531 .psi4enable = 1,
532 .imon_slope = 0x0,
533 .imon_offset = 0x0,
534 .icc_max = 0,
535 .voltage_limit = 1520,
536 .ac_loadline = 319,
537 .dc_loadline = 319,
538 }"
539
540end