Duncan Laurie | 9db8c25 | 2020-05-10 11:16:45 -0700 | [diff] [blame] | 1 | fw_config |
Nick Vaccaro | 2cc0600 | 2020-06-18 12:19:08 -0700 | [diff] [blame] | 2 | field DB_USB 0 3 |
| 3 | option USB_ABSENT 0 |
| 4 | option USB4_GEN2 1 |
| 5 | option USB3_ACTIVE 2 |
| 6 | option USB4_GEN3 3 |
| 7 | option USB3_PASSIVE 4 |
| 8 | option USB3_NO_A 5 |
Duncan Laurie | 5abf040 | 2020-10-28 15:14:27 -0700 | [diff] [blame] | 9 | option USB3_NO_C 6 |
Duncan Laurie | 9db8c25 | 2020-05-10 11:16:45 -0700 | [diff] [blame] | 10 | end |
Kevin Chang | 4f4eba9 | 2021-04-19 14:23:18 +0800 | [diff] [blame] | 11 | field THERMAL 4 7 |
| 12 | option FAN_TABLE_0 0 |
| 13 | option FAN_TABLE_1 1 |
| 14 | end |
Duncan Laurie | 9db8c25 | 2020-05-10 11:16:45 -0700 | [diff] [blame] | 15 | field AUDIO 8 10 |
| 16 | option NONE 0 |
| 17 | option MAX98357_ALC5682I_I2S 1 |
| 18 | option MAX98373_ALC5682I_I2S 2 |
| 19 | option MAX98373_ALC5682_SNDW 3 |
Frank Wu | 362bcee | 2020-08-19 09:56:43 +0800 | [diff] [blame] | 20 | option MAX98373_ALC5682I_I2S_UP4 4 |
Wisley Chen | 35010ef | 2020-11-06 17:16:59 +0800 | [diff] [blame] | 21 | option MAX98360_ALC5682I_I2S 5 |
Stanley Wu | 64f7bdf | 2020-10-30 12:01:20 +0800 | [diff] [blame] | 22 | option RT1011_ALC5682I_I2S 6 |
Duncan Laurie | 9db8c25 | 2020-05-10 11:16:45 -0700 | [diff] [blame] | 23 | end |
| 24 | field TABLETMODE 11 |
Nick Vaccaro | 2cc0600 | 2020-06-18 12:19:08 -0700 | [diff] [blame] | 25 | option TABLETMODE_DISABLED 0 |
| 26 | option TABLETMODE_ENABLED 1 |
Duncan Laurie | 9db8c25 | 2020-05-10 11:16:45 -0700 | [diff] [blame] | 27 | end |
Nick Vaccaro | 2cc0600 | 2020-06-18 12:19:08 -0700 | [diff] [blame] | 28 | field DB_LTE 12 13 |
| 29 | option LTE_ABSENT 0 |
| 30 | option LTE_PRESENT 1 |
| 31 | end |
Duncan Laurie | 14efbb4 | 2020-09-08 20:35:06 +0000 | [diff] [blame] | 32 | field KB_BL 14 |
| 33 | option KB_BL_ABSENT 0 |
| 34 | option KB_BL_PRESENT 1 |
| 35 | end |
| 36 | field NUMPAD 15 |
| 37 | option NUMPAD_ABSENT 0 |
| 38 | option NUMPAD_PRESENT 1 |
| 39 | end |
Nick Vaccaro | 2cc0600 | 2020-06-18 12:19:08 -0700 | [diff] [blame] | 40 | field DB_SD 16 19 |
| 41 | option SD_ABSENT 0 |
| 42 | option SD_GL9755S 1 |
| 43 | option SD_RTS5261 2 |
Zhuohao Lee | b3b4ccf | 2020-11-23 11:41:25 +0800 | [diff] [blame] | 44 | option SD_RTS5227S 3 |
Duncan Laurie | 912d9ec | 2020-11-30 10:09:42 -0800 | [diff] [blame] | 45 | option SD_GL9750 4 |
Zhuohao Lee | b3b4ccf | 2020-11-23 11:41:25 +0800 | [diff] [blame] | 46 | option SD_OZ711LV2LN 5 |
Duncan Laurie | 9db8c25 | 2020-05-10 11:16:45 -0700 | [diff] [blame] | 47 | end |
Duncan Laurie | bd04995 | 2020-11-11 13:01:27 -0800 | [diff] [blame] | 48 | field KB_LAYOUT 20 21 |
| 49 | option KB_LAYOUT_DEFAULT 0 |
| 50 | option KB_LAYOUT_1 1 |
| 51 | end |
Duncan Laurie | 89bbe14 | 2020-11-30 10:12:56 -0800 | [diff] [blame] | 52 | field BOOT_DEVICE_EMMC 22 |
| 53 | option BOOT_EMMC_DISABLED 0 |
| 54 | option BOOT_EMMC_ENABLED 1 |
| 55 | end |
| 56 | field BOOT_DEVICE_NVME 23 |
| 57 | option BOOT_NVME_DISABLED 0 |
| 58 | option BOOT_NVME_ENABLED 1 |
| 59 | end |
| 60 | field BOOT_DEVICE_SATA 24 |
| 61 | option BOOT_SATA_DISABLED 0 |
| 62 | option BOOT_SATA_ENABLED 1 |
| 63 | end |
Zhuohao Lee | 275440e | 2021-01-19 13:06:18 +0800 | [diff] [blame] | 64 | field TOUCHPAD 25 |
| 65 | option REGULAR_TOUCHPAD 0 |
| 66 | option NUMPAD_TOUCHPAD 1 |
| 67 | end |
Kevin Chang | 1c02f6f | 2021-03-10 09:22:09 +0800 | [diff] [blame] | 68 | field WIFI_SAR_ID 26 27 |
| 69 | option WIFI_SAR_ID_0 0 |
| 70 | option WIFI_SAR_ID_1 1 |
| 71 | option WIFI_SAR_ID_2 2 |
| 72 | option WIFI_SAR_ID_3 3 |
| 73 | end |
Kevin Chang | c48cf11 | 2021-04-07 15:18:25 +0800 | [diff] [blame] | 74 | field OLED_SCREEN 28 |
| 75 | option OLED_NOT_PRESENT 0 |
| 76 | option OLED_PRESENT 1 |
| 77 | end |
Duncan Laurie | 9db8c25 | 2020-05-10 11:16:45 -0700 | [diff] [blame] | 78 | end |
| 79 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 80 | chip soc/intel/tigerlake |
| 81 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 82 | # GPE configuration |
| 83 | # Note that GPE events called out in ASL code rely on this |
| 84 | # route. i.e. If this route changes then the affected GPE |
| 85 | # offset bits also need to be changed. |
| 86 | register "pmc_gpe0_dw0" = "GPP_C" |
| 87 | register "pmc_gpe0_dw1" = "GPP_D" |
| 88 | register "pmc_gpe0_dw2" = "GPP_E" |
| 89 | |
| 90 | # FSP configuration |
Shreesh Chhabbi | 3708687 | 2020-06-17 12:40:42 -0700 | [diff] [blame] | 91 | register "SaGv" = "SaGv_Enabled" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 92 | |
| 93 | register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A0 |
| 94 | register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A1 |
| 95 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN |
| 96 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C Cl |
| 97 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 98 | register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C Co |
| 99 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth |
| 100 | |
| 101 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC1)" # USB3/2 Type A port A0 |
| 102 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC2)" # USB3/2 Type A port A1 |
| 103 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 WWAN |
| 104 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 Camera |
| 105 | |
Nick Vaccaro | 97b608f | 2021-05-11 16:41:37 -0700 | [diff] [blame] | 106 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC3)" |
| 107 | register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC0)" |
| 108 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 109 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 110 | register "gen1_dec" = "0x00fc0801" |
| 111 | register "gen2_dec" = "0x000c0201" |
| 112 | # EC memory map range is 0x900-0x9ff |
| 113 | register "gen3_dec" = "0x00fc0901" |
| 114 | |
Nico Huber | 2bc4b93 | 2024-01-12 16:22:19 +0100 | [diff] [blame] | 115 | # NVMe PCIE 9 using clk 0 |
Wonkyu Kim | e3bf8ba | 2020-04-07 23:34:12 -0700 | [diff] [blame] | 116 | register "PcieRpLtrEnable[8]" = "1" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 117 | register "PcieClkSrcUsage[0]" = "8" |
| 118 | register "PcieClkSrcClkReq[0]" = "0" |
Michael Niewöhner | 45b6080 | 2022-01-08 20:47:11 +0100 | [diff] [blame] | 119 | register "PcieRpSlotImplemented[8]" = "1" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 120 | |
Nico Huber | 2bc4b93 | 2024-01-12 16:22:19 +0100 | [diff] [blame] | 121 | # Optane PCIE 11 using clk 0 |
Wonkyu Kim | e3bf8ba | 2020-04-07 23:34:12 -0700 | [diff] [blame] | 122 | register "PcieRpLtrEnable[10]" = "1" |
Shaunak Saha | b27b0fd | 2020-09-22 23:09:24 -0700 | [diff] [blame] | 123 | register "HybridStorageMode" = "0" |
Michael Niewöhner | 45b6080 | 2022-01-08 20:47:11 +0100 | [diff] [blame] | 124 | register "PcieRpSlotImplemented[10]" = "1" |
Venkata Krishna Nimmagadda | c34bb38 | 2020-01-15 10:13:26 -0800 | [diff] [blame] | 125 | |
Nico Huber | 2bc4b93 | 2024-01-12 16:22:19 +0100 | [diff] [blame] | 126 | # SD Card PCIE 8 using clk 3 |
Wonkyu Kim | e3bf8ba | 2020-04-07 23:34:12 -0700 | [diff] [blame] | 127 | register "PcieRpLtrEnable[7]" = "1" |
nick_xr_chen | f446b81 | 2020-06-30 09:34:33 +0800 | [diff] [blame] | 128 | register "PcieRpHotPlug[7]" = "1" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 129 | register "PcieClkSrcUsage[3]" = "7" |
| 130 | register "PcieClkSrcClkReq[3]" = "3" |
| 131 | |
Nico Huber | 2bc4b93 | 2024-01-12 16:22:19 +0100 | [diff] [blame] | 132 | # WLAN PCIE 7 using clk 1 |
Wonkyu Kim | e3bf8ba | 2020-04-07 23:34:12 -0700 | [diff] [blame] | 133 | register "PcieRpLtrEnable[6]" = "1" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 134 | register "PcieClkSrcUsage[1]" = "6" |
| 135 | register "PcieClkSrcClkReq[1]" = "1" |
Michael Niewöhner | 45b6080 | 2022-01-08 20:47:11 +0100 | [diff] [blame] | 136 | register "PcieRpSlotImplemented[6]" = "1" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 137 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 138 | # Mark SRCCLKREQ pins as unused that are routed for a Non-Clkreq functionality |
David Wu | 7d1a137 | 2020-10-21 10:42:25 +0800 | [diff] [blame] | 139 | register "PcieClkSrcUsage[2]" = "PCIE_CLK_NOTUSED" |
| 140 | register "PcieClkSrcUsage[4]" = "PCIE_CLK_NOTUSED" |
| 141 | register "PcieClkSrcUsage[5]" = "PCIE_CLK_NOTUSED" |
| 142 | register "PcieClkSrcUsage[6]" = "PCIE_CLK_NOTUSED" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 143 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 144 | register "SerialIoI2cMode" = "{ |
| 145 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 146 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 147 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 148 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 149 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 150 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 151 | }" |
| 152 | |
| 153 | register "SerialIoGSpiMode" = "{ |
| 154 | [PchSerialIoIndexGSPI0] = PchSerialIoPci, |
| 155 | [PchSerialIoIndexGSPI1] = PchSerialIoPci, |
| 156 | [PchSerialIoIndexGSPI2] = PchSerialIoDisabled, |
| 157 | [PchSerialIoIndexGSPI3] = PchSerialIoDisabled, |
| 158 | }" |
| 159 | |
| 160 | register "SerialIoGSpiCsMode" = "{ |
| 161 | [PchSerialIoIndexGSPI0] = 1, |
| 162 | [PchSerialIoIndexGSPI1] = 1, |
| 163 | [PchSerialIoIndexGSPI2] = 0, |
| 164 | [PchSerialIoIndexGSPI3] = 0, |
| 165 | }" |
| 166 | |
| 167 | register "SerialIoGSpiCsState" = "{ |
Caveh Jalali | 85e4c43 | 2020-09-12 03:05:48 -0700 | [diff] [blame] | 168 | [PchSerialIoIndexGSPI0] = 1, |
| 169 | [PchSerialIoIndexGSPI1] = 1, |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 170 | [PchSerialIoIndexGSPI2] = 0, |
| 171 | [PchSerialIoIndexGSPI3] = 0, |
| 172 | }" |
| 173 | |
| 174 | register "SerialIoUartMode" = "{ |
| 175 | [PchSerialIoIndexUART0] = PchSerialIoPci, |
| 176 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 177 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 178 | }" |
| 179 | |
Jamie Ryu | 8053595 | 2020-08-18 19:10:43 -0700 | [diff] [blame] | 180 | # Set the minimum assertion width |
| 181 | # PchPmSlpS3MinAssert: |
| 182 | # - 1: 60us |
| 183 | # - 2: 1ms |
| 184 | # - 3: 50ms |
| 185 | # - 4: 2s |
| 186 | register "PchPmSlpS3MinAssert" = "3" # 50ms |
| 187 | # PchPmSlpS4MinAssert: |
| 188 | # - 1 = 1s |
| 189 | # - 2 = 2s |
| 190 | # - 3 = 3s |
| 191 | # - 4 = 4s |
| 192 | register "PchPmSlpS4MinAssert" = "1" # 1s |
| 193 | # PchPmSlpSusMinAssert: |
| 194 | # - 1 = 0ms |
| 195 | # - 2 = 500ms |
| 196 | # - 3 = 1s |
| 197 | # - 4 = 4s |
| 198 | register "PchPmSlpSusMinAssert" = "3" # 1s |
| 199 | # PchPmSlpAMinAssert |
| 200 | # - 1 = 0ms |
| 201 | # - 2 = 4s |
| 202 | # - 3 = 98ms |
| 203 | # - 4 = 2s |
| 204 | register "PchPmSlpAMinAssert" = "3" # 98ms |
| 205 | |
| 206 | # NOTE: Duration programmed in the below register should never be smaller than the |
| 207 | # stretch duration programmed in the following registers - |
| 208 | # - GEN_PMCON_A.SLP_S3_MIN_ASST_WDTH (PchPmSlpS3MinAssert) |
| 209 | # - GEN_PMCON_A.S4MAW (PchPmSlpS4MinAssert) |
| 210 | # - PM_CFG.SLP_A_MIN_ASST_WDTH (PchPmSlpAMinAssert) |
| 211 | # - PM_CFG.SLP_LAN_MIN_ASST_WDTH |
| 212 | register "PchPmPwrCycDur" = "1" # 1s |
| 213 | |
Srinidhi N Kaushik | 22d5b07 | 2020-03-06 10:47:17 -0800 | [diff] [blame] | 214 | # HD Audio |
| 215 | register "PchHdaDspEnable" = "1" |
Srinidhi N Kaushik | 22d5b07 | 2020-03-06 10:47:17 -0800 | [diff] [blame] | 216 | |
Brandon Breitenstein | 01ec713 | 2020-03-06 10:51:30 -0800 | [diff] [blame] | 217 | # TCSS USB3 |
Brandon Breitenstein | 40b5358 | 2020-12-21 14:57:50 -0800 | [diff] [blame] | 218 | register "UsbTcPortEn" = "0x3" |
Brandon Breitenstein | 01ec713 | 2020-03-06 10:51:30 -0800 | [diff] [blame] | 219 | register "TcssXhciEn" = "1" |
Brandon Breitenstein | 1df3b70 | 2020-08-10 15:02:41 -0700 | [diff] [blame] | 220 | register "TcssAuxOri" = "0" |
Brandon Breitenstein | b7911c8 | 2020-04-06 15:34:19 -0700 | [diff] [blame] | 221 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 222 | # DP port |
Angel Pons | da4e1d7 | 2022-05-04 17:08:11 +0200 | [diff] [blame] | 223 | register "DdiPortAConfig" = "DDI_PORT_CFG_EDP" |
| 224 | register "DdiPortBConfig" = "DDI_PORT_CFG_NO_LFP" |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 225 | |
| 226 | register "DdiPortAHpd" = "1" |
| 227 | register "DdiPortBHpd" = "1" |
| 228 | register "DdiPortCHpd" = "0" |
| 229 | register "DdiPort1Hpd" = "1" |
| 230 | register "DdiPort2Hpd" = "1" |
| 231 | register "DdiPort3Hpd" = "0" |
| 232 | register "DdiPort4Hpd" = "0" |
| 233 | |
| 234 | register "DdiPortADdc" = "0" |
| 235 | register "DdiPortBDdc" = "1" |
| 236 | register "DdiPortCDdc" = "0" |
| 237 | register "DdiPort1Ddc" = "0" |
| 238 | register "DdiPort2Ddc" = "0" |
| 239 | register "DdiPort3Ddc" = "0" |
| 240 | register "DdiPort4Ddc" = "0" |
| 241 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 242 | # Enable S0ix |
| 243 | register "s0ix_enable" = "1" |
| 244 | |
Sumeet R Pawnikar | 7d6bc60 | 2020-05-08 19:22:07 +0530 | [diff] [blame] | 245 | # Enable DPTF |
| 246 | register "dptf_enable" = "1" |
| 247 | |
Shreesh Chhabbi | 3c6ad8d | 2021-02-04 13:16:24 -0800 | [diff] [blame] | 248 | # Enable External Bypass |
| 249 | register "external_bypass" = "1" |
| 250 | |
| 251 | # Enable External Clk Gate |
| 252 | register "external_clk_gated" = "1" |
| 253 | |
| 254 | # Enable External Phy Gate |
| 255 | register "external_phy_gated" = "1" |
| 256 | |
Sumeet R Pawnikar | 1a62150 | 2020-07-20 15:44:59 +0530 | [diff] [blame] | 257 | register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{ |
| 258 | .tdp_pl1_override = 15, |
| 259 | .tdp_pl2_override = 38, |
| 260 | .tdp_pl4 = 71, |
| 261 | }" |
Tim Wawrzynczak | 2dcca0f | 2020-06-16 10:50:47 -0600 | [diff] [blame] | 262 | register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{ |
Sumeet R Pawnikar | 7d6bc60 | 2020-05-08 19:22:07 +0530 | [diff] [blame] | 263 | .tdp_pl1_override = 15, |
| 264 | .tdp_pl2_override = 60, |
Tim Wawrzynczak | 2dcca0f | 2020-06-16 10:50:47 -0600 | [diff] [blame] | 265 | .tdp_pl4 = 105, |
| 266 | }" |
Sumeet R Pawnikar | 1a62150 | 2020-07-20 15:44:59 +0530 | [diff] [blame] | 267 | register "power_limits_config[POWER_LIMITS_Y_2_CORE]" = "{ |
| 268 | .tdp_pl1_override = 9, |
| 269 | .tdp_pl2_override = 35, |
| 270 | .tdp_pl4 = 66, |
| 271 | }" |
| 272 | register "power_limits_config[POWER_LIMITS_Y_4_CORE]" = "{ |
| 273 | .tdp_pl1_override = 9, |
| 274 | .tdp_pl2_override = 40, |
| 275 | .tdp_pl4 = 83, |
Sumeet R Pawnikar | 7d6bc60 | 2020-05-08 19:22:07 +0530 | [diff] [blame] | 276 | }" |
| 277 | |
Sumeet R Pawnikar | 9f9b97e | 2020-06-30 14:18:41 +0530 | [diff] [blame] | 278 | register "tcc_offset" = "10" # TCC of 90 |
| 279 | |
Cliff Huang | 2eee6c3 | 2021-02-05 14:29:27 -0800 | [diff] [blame] | 280 | register "CnviBtCore" = "true" |
| 281 | |
Angel Pons | 98521c5 | 2021-03-01 21:16:49 +0100 | [diff] [blame] | 282 | register "CnviBtAudioOffload" = "true" |
John Zhao | c8e3097 | 2020-09-21 13:20:57 -0700 | [diff] [blame] | 283 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 284 | # Intel Common SoC Config |
| 285 | #+-------------------+---------------------------+ |
| 286 | #| Field | Value | |
| 287 | #+-------------------+---------------------------+ |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 288 | #| GSPI0 | cr50 TPM. Early init is | |
| 289 | #| | required to set up a BAR | |
| 290 | #| | for TPM communication | |
| 291 | #| | before memory is up | |
Alex Levin | 3bc41cf | 2020-03-06 10:54:10 -0800 | [diff] [blame] | 292 | #| GSPI1 | Fingerprint MCU | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 293 | #| I2C0 | Audio | |
| 294 | #| I2C1 | Touchscreen | |
| 295 | #| I2C2 | WLAN, SAR0 | |
| 296 | #| I2C3 | Camera, SAR1 | |
| 297 | #| I2C5 | Trackpad | |
| 298 | #+-------------------+---------------------------+ |
| 299 | register "common_soc_config" = "{ |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 300 | .gspi[0] = { |
| 301 | .speed_mhz = 1, |
| 302 | .early_init = 1, |
| 303 | }, |
| 304 | .i2c[0] = { |
| 305 | .speed = I2C_SPEED_FAST, |
| 306 | }, |
| 307 | .i2c[1] = { |
| 308 | .speed = I2C_SPEED_FAST, |
| 309 | }, |
| 310 | .i2c[2] = { |
| 311 | .speed = I2C_SPEED_FAST, |
| 312 | }, |
| 313 | .i2c[3] = { |
| 314 | .speed = I2C_SPEED_FAST, |
| 315 | }, |
| 316 | .i2c[5] = { |
| 317 | .speed = I2C_SPEED_FAST, |
| 318 | }, |
| 319 | }" |
| 320 | |
Venkata Krishna Nimmagadda | 7368da3 | 2020-06-09 00:11:34 -0700 | [diff] [blame] | 321 | register "ext_fivr_settings" = "{ |
| 322 | .configure_ext_fivr = 1, |
| 323 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 324 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 325 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 326 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 327 | FIVR_VOLTAGE_MIN_RETENTION, |
| 328 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 329 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 330 | FIVR_VOLTAGE_MIN_RETENTION, |
| 331 | .v1p05_icc_max_ma = 500, |
| 332 | .vnn_sx_voltage_mv = 1250, |
| 333 | }" |
| 334 | |
Shaunak Saha | 82d5123 | 2021-02-17 23:26:43 -0800 | [diff] [blame] | 335 | # Acoustic settings |
| 336 | register "AcousticNoiseMitigation" = "1" |
| 337 | register "SlowSlewRate" = "SLEW_FAST_8" |
| 338 | register "FastPkgCRampDisable" = "1" |
| 339 | |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 340 | device domain 0 on |
Matt DeVillier | bd36a31 | 2022-02-15 11:48:30 -0600 | [diff] [blame] | 341 | device ref igpu on |
| 342 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 343 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 344 | device ref dptf on |
Tim Wawrzynczak | 07ac2ec | 2020-05-29 15:58:19 -0600 | [diff] [blame] | 345 | # Default DPTF Policy for all Volteer boards if not overridden |
| 346 | chip drivers/intel/dptf |
| 347 | ## Active Policy |
Tim Wawrzynczak | a5cb564 | 2020-09-08 13:14:09 -0600 | [diff] [blame] | 348 | register "policies.active" = "{ |
| 349 | [0] = {.target = DPTF_CPU, |
| 350 | .thresholds = {TEMP_PCT(85, 90), |
| 351 | TEMP_PCT(80, 69), |
| 352 | TEMP_PCT(75, 56), |
| 353 | TEMP_PCT(70, 46), |
| 354 | TEMP_PCT(65, 36),}}, |
| 355 | [1] = {.target = DPTF_TEMP_SENSOR_0, |
| 356 | .thresholds = {TEMP_PCT(50, 90), |
| 357 | TEMP_PCT(47, 69), |
| 358 | TEMP_PCT(45, 56), |
| 359 | TEMP_PCT(42, 46), |
| 360 | TEMP_PCT(39, 36),}}, |
| 361 | [2] = {.target = DPTF_TEMP_SENSOR_1, |
| 362 | .thresholds = {TEMP_PCT(50, 90), |
| 363 | TEMP_PCT(47, 69), |
| 364 | TEMP_PCT(45, 56), |
| 365 | TEMP_PCT(42, 46), |
| 366 | TEMP_PCT(39, 36),}}, |
| 367 | [3] = {.target = DPTF_TEMP_SENSOR_2, |
| 368 | .thresholds = {TEMP_PCT(50, 90), |
| 369 | TEMP_PCT(47, 69), |
| 370 | TEMP_PCT(45, 56), |
| 371 | TEMP_PCT(42, 46), |
| 372 | TEMP_PCT(39, 36),}}, |
| 373 | [4] = {.target = DPTF_TEMP_SENSOR_3, |
| 374 | .thresholds = {TEMP_PCT(50, 90), |
| 375 | TEMP_PCT(47, 69), |
| 376 | TEMP_PCT(45, 56), |
| 377 | TEMP_PCT(42, 46), |
| 378 | TEMP_PCT(39, 36),}}}" |
Tim Wawrzynczak | 07ac2ec | 2020-05-29 15:58:19 -0600 | [diff] [blame] | 379 | |
| 380 | ## Passive Policy |
Tim Wawrzynczak | a5cb564 | 2020-09-08 13:14:09 -0600 | [diff] [blame] | 381 | register "policies.passive" = "{ |
| 382 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 383 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 65, 6000), |
| 384 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_0, 65, 6000), |
| 385 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 65, 6000), |
| 386 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 65, 6000)}" |
Tim Wawrzynczak | 07ac2ec | 2020-05-29 15:58:19 -0600 | [diff] [blame] | 387 | |
| 388 | ## Critical Policy |
Tim Wawrzynczak | a5cb564 | 2020-09-08 13:14:09 -0600 | [diff] [blame] | 389 | register "policies.critical" = "{ |
| 390 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 391 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 75, SHUTDOWN), |
| 392 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 75, SHUTDOWN), |
| 393 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 75, SHUTDOWN), |
| 394 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 75, SHUTDOWN)}" |
Tim Wawrzynczak | 07ac2ec | 2020-05-29 15:58:19 -0600 | [diff] [blame] | 395 | |
| 396 | ## Power Limits Control |
Sumeet R Pawnikar | 88352c5 | 2020-10-08 21:15:42 +0530 | [diff] [blame] | 397 | # 3-15W PL1 in 200mW increments, avg over 28-32s interval |
| 398 | # PL2 ranges from 15 to 60W, avg over 28-32s interval |
Tim Wawrzynczak | a5cb564 | 2020-09-08 13:14:09 -0600 | [diff] [blame] | 399 | register "controls.power_limits" = "{ |
| 400 | .pl1 = {.min_power = 3000, |
| 401 | .max_power = 15000, |
| 402 | .time_window_min = 28 * MSECS_PER_SEC, |
| 403 | .time_window_max = 32 * MSECS_PER_SEC, |
| 404 | .granularity = 200,}, |
Sumeet R Pawnikar | a97fb7f | 2020-12-04 11:48:24 +0530 | [diff] [blame] | 405 | .pl2 = {.min_power = 60000, |
Tim Wawrzynczak | a5cb564 | 2020-09-08 13:14:09 -0600 | [diff] [blame] | 406 | .max_power = 60000, |
| 407 | .time_window_min = 28 * MSECS_PER_SEC, |
| 408 | .time_window_max = 32 * MSECS_PER_SEC, |
| 409 | .granularity = 1000,}}" |
Tim Wawrzynczak | 07ac2ec | 2020-05-29 15:58:19 -0600 | [diff] [blame] | 410 | |
| 411 | ## Charger Performance Control (Control, mA) |
Tim Wawrzynczak | a5cb564 | 2020-09-08 13:14:09 -0600 | [diff] [blame] | 412 | register "controls.charger_perf" = "{ |
| 413 | [0] = { 255, 1700 }, |
| 414 | [1] = { 24, 1500 }, |
| 415 | [2] = { 16, 1000 }, |
| 416 | [3] = { 8, 500 }}" |
Tim Wawrzynczak | 07ac2ec | 2020-05-29 15:58:19 -0600 | [diff] [blame] | 417 | |
| 418 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
Tim Wawrzynczak | a5cb564 | 2020-09-08 13:14:09 -0600 | [diff] [blame] | 419 | register "controls.fan_perf" = "{ |
| 420 | [0] = { 90, 6700, 220, 2200, }, |
| 421 | [1] = { 80, 5800, 180, 1800, }, |
| 422 | [2] = { 70, 5000, 145, 1450, }, |
| 423 | [3] = { 60, 4900, 115, 1150, }, |
| 424 | [4] = { 50, 3838, 90, 900, }, |
| 425 | [5] = { 40, 2904, 55, 550, }, |
| 426 | [6] = { 30, 2337, 30, 300, }, |
| 427 | [7] = { 20, 1608, 15, 150, }, |
| 428 | [8] = { 10, 800, 10, 100, }, |
| 429 | [9] = { 0, 0, 0, 50, }}" |
Tim Wawrzynczak | 07ac2ec | 2020-05-29 15:58:19 -0600 | [diff] [blame] | 430 | |
| 431 | # Fan options |
| 432 | register "options.fan.fine_grained_control" = "1" |
| 433 | register "options.fan.step_size" = "2" |
| 434 | |
| 435 | device generic 0 on end |
| 436 | end |
| 437 | end # DPTF 0x9A03 |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 438 | device ref gna on end |
| 439 | device ref north_xhci on end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 440 | device ref south_xhci on end |
| 441 | device ref shared_ram on end |
Furquan Shaikh | edac4ef | 2020-10-09 08:50:14 -0700 | [diff] [blame] | 442 | device ref cnvi_wifi on |
| 443 | chip drivers/wifi/generic |
| 444 | register "wake" = "GPE0_PME_B0" |
| 445 | device generic 0 on end |
| 446 | end |
Srinidhi N Kaushik | ac7d6b4 | 2020-03-05 17:19:51 -0800 | [diff] [blame] | 447 | end |
Tim Wawrzynczak | c8340d4 | 2020-12-09 09:40:23 -0700 | [diff] [blame] | 448 | # MIPI camera devices are on I2C buses 2 and 3 |
| 449 | device ref i2c2 on end |
| 450 | device ref i2c3 on end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 451 | device ref heci1 on end |
Felix Singer | 8c1daf9 | 2024-06-27 23:25:32 +0200 | [diff] [blame] | 452 | device ref sata on |
| 453 | register "SataSalpSupport" = "1" |
| 454 | register "SataPortsEnable[1]" = "1" |
| 455 | register "SataPortsDevSlp[1]" = "1" |
| 456 | register "SataPortsEnableDitoConfig[1]" = "1" |
| 457 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 458 | device ref pcie_rp7 on end |
Duncan Laurie | 9d0fde3 | 2020-11-09 09:36:31 -0800 | [diff] [blame] | 459 | device ref pcie_rp8 on |
| 460 | probe DB_SD SD_GL9755S |
| 461 | probe DB_SD SD_RTS5261 |
Duncan Laurie | 912d9ec | 2020-11-30 10:09:42 -0800 | [diff] [blame] | 462 | probe DB_SD SD_RTS5227S |
| 463 | probe DB_SD SD_GL9750 |
| 464 | probe DB_SD SD_OZ711LV2LN |
Duncan Laurie | 9d0fde3 | 2020-11-09 09:36:31 -0800 | [diff] [blame] | 465 | chip soc/intel/common/block/pcie/rtd3 |
| 466 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)" |
| 467 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H3)" |
| 468 | register "srcclk_pin" = "3" |
| 469 | device generic 0 on |
| 470 | probe DB_SD SD_GL9755S |
Duncan Laurie | 912d9ec | 2020-11-30 10:09:42 -0800 | [diff] [blame] | 471 | probe DB_SD SD_RTS5227S |
| 472 | probe DB_SD SD_GL9750 |
| 473 | probe DB_SD SD_OZ711LV2LN |
Duncan Laurie | 9d0fde3 | 2020-11-09 09:36:31 -0800 | [diff] [blame] | 474 | end |
| 475 | end |
| 476 | chip soc/intel/common/block/pcie/rtd3 |
| 477 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H3)" |
| 478 | register "srcclk_pin" = "3" |
Kapil Porwal | bc76109 | 2022-11-24 17:58:34 +0530 | [diff] [blame] | 479 | register "add_acpi_external_facing_port" = "1" |
Duncan Laurie | 9d0fde3 | 2020-11-09 09:36:31 -0800 | [diff] [blame] | 480 | device generic 1 on |
| 481 | probe DB_SD SD_RTS5261 |
| 482 | end |
| 483 | end |
| 484 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 485 | device ref pcie_rp9 on end |
| 486 | device ref pcie_rp11 on end |
| 487 | device ref uart0 on end |
| 488 | device ref gspi0 on |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 489 | chip drivers/spi/acpi |
| 490 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 491 | register "compat_string" = ""google,cr50"" |
| 492 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C21_IRQ)" |
Furquan Shaikh | 522174b | 2021-09-16 16:54:04 -0700 | [diff] [blame] | 493 | device spi 0 alias spi_tpm on end |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 494 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 495 | end |
| 496 | device ref gspi1 on |
Alex Levin | 3bc41cf | 2020-03-06 10:54:10 -0800 | [diff] [blame] | 497 | chip drivers/spi/acpi |
| 498 | register "name" = ""CRFP"" |
| 499 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 500 | register "uid" = "1" |
| 501 | register "compat_string" = ""google,cros-ec-spi"" |
| 502 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW_WAKE(GPP_C20)" |
| 503 | device spi 0 on end |
| 504 | end # FPMCU |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 505 | end |
| 506 | device ref pch_espi on |
Nick Vaccaro | 9a3486e | 2020-04-17 10:14:57 -0700 | [diff] [blame] | 507 | chip ec/google/chromeec |
| 508 | device pnp 0c09.0 on end |
| 509 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 510 | end |
Matt DeVillier | 8e883c1 | 2023-01-17 12:20:38 -0600 | [diff] [blame] | 511 | device ref hda on |
| 512 | chip drivers/sof |
| 513 | register "spkr_tplg" = "max98373" |
| 514 | register "jack_tplg" = "rt5682" |
| 515 | register "mic_tplg" = "_2ch_pdm0" |
Matt DeVillier | 1be9f35 | 2023-05-15 10:47:15 -0500 | [diff] [blame] | 516 | device generic 0 on |
| 517 | probe AUDIO MAX98373_ALC5682I_I2S |
| 518 | probe AUDIO MAX98373_ALC5682_SNDW |
| 519 | end |
| 520 | end |
| 521 | chip drivers/sof |
| 522 | register "spkr_tplg" = "max98373_ssp2" |
| 523 | register "jack_tplg" = "rt5682" |
| 524 | register "mic_tplg" = "_2ch_pdm0" |
| 525 | device generic 0 on |
| 526 | probe AUDIO MAX98373_ALC5682I_I2S_UP4 |
| 527 | end |
| 528 | end |
| 529 | chip drivers/sof |
| 530 | register "spkr_tplg" = "max98360a" |
| 531 | register "jack_tplg" = "rt5682" |
| 532 | register "mic_tplg" = "_2ch_pdm0" |
| 533 | device generic 0 on |
| 534 | probe AUDIO MAX98360_ALC5682I_I2S |
| 535 | end |
| 536 | end |
| 537 | chip drivers/sof |
| 538 | register "spkr_tplg" = "rt1011" |
| 539 | register "jack_tplg" = "rt5682" |
| 540 | register "mic_tplg" = "_2ch_pdm0" |
| 541 | device generic 0 on |
| 542 | probe AUDIO RT1011_ALC5682I_I2S |
| 543 | end |
Matt DeVillier | 8e883c1 | 2023-01-17 12:20:38 -0600 | [diff] [blame] | 544 | end |
| 545 | end |
Nick Vaccaro | f978191 | 2020-01-28 18:43:28 -0800 | [diff] [blame] | 546 | end |
| 547 | end |