Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef _SOC_CHIP_H_ |
| 4 | #define _SOC_CHIP_H_ |
| 5 | |
| 6 | #include <drivers/i2c/designware/dw_i2c.h> |
| 7 | #include <intelblocks/cfg.h> |
| 8 | #include <intelblocks/gpio.h> |
| 9 | #include <intelblocks/gspi.h> |
Sumeet R Pawnikar | 77298c6 | 2021-03-10 21:09:37 +0530 | [diff] [blame] | 10 | #include <intelblocks/power_limit.h> |
Eric Lai | de2ab41 | 2021-01-11 16:14:14 +0800 | [diff] [blame] | 11 | #include <intelblocks/pcie_rp.h> |
Maulik V Vaghela | 6935350 | 2021-04-14 14:01:02 +0530 | [diff] [blame] | 12 | #include <intelblocks/tcss.h> |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 13 | #include <soc/gpe.h> |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 14 | #include <soc/pci_devs.h> |
| 15 | #include <soc/pmc.h> |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 16 | #include <soc/serialio.h> |
| 17 | #include <soc/usb.h> |
V Sowmya | c6d7166 | 2021-07-15 08:11:08 +0530 | [diff] [blame^] | 18 | #include <soc/vr_config.h> |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 19 | #include <stdint.h> |
| 20 | |
Sumeet Pawnikar | aa49608 | 2021-05-07 20:11:53 +0530 | [diff] [blame] | 21 | /* Types of different SKUs */ |
| 22 | enum soc_intel_alderlake_power_limits { |
| 23 | ADL_P_POWER_LIMITS_282_CORE, |
| 24 | ADL_P_POWER_LIMITS_482_CORE, |
| 25 | ADL_P_POWER_LIMITS_682_CORE, |
| 26 | ADL_M_POWER_LIMITS_282_CORE, |
| 27 | ADL_POWER_LIMITS_COUNT |
| 28 | }; |
| 29 | |
Subrata Banik | 8a18bd8 | 2021-06-09 21:57:49 +0530 | [diff] [blame] | 30 | /* Types of display ports */ |
| 31 | enum ddi_ports { |
| 32 | DDI_PORT_A, |
| 33 | DDI_PORT_B, |
| 34 | DDI_PORT_C, |
| 35 | DDI_PORT_1, |
| 36 | DDI_PORT_2, |
| 37 | DDI_PORT_3, |
| 38 | DDI_PORT_4, |
| 39 | DDI_PORT_COUNT, |
| 40 | }; |
| 41 | |
| 42 | enum ddi_port_flags { |
| 43 | DDI_ENABLE_DDC = 1 << 0, |
| 44 | DDI_ENABLE_HPD = 1 << 1, |
| 45 | }; |
| 46 | |
V Sowmya | 418d37e | 2021-06-21 08:47:17 +0530 | [diff] [blame] | 47 | /* |
| 48 | * Enable External V1P05/Vnn/VnnSx Rail in: BIT0:S0i1/S0i2, |
| 49 | * BIT1:S0i3, BIT2:S3, BIT3:S4, BIT4:S5 |
| 50 | */ |
| 51 | enum fivr_enable_states { |
| 52 | FIVR_ENABLE_S0i1_S0i2 = BIT(0), |
| 53 | FIVR_ENABLE_S0i3 = BIT(1), |
| 54 | FIVR_ENABLE_S3 = BIT(2), |
| 55 | FIVR_ENABLE_S4 = BIT(3), |
| 56 | FIVR_ENABLE_S5 = BIT(4), |
| 57 | }; |
| 58 | |
| 59 | /* |
| 60 | * Enable the following for External V1p05 rail |
| 61 | * BIT0: Retention active switch support |
| 62 | * BIT1: Normal Active voltage supported |
| 63 | * BIT2: Minimum active voltage supported |
| 64 | * BIT3: Minimum Retention voltage supported |
| 65 | */ |
| 66 | enum fivr_voltage_supported { |
| 67 | FIVR_RET_ACTIVE_SWITCH_SUPPORT = BIT(0), |
| 68 | FIVR_VOLTAGE_NORMAL = BIT(1), |
| 69 | FIVR_VOLTAGE_MIN_ACTIVE = BIT(2), |
| 70 | FIVR_VOLTAGE_MIN_RETENTION = BIT(3), |
| 71 | }; |
| 72 | |
| 73 | #define FIVR_ENABLE_ALL_SX (FIVR_ENABLE_S0i1_S0i2 | FIVR_ENABLE_S0i3 | \ |
| 74 | FIVR_ENABLE_S3 | FIVR_ENABLE_S4 | FIVR_ENABLE_S5) |
V Sowmya | af42906 | 2021-06-21 10:23:33 +0530 | [diff] [blame] | 75 | /* |
| 76 | * The Max Pkg Cstate |
| 77 | * Values 0 - C0/C1, 1 - C2, 2 - C3, 3 - C6, 4 - C7, 5 - C7S, 6 - C8, 7 - C9, 8 - C10, |
| 78 | * 254 - CPU Default , 255 - Auto. |
| 79 | */ |
| 80 | enum pkgcstate_limit { |
| 81 | LIMIT_C0_C1 = 0, |
| 82 | LIMIT_C2 = 1, |
| 83 | LIMIT_C3 = 2, |
| 84 | LIMIT_C6 = 3, |
| 85 | LIMIT_C7 = 4, |
| 86 | LIMIT_C7S = 5, |
| 87 | LIMIT_C8 = 6, |
| 88 | LIMIT_C9 = 7, |
| 89 | LIMIT_C10 = 8, |
| 90 | LIMIT_CPUDEFAULT = 254, |
| 91 | LIMIT_AUTO = 255, |
| 92 | }; |
V Sowmya | 418d37e | 2021-06-21 08:47:17 +0530 | [diff] [blame] | 93 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 94 | struct soc_intel_alderlake_config { |
| 95 | |
| 96 | /* Common struct containing soc config data required by common code */ |
| 97 | struct soc_intel_common_config common_soc_config; |
| 98 | |
Sumeet R Pawnikar | 77298c6 | 2021-03-10 21:09:37 +0530 | [diff] [blame] | 99 | /* Common struct containing power limits configuration information */ |
Sumeet Pawnikar | aa49608 | 2021-05-07 20:11:53 +0530 | [diff] [blame] | 100 | struct soc_power_limits_config power_limits_config[ADL_POWER_LIMITS_COUNT]; |
Sumeet R Pawnikar | 77298c6 | 2021-03-10 21:09:37 +0530 | [diff] [blame] | 101 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 102 | /* Gpio group routed to each dword of the GPE0 block. Values are |
| 103 | * of the form PMC_GPP_[A:U] or GPD. */ |
| 104 | uint8_t pmc_gpe0_dw0; /* GPE0_31_0 STS/EN */ |
| 105 | uint8_t pmc_gpe0_dw1; /* GPE0_63_32 STS/EN */ |
| 106 | uint8_t pmc_gpe0_dw2; /* GPE0_95_64 STS/EN */ |
| 107 | |
| 108 | /* Generic IO decode ranges */ |
| 109 | uint32_t gen1_dec; |
| 110 | uint32_t gen2_dec; |
| 111 | uint32_t gen3_dec; |
| 112 | uint32_t gen4_dec; |
| 113 | |
| 114 | /* Enable S0iX support */ |
| 115 | int s0ix_enable; |
| 116 | /* Support for TCSS xhci, xdci, TBT PCIe root ports and DMA controllers */ |
| 117 | uint8_t TcssD3HotDisable; |
| 118 | /* Support for TBT PCIe root ports and DMA controllers with D3Hot->D3Cold */ |
| 119 | uint8_t TcssD3ColdDisable; |
| 120 | /* Enable DPTF support */ |
| 121 | int dptf_enable; |
| 122 | |
| 123 | /* Deep SX enable for both AC and DC */ |
| 124 | int deep_s3_enable_ac; |
| 125 | int deep_s3_enable_dc; |
| 126 | int deep_s5_enable_ac; |
| 127 | int deep_s5_enable_dc; |
| 128 | |
| 129 | /* Deep Sx Configuration |
| 130 | * DSX_EN_WAKE_PIN - Enable WAKE# pin |
| 131 | * DSX_EN_LAN_WAKE_PIN - Enable LAN_WAKE# pin |
| 132 | * DSX_DIS_AC_PRESENT_PD - Disable pull-down on AC_PRESENT pin */ |
| 133 | uint32_t deep_sx_config; |
| 134 | |
| 135 | /* TCC activation offset */ |
| 136 | uint32_t tcc_offset; |
| 137 | |
| 138 | /* System Agent dynamic frequency support. Only effects ULX/ULT CPUs. |
| 139 | * When enabled memory will be training at two different frequencies. |
| 140 | * 0:Disabled, 1:FixedPoint0, 2:FixedPoint1, 3:FixedPoint2, |
| 141 | * 4:FixedPoint3, 5:Enabled */ |
| 142 | enum { |
| 143 | SaGv_Disabled, |
| 144 | SaGv_FixedPoint0, |
| 145 | SaGv_FixedPoint1, |
| 146 | SaGv_FixedPoint2, |
| 147 | SaGv_FixedPoint3, |
| 148 | SaGv_Enabled, |
| 149 | } SaGv; |
| 150 | |
| 151 | /* Rank Margin Tool. 1:Enable, 0:Disable */ |
| 152 | uint8_t RMT; |
| 153 | |
| 154 | /* USB related */ |
| 155 | struct usb2_port_config usb2_ports[16]; |
| 156 | struct usb3_port_config usb3_ports[10]; |
| 157 | /* Wake Enable Bitmap for USB2 ports */ |
| 158 | uint16_t usb2_wake_enable_bitmap; |
| 159 | /* Wake Enable Bitmap for USB3 ports */ |
| 160 | uint16_t usb3_wake_enable_bitmap; |
Maulik V Vaghela | 6935350 | 2021-04-14 14:01:02 +0530 | [diff] [blame] | 161 | /* Program OC pins for TCSS */ |
| 162 | struct tcss_port_config tcss_ports[MAX_TYPE_C_PORTS]; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 163 | |
| 164 | /* SATA related */ |
| 165 | uint8_t SataEnable; |
| 166 | uint8_t SataMode; |
| 167 | uint8_t SataSalpSupport; |
| 168 | uint8_t SataPortsEnable[8]; |
| 169 | uint8_t SataPortsDevSlp[8]; |
| 170 | |
| 171 | /* |
| 172 | * Enable(0)/Disable(1) SATA Power Optimizer on PCH side. |
| 173 | * Default 0. Setting this to 1 disables the SATA Power Optimizer. |
| 174 | */ |
| 175 | uint8_t SataPwrOptimizeDisable; |
| 176 | |
| 177 | /* |
| 178 | * SATA Port Enable Dito Config. |
| 179 | * Enable DEVSLP Idle Timeout settings (DmVal, DitoVal). |
| 180 | */ |
| 181 | uint8_t SataPortsEnableDitoConfig[8]; |
| 182 | |
| 183 | /* SataPortsDmVal is the DITO multiplier. Default is 15. */ |
| 184 | uint8_t SataPortsDmVal[8]; |
| 185 | /* SataPortsDitoVal is the DEVSLP Idle Timeout, default is 625ms */ |
| 186 | uint16_t SataPortsDitoVal[8]; |
| 187 | |
| 188 | /* Audio related */ |
| 189 | uint8_t PchHdaDspEnable; |
Sugnan Prabhu S | 50f8b4e | 2021-03-18 22:08:22 +0530 | [diff] [blame] | 190 | |
| 191 | /* iDisp-Link T-Mode 0: 2T, 2: 4T, 3: 8T, 4: 16T */ |
| 192 | enum { |
| 193 | HDA_TMODE_2T = 0, |
| 194 | HDA_TMODE_4T = 2, |
| 195 | HDA_TMODE_8T = 3, |
| 196 | HDA_TMODE_16T = 4, |
| 197 | } PchHdaIDispLinkTmode; |
| 198 | |
| 199 | /* iDisp-Link Freq 4: 96MHz, 3: 48MHz. */ |
| 200 | enum { |
| 201 | HDA_LINKFREQ_48MHZ = 3, |
| 202 | HDA_LINKFREQ_96MHZ = 4, |
| 203 | } PchHdaIDispLinkFrequency; |
| 204 | |
| 205 | bool PchHdaIDispCodecEnable; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 206 | |
Eric Lai | 5b302b2 | 2020-12-05 16:49:43 +0800 | [diff] [blame] | 207 | struct pcie_rp_config pch_pcie_rp[CONFIG_MAX_PCH_ROOT_PORTS]; |
| 208 | struct pcie_rp_config cpu_pcie_rp[CONFIG_MAX_CPU_ROOT_PORTS]; |
| 209 | uint8_t pcie_clk_config_flag[CONFIG_MAX_PCIE_CLOCK_SRC]; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 210 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 211 | /* Gfx related */ |
| 212 | enum { |
| 213 | IGD_SM_0MB = 0x00, |
| 214 | IGD_SM_32MB = 0x01, |
| 215 | IGD_SM_64MB = 0x02, |
| 216 | IGD_SM_96MB = 0x03, |
| 217 | IGD_SM_128MB = 0x04, |
| 218 | IGD_SM_160MB = 0x05, |
| 219 | IGD_SM_4MB = 0xF0, |
| 220 | IGD_SM_8MB = 0xF1, |
| 221 | IGD_SM_12MB = 0xF2, |
| 222 | IGD_SM_16MB = 0xF3, |
| 223 | IGD_SM_20MB = 0xF4, |
| 224 | IGD_SM_24MB = 0xF5, |
| 225 | IGD_SM_28MB = 0xF6, |
| 226 | IGD_SM_36MB = 0xF8, |
| 227 | IGD_SM_40MB = 0xF9, |
| 228 | IGD_SM_44MB = 0xFA, |
| 229 | IGD_SM_48MB = 0xFB, |
| 230 | IGD_SM_52MB = 0xFC, |
| 231 | IGD_SM_56MB = 0xFD, |
| 232 | IGD_SM_60MB = 0xFE, |
| 233 | } IgdDvmt50PreAlloc; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 234 | uint8_t SkipExtGfxScan; |
| 235 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 236 | /* HeciEnabled decides the state of Heci1 at end of boot |
| 237 | * Setting to 0 (default) disables Heci1 and hides the device from OS */ |
| 238 | uint8_t HeciEnabled; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 239 | |
| 240 | /* Enable/Disable EIST. 1b:Enabled, 0b:Disabled */ |
| 241 | uint8_t eist_enable; |
| 242 | |
| 243 | /* Enable C6 DRAM */ |
| 244 | uint8_t enable_c6dram; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 245 | uint8_t PmTimerDisabled; |
| 246 | /* |
| 247 | * SerialIO device mode selection: |
| 248 | * PchSerialIoDisabled, |
| 249 | * PchSerialIoPci, |
| 250 | * PchSerialIoHidden, |
| 251 | * PchSerialIoLegacyUart, |
| 252 | * PchSerialIoSkipInit |
| 253 | */ |
| 254 | uint8_t SerialIoI2cMode[CONFIG_SOC_INTEL_I2C_DEV_MAX]; |
| 255 | uint8_t SerialIoGSpiMode[CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX]; |
| 256 | uint8_t SerialIoUartMode[CONFIG_SOC_INTEL_UART_DEV_MAX]; |
| 257 | /* |
| 258 | * GSPIn Default Chip Select Mode: |
| 259 | * 0:Hardware Mode, |
| 260 | * 1:Software Mode |
| 261 | */ |
| 262 | uint8_t SerialIoGSpiCsMode[CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX]; |
| 263 | /* |
| 264 | * GSPIn Default Chip Select State: |
| 265 | * 0: Low, |
| 266 | * 1: High |
| 267 | */ |
| 268 | uint8_t SerialIoGSpiCsState[CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX]; |
| 269 | |
| 270 | /* Debug interface selection */ |
| 271 | enum { |
| 272 | DEBUG_INTERFACE_RAM = (1 << 0), |
| 273 | DEBUG_INTERFACE_UART_8250IO = (1 << 1), |
| 274 | DEBUG_INTERFACE_USB3 = (1 << 3), |
| 275 | DEBUG_INTERFACE_LPSS_SERIAL_IO = (1 << 4), |
| 276 | DEBUG_INTERFACE_TRACEHUB = (1 << 5), |
| 277 | } debug_interface_flag; |
| 278 | |
| 279 | /* Enable Pch iSCLK */ |
| 280 | uint8_t pch_isclk; |
| 281 | |
Cliff Huang | bc1941f | 2021-02-10 17:41:41 -0800 | [diff] [blame] | 282 | /* CNVi BT Core Enable/Disable */ |
| 283 | bool CnviBtCore; |
| 284 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 285 | /* CNVi BT Audio Offload: Enable/Disable BT Audio Offload. */ |
Angel Pons | 98521c5 | 2021-03-01 21:16:49 +0100 | [diff] [blame] | 286 | bool CnviBtAudioOffload; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 287 | |
| 288 | /* |
Deepti Deshatty | 8e7facf | 2021-05-12 17:45:37 +0530 | [diff] [blame] | 289 | * These GPIOs will be programmed by the IOM to handle biasing of the |
| 290 | * Type-C aux (SBU) signals when certain alternate modes are used. |
| 291 | * `pad_auxn_dc` should be assigned to the GPIO pad providing negative |
| 292 | * bias (name usually contains `AUXN_DC` or `AUX_N`); similarly, |
| 293 | * `pad_auxp_dc` should be assigned to the GPIO providing positive bias |
| 294 | * (name often contains `AUXP_DC` or `_AUX_P`). |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 295 | */ |
Deepti Deshatty | 8e7facf | 2021-05-12 17:45:37 +0530 | [diff] [blame] | 296 | struct typec_aux_bias_pads typec_aux_bias_pads[MAX_TYPE_C_PORTS]; |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 297 | |
| 298 | /* |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 299 | * SOC Aux orientation override: |
| 300 | * This is a bitfield that corresponds to up to 4 TCSS ports on ADL. |
| 301 | * Even numbered bits (0, 2, 4, 6) control the retimer being handled by SOC. |
| 302 | * Odd numbered bits (1, 3, 5, 7) control the orientation of the physical aux lines |
| 303 | * on the motherboard. |
| 304 | */ |
| 305 | uint16_t TcssAuxOri; |
| 306 | |
| 307 | /* Connect Topology Command timeout value */ |
| 308 | uint16_t ITbtConnectTopologyTimeoutInMs; |
| 309 | |
| 310 | /* |
| 311 | * Override GPIO PM configuration: |
| 312 | * 0: Use FSP default GPIO PM program, |
| 313 | * 1: coreboot to override GPIO PM program |
| 314 | */ |
| 315 | uint8_t gpio_override_pm; |
| 316 | |
| 317 | /* |
| 318 | * GPIO PM configuration: 0 to disable, 1 to enable power gating |
| 319 | * Bit 6-7: Reserved |
| 320 | * Bit 5: MISCCFG_GPSIDEDPCGEN |
| 321 | * Bit 4: MISCCFG_GPRCOMPCDLCGEN |
| 322 | * Bit 3: MISCCFG_GPRTCDLCGEN |
| 323 | * Bit 2: MISCCFG_GSXLCGEN |
| 324 | * Bit 1: MISCCFG_GPDPCGEN |
| 325 | * Bit 0: MISCCFG_GPDLCGEN |
| 326 | */ |
| 327 | uint8_t gpio_pm[TOTAL_GPIO_COMM]; |
| 328 | |
| 329 | /* DP config */ |
| 330 | /* |
| 331 | * Port config |
| 332 | * 0:Disabled, 1:eDP, 2:MIPI DSI |
| 333 | */ |
| 334 | uint8_t DdiPortAConfig; |
| 335 | uint8_t DdiPortBConfig; |
| 336 | |
Subrata Banik | 8a18bd8 | 2021-06-09 21:57:49 +0530 | [diff] [blame] | 337 | /* Enable(1)/Disable(0) HPD/DDC */ |
| 338 | uint8_t ddi_ports_config[DDI_PORT_COUNT]; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 339 | |
| 340 | /* Hybrid storage mode enable (1) / disable (0) |
| 341 | * This mode makes FSP detect Optane and NVME and set PCIe lane mode |
| 342 | * accordingly */ |
| 343 | uint8_t HybridStorageMode; |
| 344 | |
| 345 | /* |
| 346 | * Override CPU flex ratio value: |
| 347 | * CPU ratio value controls the maximum processor non-turbo ratio. |
| 348 | * Valid Range 0 to 63. |
| 349 | * |
| 350 | * In general descriptor provides option to set default cpu flex ratio. |
| 351 | * Default cpu flex ratio is 0 ensures booting with non-turbo max frequency. |
| 352 | * That's the reason FSP skips cpu_ratio override if cpu_ratio is 0. |
| 353 | * |
| 354 | * Only override CPU flex ratio if don't want to boot with non-turbo max. |
| 355 | */ |
| 356 | uint8_t cpu_ratio_override; |
| 357 | |
| 358 | /* |
| 359 | * Enable(0)/Disable(1) DMI Power Optimizer on PCH side. |
| 360 | * Default 0. Setting this to 1 disables the DMI Power Optimizer. |
| 361 | */ |
| 362 | uint8_t DmiPwrOptimizeDisable; |
| 363 | |
| 364 | /* |
| 365 | * Enable(1)/Disable(0) CPU Replacement check. |
| 366 | * Default 0. Setting this to 1 to check CPU replacement. |
| 367 | */ |
| 368 | uint8_t CpuReplacementCheck; |
| 369 | |
| 370 | /* ISA Serial Base selection. */ |
| 371 | enum { |
| 372 | ISA_SERIAL_BASE_ADDR_3F8, |
| 373 | ISA_SERIAL_BASE_ADDR_2F8, |
| 374 | } IsaSerialUartBase; |
V Sowmya | 418d37e | 2021-06-21 08:47:17 +0530 | [diff] [blame] | 375 | |
| 376 | /* structure containing various settings for PCH FIVRs */ |
| 377 | struct { |
| 378 | bool configure_ext_fivr; |
| 379 | enum fivr_enable_states v1p05_enable_bitmap; |
| 380 | enum fivr_enable_states vnn_enable_bitmap; |
| 381 | enum fivr_enable_states vnn_sx_enable_bitmap; |
| 382 | enum fivr_voltage_supported v1p05_supported_voltage_bitmap; |
| 383 | enum fivr_voltage_supported vnn_supported_voltage_bitmap; |
| 384 | /* V1p05 Rail Voltage in mv */ |
| 385 | int v1p05_voltage_mv; |
| 386 | /* Vnn Rail Voltage in mv */ |
| 387 | int vnn_voltage_mv; |
| 388 | /* VnnSx Rail Voltage in mv */ |
| 389 | int vnn_sx_voltage_mv; |
| 390 | /* External Icc Max for V1p05 rail in mA */ |
| 391 | int v1p05_icc_max_ma; |
| 392 | /* External Icc Max for VnnSx rail in mA */ |
| 393 | int vnn_icc_max_ma; |
| 394 | } ext_fivr_settings; |
V Sowmya | c6d7166 | 2021-07-15 08:11:08 +0530 | [diff] [blame^] | 395 | |
| 396 | /* VrConfig Settings. |
| 397 | * 0 = VR_DOMAIN_IA Core 1 = VR_DOMAIN_GT. |
| 398 | */ |
| 399 | struct vr_config domain_vr_config[NUM_VR_DOMAINS]; |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 400 | }; |
| 401 | |
| 402 | typedef struct soc_intel_alderlake_config config_t; |
| 403 | |
| 404 | #endif |