Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
| 2 | |
Shaunak Saha | d72cca0 | 2020-03-25 11:42:12 -0700 | [diff] [blame] | 3 | # 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 Saha | b449b9c | 2020-08-23 21:35:21 -0700 | [diff] [blame] | 8 | register "pmc_gpe0_dw1" = "GPP_C" |
| 9 | register "pmc_gpe0_dw2" = "GPP_D" |
Shaunak Saha | d72cca0 | 2020-03-25 11:42:12 -0700 | [diff] [blame] | 10 | |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 11 | # FSP configuration |
| 12 | register "SaGv" = "SaGv_Disabled" |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 13 | |
Cliff Huang | 3663fb3 | 2021-02-09 15:16:18 -0800 | [diff] [blame] | 14 | # CNVi BT enable/disable |
| 15 | register "CnviBtCore" = "true" |
| 16 | |
Angel Pons | e16692e | 2020-08-03 12:54:48 +0200 | [diff] [blame] | 17 | # CPU replacement check |
| 18 | register "CpuReplacementCheck" = "1" |
Jamie Ryu | ef079c8 | 2020-06-24 15:55:10 -0700 | [diff] [blame] | 19 | |
Michael Niewöhner | 45b6080 | 2022-01-08 20:47:11 +0100 | [diff] [blame] | 20 | register "PcieRpSlotImplemented[2]" = "1" |
| 21 | register "PcieRpSlotImplemented[3]" = "1" |
| 22 | register "PcieRpSlotImplemented[8]" = "1" |
| 23 | register "PcieRpSlotImplemented[10]" = "1" |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 24 | |
Wonkyu Kim | 53ac68e | 2020-04-07 23:37:11 -0700 | [diff] [blame] | 25 | # Enable PR LTR |
| 26 | register "PcieRpLtrEnable[2]" = "1" |
| 27 | register "PcieRpLtrEnable[3]" = "1" |
| 28 | register "PcieRpLtrEnable[8]" = "1" |
| 29 | register "PcieRpLtrEnable[10]" = "1" |
| 30 | |
Wonkyu Kim | f787e87 | 2020-03-03 01:58:17 -0800 | [diff] [blame] | 31 | # Hybrid storage mode |
| 32 | register "HybridStorageMode" = "1" |
| 33 | |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 34 | register "PcieClkSrcClkReq[1]" = "1" |
| 35 | register "PcieClkSrcClkReq[2]" = "2" |
| 36 | register "PcieClkSrcClkReq[3]" = "3" |
| 37 | |
| 38 | register "PcieClkSrcUsage[1]" = "0x2" |
| 39 | register "PcieClkSrcUsage[2]" = "0x3" |
| 40 | register "PcieClkSrcUsage[3]" = "0x8" |
| 41 | |
| 42 | # enabling EDP in PortA |
Angel Pons | da4e1d7 | 2022-05-04 17:08:11 +0200 | [diff] [blame] | 43 | register "DdiPortAConfig" = "DDI_PORT_CFG_EDP" |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 44 | |
Jason Le | 2b34161 | 2020-08-27 15:16:32 -0700 | [diff] [blame] | 45 | register "DdiPortAHpd" = "1" |
| 46 | register "DdiPortADdc" = "0" |
Wonkyu Kim | 6681511 | 2020-03-09 14:48:51 -0700 | [diff] [blame] | 47 | register "DdiPortBHpd" = "1" |
Jason Le | 2b34161 | 2020-08-27 15:16:32 -0700 | [diff] [blame] | 48 | register "DdiPortBDdc" = "1" |
| 49 | register "DdiPortCHpd" = "0" |
| 50 | register "DdiPortCDdc" = "0" |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 51 | register "DdiPort1Hpd" = "1" |
Jason Le | 2b34161 | 2020-08-27 15:16:32 -0700 | [diff] [blame] | 52 | register "DdiPort1Ddc" = "0" |
| 53 | register "DdiPort2Hpd" = "1" |
| 54 | register "DdiPort2Ddc" = "0" |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 55 | |
| 56 | register "SerialIoI2cMode" = "{ |
| 57 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 58 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 59 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 60 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 61 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 62 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 63 | }" |
| 64 | |
| 65 | register "SerialIoGSpiMode" = "{ |
| 66 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
Shaunak Saha | b449b9c | 2020-08-23 21:35:21 -0700 | [diff] [blame] | 67 | [PchSerialIoIndexGSPI1] = PchSerialIoPci, |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 68 | [PchSerialIoIndexGSPI2] = PchSerialIoDisabled, |
| 69 | [PchSerialIoIndexGSPI3] = PchSerialIoDisabled, |
| 70 | }" |
| 71 | |
| 72 | register "SerialIoGSpiCsMode" = "{ |
| 73 | [PchSerialIoIndexGSPI0] = 0, |
Shaunak Saha | b449b9c | 2020-08-23 21:35:21 -0700 | [diff] [blame] | 74 | [PchSerialIoIndexGSPI1] = 1, |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 75 | [PchSerialIoIndexGSPI2] = 0, |
| 76 | [PchSerialIoIndexGSPI3] = 0, |
| 77 | }" |
| 78 | |
| 79 | register "SerialIoGSpiCsState" = "{ |
| 80 | [PchSerialIoIndexGSPI0] = 0, |
| 81 | [PchSerialIoIndexGSPI1] = 0, |
| 82 | [PchSerialIoIndexGSPI2] = 0, |
| 83 | [PchSerialIoIndexGSPI3] = 0, |
| 84 | }" |
| 85 | |
| 86 | register "SerialIoUartMode" = "{ |
| 87 | [PchSerialIoIndexUART0] = PchSerialIoDisabled, |
| 88 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 89 | [PchSerialIoIndexUART2] = PchSerialIoPci, |
| 90 | }" |
| 91 | |
John Zhao | b1c53fc | 2020-05-13 16:27:03 -0700 | [diff] [blame] | 92 | # TCSS USB3 |
| 93 | register "TcssXhciEn" = "1" |
| 94 | register "TcssAuxOri" = "0" |
| 95 | |
John Zhao | 23d3ad0 | 2020-06-30 17:36:24 -0700 | [diff] [blame] | 96 | # Enable S0ix |
| 97 | register "s0ix_enable" = "1" |
| 98 | |
Sumeet R Pawnikar | 06b35e5 | 2020-09-09 23:44:06 +0530 | [diff] [blame] | 99 | # Enable DPTF |
| 100 | register "dptf_enable" = "1" |
| 101 | |
Sumeet R Pawnikar | 06b35e5 | 2020-09-09 23:44:06 +0530 | [diff] [blame] | 102 | # Add PL1 and PL2 values |
| 103 | register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{ |
| 104 | .tdp_pl1_override = 9, |
| 105 | .tdp_pl2_override = 35, |
| 106 | .tdp_pl4 = 66, |
| 107 | }" |
| 108 | register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{ |
| 109 | .tdp_pl1_override = 9, |
| 110 | .tdp_pl2_override = 40, |
| 111 | .tdp_pl4 = 83, |
| 112 | }" |
| 113 | |
Wonkyu Kim | 5c27182 | 2020-04-03 00:42:22 -0700 | [diff] [blame] | 114 | # Intel Common SoC Config |
| 115 | register "common_soc_config" = "{ |
Shaunak Saha | b449b9c | 2020-08-23 21:35:21 -0700 | [diff] [blame] | 116 | .gspi[1] = { |
| 117 | .speed_mhz = 1, |
| 118 | .early_init = 1, |
| 119 | }, |
Wonkyu Kim | 5c27182 | 2020-04-03 00:42:22 -0700 | [diff] [blame] | 120 | .i2c[0] = { |
| 121 | .speed = I2C_SPEED_FAST, |
| 122 | }, |
| 123 | .i2c[1] = { |
| 124 | .speed = I2C_SPEED_FAST, |
| 125 | }, |
| 126 | .i2c[2] = { |
| 127 | .speed = I2C_SPEED_FAST, |
| 128 | }, |
| 129 | .i2c[3] = { |
| 130 | .speed = I2C_SPEED_FAST, |
| 131 | }, |
| 132 | .i2c[5] = { |
| 133 | .speed = I2C_SPEED_FAST, |
| 134 | }, |
| 135 | }" |
| 136 | |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 137 | device domain 0 on |
| 138 | #From EDS(575683) |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 139 | device ref system_agent on end |
| 140 | device ref igpu on end |
| 141 | device ref dptf on |
Sumeet R Pawnikar | 06b35e5 | 2020-09-09 23:44:06 +0530 | [diff] [blame] | 142 | # Default DPTF Policy for all tglrvp_up4 boards if not overridden |
| 143 | chip drivers/intel/dptf |
| 144 | register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)" |
| 145 | register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)" |
| 146 | |
| 147 | # Power Limits Control |
| 148 | register "controls.power_limits.pl1" = "{ |
| 149 | .min_power = 3000, |
| 150 | .max_power = 9000, |
| 151 | .time_window_min = 28 * MSECS_PER_SEC, |
| 152 | .time_window_max = 32 * MSECS_PER_SEC, |
| 153 | .granularity = 200,}" |
| 154 | register "controls.power_limits.pl2" = "{ |
Sumeet Pawnikar | 681a59d | 2021-07-05 17:15:51 +0530 | [diff] [blame] | 155 | .min_power = 40000, |
Sumeet R Pawnikar | 06b35e5 | 2020-09-09 23:44:06 +0530 | [diff] [blame] | 156 | .max_power = 40000, |
| 157 | .time_window_min = 28 * MSECS_PER_SEC, |
| 158 | .time_window_max = 32 * MSECS_PER_SEC, |
| 159 | .granularity = 1000,}" |
| 160 | device generic 0 on end |
| 161 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 162 | end |
Sumeet R Pawnikar | 06b35e5 | 2020-09-09 23:44:06 +0530 | [diff] [blame] | 163 | |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 164 | device ref ipu on end |
| 165 | device ref peg on end |
| 166 | device ref tbt_pcie_rp0 on end |
| 167 | device ref tbt_pcie_rp1 on end |
| 168 | device ref tbt_pcie_rp2 on end |
| 169 | device ref tbt_pcie_rp3 off end |
| 170 | device ref gna off end |
| 171 | device ref npk off end |
| 172 | device ref crashlog off end |
| 173 | device ref north_xhci on end |
| 174 | device ref north_xdci on end |
| 175 | device ref tbt_dma0 on end |
| 176 | device ref tbt_dma1 on end |
| 177 | device ref vmd off end |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 178 | |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 179 | device ref thc0 off end |
| 180 | device ref thc1 off end |
| 181 | device ref ish on |
li feng | 2395425 | 2020-03-12 16:38:34 -0700 | [diff] [blame] | 182 | chip drivers/intel/ish |
| 183 | register "firmware_name" = ""tglrvp_ish.bin"" |
| 184 | device generic 0 on end |
| 185 | end |
| 186 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 187 | device ref gspi2 off end |
| 188 | device ref gspi3 off end |
Felix Singer | bc8f540 | 2024-06-27 22:58:52 +0200 | [diff] [blame] | 189 | device ref south_xhci on |
| 190 | register "usb2_ports" = "{ |
| 191 | [0] = USB2_PORT_MID(OC3), // Type-C Port1 |
Felix Singer | bc8f540 | 2024-06-27 22:58:52 +0200 | [diff] [blame] | 192 | [2] = USB2_PORT_MID(OC0), // M.2 Bluetooth, USB3/2 Type A Port1 |
| 193 | [3] = USB2_PORT_MID(OC3), // USB3/2 Type A Port 1 |
| 194 | [4] = USB2_PORT_MID(OC3), // Type-C Port2 |
| 195 | [5] = USB2_PORT_MID(OC3), // Type-C Port3 / MECC |
Felix Singer | bc8f540 | 2024-06-27 22:58:52 +0200 | [diff] [blame] | 196 | [9] = USB2_PORT_MID(OC3), // CNVi/BT |
| 197 | }" |
| 198 | |
| 199 | register "usb3_ports" = "{ |
| 200 | [0] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port1 |
| 201 | [1] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port2 |
| 202 | [3] = USB3_PORT_DEFAULT(OC3), // USB3/USB2 Flex Connector |
| 203 | }" |
| 204 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 205 | device ref south_xdci on end |
| 206 | device ref shared_ram on end |
| 207 | device ref cnvi_wifi on |
Furquan Shaikh | edac4ef | 2020-10-09 08:50:14 -0700 | [diff] [blame] | 208 | chip drivers/wifi/generic |
| 209 | register "wake" = "GPE0_PME_B0" |
| 210 | device generic 0 on end |
| 211 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 212 | end |
Srinidhi N Kaushik | dcd3d07 | 2020-03-05 00:41:14 -0800 | [diff] [blame] | 213 | |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 214 | device ref i2c0 on |
Shaunak Saha | 48b388f | 2020-05-27 22:48:57 -0700 | [diff] [blame] | 215 | chip drivers/i2c/generic |
| 216 | register "hid" = ""10EC1308"" |
| 217 | register "name" = ""RTAM"" |
| 218 | register "desc" = ""Realtek RT1308 Codec"" |
| 219 | device i2c 10 on end |
| 220 | end |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 221 | chip drivers/i2c/max98373 |
| 222 | register "vmon_slot_no" = "4" |
| 223 | register "imon_slot_no" = "5" |
| 224 | register "uid" = "0" |
| 225 | register "desc" = ""RIGHT SPEAKER AMP"" |
| 226 | register "name" = ""MAXR"" |
| 227 | device i2c 31 on end |
| 228 | end |
| 229 | chip drivers/i2c/max98373 |
| 230 | register "vmon_slot_no" = "6" |
| 231 | register "imon_slot_no" = "7" |
| 232 | register "uid" = "1" |
| 233 | register "desc" = ""LEFT SPEAKER AMP"" |
| 234 | register "name" = ""MAXL"" |
| 235 | device i2c 32 on end |
| 236 | end |
| 237 | chip drivers/i2c/generic |
| 238 | register "hid" = ""10EC5682"" |
| 239 | register "name" = ""RT58"" |
| 240 | register "desc" = ""Realtek RT5682"" |
| 241 | register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)" |
| 242 | register "probed" = "1" |
| 243 | # Set the jd_src to RT5668_JD1 for jack detection |
| 244 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 245 | register "property_list[0].name" = ""realtek,jd-src"" |
| 246 | register "property_list[0].integer" = "1" |
| 247 | device i2c 1a on end |
| 248 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 249 | end |
| 250 | device ref i2c1 on end |
| 251 | device ref i2c2 on end |
| 252 | device ref i2c3 on end |
| 253 | device ref heci1 on end |
| 254 | device ref heci2 off end |
| 255 | device ref csme1 off end |
| 256 | device ref csme2 off end |
| 257 | device ref heci3 off end |
| 258 | device ref heci4 off end |
| 259 | device ref sata on end |
| 260 | device ref i2c4 off end |
| 261 | device ref i2c5 on end |
| 262 | device ref uart2 on end |
| 263 | device ref pcie_rp1 off end |
| 264 | device ref pcie_rp2 off end |
| 265 | device ref pcie_rp3 on end |
| 266 | device ref pcie_rp4 on |
Bora Guvendik | 9d4d2d0 | 2021-03-01 14:32:16 -0800 | [diff] [blame] | 267 | chip soc/intel/common/block/pcie/rtd3 |
| 268 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)" |
| 269 | register "srcclk_pin" = "2" |
| 270 | device generic 0 on end |
| 271 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 272 | end |
| 273 | device ref pcie_rp5 off end |
| 274 | device ref pcie_rp6 off end |
| 275 | device ref pcie_rp7 off end |
| 276 | device ref pcie_rp8 off end |
| 277 | device ref pcie_rp9 on end |
| 278 | device ref pcie_rp10 off end |
| 279 | device ref pcie_rp11 on end |
| 280 | device ref pcie_rp12 off end |
| 281 | device ref uart0 off end |
| 282 | device ref uart1 off end |
| 283 | device ref gspi0 on end |
| 284 | device ref gspi1 on |
Shaunak Saha | b449b9c | 2020-08-23 21:35:21 -0700 | [diff] [blame] | 285 | chip drivers/spi/acpi |
| 286 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 287 | register "compat_string" = ""google,cr50"" |
| 288 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)" |
| 289 | device spi 0 on end |
| 290 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 291 | end |
| 292 | device ref pch_espi on |
Felix Singer | 6ce6a5b | 2024-06-27 23:14:31 +0200 | [diff] [blame] | 293 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 294 | register "gen1_dec" = "0x00fc0801" |
| 295 | register "gen2_dec" = "0x000c0201" |
| 296 | # EC memory map range is 0x900-0x9ff |
| 297 | register "gen3_dec" = "0x00fc0901" |
| 298 | |
John Zhao | d05b15e | 2020-07-25 17:23:53 -0700 | [diff] [blame] | 299 | chip ec/google/chromeec |
Tim Wawrzynczak | eafe798 | 2020-09-30 13:59:21 -0600 | [diff] [blame] | 300 | use conn0 as mux_conn[0] |
| 301 | use conn1 as mux_conn[1] |
John Zhao | d05b15e | 2020-07-25 17:23:53 -0700 | [diff] [blame] | 302 | device pnp 0c09.0 on end |
| 303 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 304 | end |
| 305 | device ref p2sb on end |
| 306 | device ref pmc hidden |
John Zhao | 8466ac0 | 2020-07-13 09:29:33 -0700 | [diff] [blame] | 307 | # The pmc_mux chip driver is a placeholder for the |
| 308 | # PMC.MUX device in the ACPI hierarchy. |
| 309 | chip drivers/intel/pmc_mux |
| 310 | device generic 0 on |
| 311 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 312 | use usb2_port6 as usb2_port |
| 313 | use tcss_usb3_port3 as usb3_port |
John Zhao | 8466ac0 | 2020-07-13 09:29:33 -0700 | [diff] [blame] | 314 | # SBU is fixed, HSL follows CC |
| 315 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
Tim Wawrzynczak | eafe798 | 2020-09-30 13:59:21 -0600 | [diff] [blame] | 316 | device generic 0 alias conn0 on end |
John Zhao | 8466ac0 | 2020-07-13 09:29:33 -0700 | [diff] [blame] | 317 | end |
| 318 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 319 | use usb2_port5 as usb2_port |
| 320 | use tcss_usb3_port2 as usb3_port |
John Zhao | 8466ac0 | 2020-07-13 09:29:33 -0700 | [diff] [blame] | 321 | # SBU is fixed, HSL follows CC |
| 322 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
Tim Wawrzynczak | eafe798 | 2020-09-30 13:59:21 -0600 | [diff] [blame] | 323 | device generic 1 alias conn1 on end |
John Zhao | 8466ac0 | 2020-07-13 09:29:33 -0700 | [diff] [blame] | 324 | end |
| 325 | end |
| 326 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 327 | end |
Felix Singer | 1f5a221 | 2024-06-28 00:15:22 +0200 | [diff] [blame] | 328 | device ref hda on |
| 329 | register "PchHdaDspEnable" = "1" |
| 330 | register "PchHdaAudioLinkDmicEnable" = "{ |
| 331 | [0] = 1, |
| 332 | [1] = 1, |
| 333 | }" |
| 334 | register "PchHdaAudioLinkSspEnable" = "{ |
| 335 | [0] = 1, |
| 336 | [2] = 1, |
| 337 | }" |
| 338 | register "PchHdaAudioLinkSndwEnable[0]" = "1" |
| 339 | end |
Felix Singer | f13284c | 2024-06-27 21:09:11 +0200 | [diff] [blame] | 340 | device ref smbus on end |
| 341 | device ref fast_spi on end |
| 342 | device ref gbe off end |
| 343 | device ref tracehub off end |
Wonkyu Kim | 7e30358 | 2020-03-06 14:36:23 -0800 | [diff] [blame] | 344 | end |
| 345 | end |