coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variants.h File Reference
#include <chip.h>
#include <soc/gpio.h>
#include <soc/meminit.h>
#include <stdint.h>
Include dependency graph for variants.h:

Go to the source code of this file.

Data Structures

struct  cpu_power_limits
 
struct  system_power_limits
 
struct  psys_config
 

Enumerations

enum  s0ix_entry { S0IX_EXIT , S0IX_ENTRY }
 

Functions

const struct pad_configvariant_gpio_table (size_t *num)
 
const struct pad_configvariant_gpio_override_table (size_t *num)
 
const struct pad_configvariant_early_gpio_table (size_t *num)
 
const struct pad_configvariant_romstage_gpio_table (size_t *num)
 
const struct mb_cfgvariant_memory_params (void)
 
void variant_get_spd_info (struct mem_spd *spd_info)
 
int variant_memory_sku (void)
 
bool variant_is_half_populated (void)
 
void variant_update_soc_chip_config (struct soc_intel_alderlake_config *config)
 
void variant_fill_ssdt (const struct device *dev)
 
void variant_generate_s0ix_hook (enum s0ix_entry entry)
 
void variant_devtree_update (void)
 
void variant_update_descriptor (void)
 
void variant_update_power_limits (const struct cpu_power_limits *limits, size_t num_entries)
 
void variant_update_psys_power_limits (const struct cpu_power_limits *limits, const struct system_power_limits *sys_limits, size_t num_entries, const struct psys_config *config)
 
void variant_init (void)
 
void variant_finalize (void)
 

Enumeration Type Documentation

◆ s0ix_entry

enum s0ix_entry
Enumerator
S0IX_EXIT 
S0IX_ENTRY 

Definition at line 27 of file variants.h.

Function Documentation

◆ variant_devtree_update()

void variant_devtree_update ( void  )

Definition at line 86 of file mainboard.c.

◆ variant_early_gpio_table()

const struct pad_config* variant_early_gpio_table ( size_t num)

Definition at line 204 of file gpio.c.

◆ variant_fill_ssdt()

void variant_fill_ssdt ( const struct device dev)

Definition at line 158 of file mainboard.c.

Referenced by mainboard_fill_ssdt().

Here is the caller graph for this function:

◆ variant_finalize()

void variant_finalize ( void  )

Definition at line 184 of file mainboard.c.

Referenced by mainboard_final().

Here is the caller graph for this function:

◆ variant_generate_s0ix_hook()

void variant_generate_s0ix_hook ( enum s0ix_entry  entry)

Definition at line 163 of file mainboard.c.

References acpigen_soc_clear_tx_gpio(), acpigen_soc_set_tx_gpio(), NFC_POWER, S0IX_ENTRY, and S0IX_EXIT.

Referenced by mainboard_generate_s0ix_hook().

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

◆ variant_get_spd_info()

void variant_get_spd_info ( struct mem_spd spd_info)

Definition at line 32 of file memory.c.

References MEM_TOPO_DIMM_MODULE, MEM_TOPO_MEMORY_DOWN, and variant_memory_sku().

Referenced by mainboard_memory_init_params().

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

◆ variant_gpio_override_table()

const struct pad_config* variant_gpio_override_table ( size_t num)

Definition at line 198 of file gpio.c.

References ARRAY_SIZE, board_id(), board_id0_1_overrides, board_id0_overrides, BOARD_ID_UNKNOWN, NULL, and override_gpio_table.

Referenced by mainboard_init().

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

◆ variant_gpio_table()

const struct pad_config* variant_gpio_table ( size_t num)

Definition at line 406 of file gpio.c.

◆ variant_init()

void variant_init ( void  )

Definition at line 67 of file mainboard.c.

Referenced by mainboard_init().

Here is the caller graph for this function:

◆ variant_is_half_populated()

bool variant_is_half_populated ( void  )

Definition at line 27 of file memory.c.

References gpio_get(), GPP_E13, and GPP_E5.

Referenced by mainboard_memory_init_params().

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

◆ variant_memory_params()

const struct mb_cfg* variant_memory_params ( void  )

Definition at line 67 of file memory.c.

◆ variant_memory_sku()

int variant_memory_sku ( void  )

Definition at line 74 of file memory.c.

◆ variant_romstage_gpio_table()

const struct pad_config* variant_romstage_gpio_table ( size_t num)

Definition at line 210 of file gpio.c.

◆ variant_update_descriptor()

void variant_update_descriptor ( void  )

Definition at line 19 of file bootblock.c.

References ARRAY_SIZE, BIOS_INFO, configure_descriptor(), FW_CONFIG, fw_config_probe(), and printk.

Referenced by bootblock_mainboard_init().

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

◆ variant_update_power_limits()

◆ variant_update_psys_power_limits()

◆ variant_update_soc_chip_config()

void variant_update_soc_chip_config ( struct soc_intel_alderlake_config config)

Definition at line 62 of file mainboard.c.

References AUDIO, config, FW_CONFIG, fw_config_probe(), GPP_A19, and GPP_A20.

Referenced by mainboard_update_soc_chip_config().

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