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 <console/console.h>
#include <device/device.h>
#include <arch/pci_io_cfg.h>
#include <cpu/intel/cpu_ids.h>
#include <device/pci_ops.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <fsp/api.h>
#include <fsp/ppi/mp_service_ppi.h>
#include <fsp/util.h>
#include <option.h>
#include <intelblocks/cse.h>
#include <intelblocks/irq.h>
#include <intelblocks/lpss.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/tcss.h>
#include <intelblocks/xdci.h>
#include <intelpch/lockdown.h>
#include <security/vboot/vboot_common.h>
#include <soc/gpio.h>
#include <soc/intel/common/vbt.h>
#include <soc/lpm.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
#include <soc/tcss.h>
#include <string.h>
#include <types.h>
Include dependency graph for fsp_params.c:

Go to the source code of this file.

Macros

#define THC_NONE   0
 
#define THC_0   1
 
#define THC_1   2
 
#define DEF_DMVAL   15
 
#define DEF_DITOVAL   625
 

Enumerations

enum  { EOP_DISABLE = 0 , EOP_PEI = 1 , EOP_DXE = 2 }
 

Functions

static int get_l1_substate_control (enum L1_substates_control ctl)
 
static void parse_devicetree (FSP_S_CONFIG *params)
 
__weak void mainboard_update_soc_chip_config (struct soc_intel_tigerlake_config *config)
 
static const SI_PCH_DEVICE_INTERRUPT_CONFIG * pci_irq_to_fsp (size_t *out_count)
 
void platform_fsp_silicon_init_params_cb (FSPS_UPD *supd)
 
void platform_fsp_multi_phase_init_cb (uint32_t phase_index)
 
__weak void mainboard_silicon_init_params (FSP_S_CONFIG *params)
 

Variables

static const struct slot_irq_constraints irq_constraints []
 

Macro Definition Documentation

◆ DEF_DITOVAL

#define DEF_DITOVAL   625

Definition at line 40 of file fsp_params.c.

◆ DEF_DMVAL

#define DEF_DMVAL   15

Definition at line 39 of file fsp_params.c.

◆ THC_0

#define THC_0   1

Definition at line 35 of file fsp_params.c.

◆ THC_1

#define THC_1   2

Definition at line 36 of file fsp_params.c.

◆ THC_NONE

#define THC_NONE   0

Definition at line 34 of file fsp_params.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
EOP_DISABLE 
EOP_PEI 
EOP_DXE 

Definition at line 48 of file fsp_params.c.

Function Documentation

◆ get_l1_substate_control()

static int get_l1_substate_control ( enum L1_substates_control  ctl)
static

Definition at line 66 of file fsp_params.c.

References L1_SS_FSP_DEFAULT, and L1_SS_L1_2.

Referenced by platform_fsp_silicon_init_params_cb().

Here is the caller graph for this function:

◆ mainboard_silicon_init_params()

__weak void mainboard_silicon_init_params ( FSP_S_CONFIG params)

Definition at line 672 of file fsp_params.c.

References BIOS_DEBUG, and printk.

◆ mainboard_update_soc_chip_config()

__weak void mainboard_update_soc_chip_config ( struct soc_intel_tigerlake_config config)

Definition at line 246 of file fsp_params.c.

◆ parse_devicetree()

static void parse_devicetree ( FSP_S_CONFIG params)
static

Definition at line 73 of file fsp_params.c.

Referenced by platform_fsp_silicon_init_params_cb().

Here is the caller graph for this function:

◆ pci_irq_to_fsp()

static const SI_PCH_DEVICE_INTERRUPT_CONFIG* pci_irq_to_fsp ( size_t out_count)
static

Definition at line 251 of file fsp_params.c.

References calloc(), config, pci_irq_entry::devfn, get_cached_pci_irqs(), pci_irq_entry::irq, MIN_PCH_SLOT, pci_irq_entry::next, NULL, PCI_FUNC, PCI_SLOT, and pci_irq_entry::pin.

Referenced by platform_fsp_silicon_init_params_cb().

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

◆ platform_fsp_multi_phase_init_cb()

void platform_fsp_multi_phase_init_cb ( uint32_t  phase_index)

Definition at line 653 of file fsp_params.c.

References BIOS_DEBUG, config, CONFIG, config_of_soc, printk, and tcss_configure().

Here is the call graph for this function:

◆ platform_fsp_silicon_init_params_cb()

Variable Documentation

◆ irq_constraints

const struct slot_irq_constraints irq_constraints[]
static

Definition at line 73 of file fsp_params.c.

Referenced by platform_fsp_silicon_init_params_cb().