coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
fsp_params.c File Reference
#include <assert.h>
#include <cpu/x86/msr.h>
#include <fsp/util.h>
#include <intelblocks/cpulib.h>
#include <soc/iomap.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/romstage.h>
#include <soc/soc_chip.h>
Include dependency graph for fsp_params.c:

Go to the source code of this file.

Functions

static void cpu_flex_override (FSP_M_CONFIG *m_cfg)
 
static void soc_peg_init_params (FSP_M_CONFIG *m_cfg, FSP_M_TEST_CONFIG *m_t_cfg, const struct soc_intel_skylake_config *config)
 
static void soc_memory_init_params (FSP_M_CONFIG *m_cfg, const struct soc_intel_skylake_config *config)
 
static void soc_primary_gfx_config_params (FSP_M_CONFIG *m_cfg, const struct soc_intel_skylake_config *config)
 
void platform_fsp_memory_init_params_cb (FSPM_UPD *mupd, uint32_t version)
 
void soc_update_memory_params_for_mma (FSP_M_CONFIG *memory_cfg, struct mma_config_param *mma_cfg)
 

Function Documentation

◆ cpu_flex_override()

static void cpu_flex_override ( FSP_M_CONFIG m_cfg)
static

Definition at line 13 of file fsp_params.c.

References msr_struct::lo, MSR_FLEX_RATIO, and rdmsr().

Referenced by soc_memory_init_params().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ platform_fsp_memory_init_params_cb()

void platform_fsp_memory_init_params_cb ( FSPM_UPD *  mupd,
uint32_t  version 
)

◆ soc_memory_init_params()

static void soc_memory_init_params ( FSP_M_CONFIG m_cfg,
const struct soc_intel_skylake_config config 
)
static

Definition at line 73 of file fsp_params.c.

References ARRAY_SIZE, BOARD_TYPE_DESKTOP, BOARD_TYPE_ULT_ULX, config, CONFIG, cpu_flex_override(), get_valid_prmrr_size(), and mask.

Referenced by platform_fsp_memory_init_params_cb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ soc_peg_init_params()

static void soc_peg_init_params ( FSP_M_CONFIG m_cfg,
FSP_M_TEST_CONFIG *  m_t_cfg,
const struct soc_intel_skylake_config config 
)
static

Definition at line 25 of file fsp_params.c.

References config, is_devfn_enabled(), SA_DEVFN_PEG0, SA_DEVFN_PEG1, and SA_DEVFN_PEG2.

Referenced by platform_fsp_memory_init_params_cb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ soc_primary_gfx_config_params()

static void soc_primary_gfx_config_params ( FSP_M_CONFIG m_cfg,
const struct soc_intel_skylake_config config 
)
static

Definition at line 107 of file fsp_params.c.

References config, CONFIG, is_devfn_enabled(), and SA_DEVFN_IGD.

Referenced by platform_fsp_memory_init_params_cb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ soc_update_memory_params_for_mma()

void soc_update_memory_params_for_mma ( FSP_M_CONFIG memory_cfg,
struct mma_config_param mma_cfg 
)

Definition at line 165 of file fsp_params.c.

References assert, CONFIG, mma_config_param::test_content, mma_config_param::test_content_size, mma_config_param::test_param, and mma_config_param::test_param_size.

Referenced by setup_mma().

Here is the caller graph for this function: