9 #include <soc/pci_devs.h>
10 #include <soc/romstage.h>
11 #include <soc/soc_chip.h>
24 m_cfg->IgdDvmt50PreAlloc = m_cfg->InternalGfx ? 0xFE : 0;
26 m_cfg->TsegSize = CONFIG_SMM_TSEG_SIZE;
27 m_cfg->SaGv =
config->SaGv;
32 if (
config->PcieRpEnable[i])
36 m_cfg->PcieRpEnableMask =
mask;
50 m_cfg->PcdDebugInterfaceFlags =
CONFIG(DRIVERS_UART_8250IO) ?
51 DEBUG_INTERFACE_UART_8250IO : DEBUG_INTERFACE_LPSS_SERIAL_IO;
55 m_cfg->PcdDebugInterfaceFlags |= DEBUG_INTERFACE_TRACEHUB;
56 m_cfg->PchTraceHubMode =
config->TraceHubMode;
57 m_cfg->CpuTraceHubMode =
config->TraceHubMode;
61 m_cfg->VmxEnable =
CONFIG(ENABLE_VMX);
64 m_cfg->PchMasterClockGating = 1;
65 m_cfg->PchMasterPowerGating = 1;
68 m_cfg->SmbusEnable =
config->SmbusEnable;
71 m_cfg->PlatformDebugConsent = CONFIG_SOC_INTEL_ELKHARTLAKE_DEBUG_CONSENT;
74 m_cfg->VtdDisable = 0;
75 m_cfg->X2ApicOptOut = 0x1;
76 if (m_cfg->InternalGfx) {
77 m_cfg->VtdIgdEnable = 0x1;
78 m_cfg->DisableTeIgd = 0x1;
90 m_cfg->WdtDisableAndLock = 0x1;
92 m_cfg->HeciCommunication2 =
config->Heci2Enable;
93 m_cfg->SerialIoUartDebugControllerNumber = CONFIG_UART_FOR_CONSOLE;
97 m_cfg->PchHdaDspEnable =
config->PchHdaDspEnable;
98 m_cfg->PchHdaAudioLinkHdaEnable =
config->PchHdaAudioLinkHdaEnable;
106 m_cfg->SkipCpuReplacementCheck =
config->SkipCpuReplacementCheck;
109 m_cfg->FClkFrequency = 0x1;
112 if (
config->ibecc.enable) {
113 m_cfg->Ibecc = !!
config->ibecc.enable;
114 m_cfg->IbeccParity = !!
config->ibecc.parity_en;
115 m_cfg->IbeccOperationMode =
config->ibecc.mode;
118 config->ibecc.region_enable);
120 config->ibecc.region_base);
122 config->ibecc.region_mask);
__weak void mainboard_memory_init_params(FSPM_UPD *memupd)
void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
static bool cbfs_file_exists(const char *name)
#define printk(level,...)
int get_valid_prmrr_size(void)
bool is_devfn_enabled(unsigned int devfn)
#define FSP_ARRAY_LOAD(dst, src)
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, const struct soc_intel_elkhartlake_config *config)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define GFXVT_BASE_ADDRESS
#define VTVC0_BASE_ADDRESS
const struct smm_save_state_ops *legacy_ops __weak
#define PCH_DEVFN_TRACEHUB