coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variants.h File Reference
#include <stddef.h>
#include <boardid.h>
#include <ec/google/chromeec/ec.h>
#include <FspmUpd.h>
#include <soc/amd/picasso/chip.h>
#include <soc/platform_descriptors.h>
Include dependency graph for variants.h:

Go to the source code of this file.

Functions

const struct soc_amd_gpiovariant_early_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_base_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_bootblock_gpio_table (size_t *size, int slp_typ)
 
const struct soc_amd_gpiovariant_sleep_gpio_table (size_t *size, int slp_typ)
 
const struct soc_amd_gpiovariant_espi_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_tpm_gpio_table (size_t *size)
 
void variant_updm_update (FSP_M_CONFIG *mcfg)
 
void finalize_gpios (int slp_typ)
 
void variant_devtree_update (void)
 
void variant_audio_update (void)
 
void variant_bluetooth_update (void)
 
void variant_touchscreen_update (void)
 
void variant_pcie_gpio_configure (void)
 
void variant_get_dxio_ddi_descriptors (const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num, const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num)
 
const fsp_dxio_descriptor * baseboard_get_dxio_descriptors (size_t *num)
 
const fsp_ddi_descriptor * baseboard_get_ddi_descriptors (size_t *num)
 
int variant_gets_sar_config (void)
 
int variant_gets_mb_type_config (void)
 
int variant_has_emmc (void)
 
int variant_has_nvme (void)
 
int variant_has_wwan (void)
 
int variant_is_convertible (void)
 
int boot_is_factory_unprovisioned (void)
 
bool variant_uses_v3_schematics (void)
 
bool variant_uses_v3_6_schematics (void)
 
bool variant_uses_codec_gpi (void)
 
bool variant_has_active_low_wifi_power (void)
 
int variant_get_daughterboard_id (void)
 
bool variant_has_fingerprint (void)
 
bool fpmcu_needs_delay (void)
 

Function Documentation

◆ baseboard_get_ddi_descriptors()

const fsp_ddi_descriptor* baseboard_get_ddi_descriptors ( size_t num)

Definition at line 67 of file fsps_baseboard_dalboz.c.

References ARRAY_SIZE, dali_ddi_descriptors, NULL, pco_ddi_descriptors, and soc_is_reduced_io_sku().

Referenced by variant_get_dxio_ddi_descriptors().

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

◆ baseboard_get_dxio_descriptors()

const fsp_dxio_descriptor* baseboard_get_dxio_descriptors ( size_t num)

Definition at line 61 of file fsps_baseboard_dalboz.c.

References ARRAY_SIZE, dali_dxio_descriptors, dxio_descriptors, pco_dxio_descriptors, and soc_is_reduced_io_sku().

Referenced by variant_get_dxio_ddi_descriptors().

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

◆ boot_is_factory_unprovisioned()

int boot_is_factory_unprovisioned ( void  )

Definition at line 14 of file sku_id.c.

References CROS_SKU_UNPROVISIONED, and sku_id().

Referenced by variant_devtree_update(), and variant_get_dxio_ddi_descriptors().

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

◆ finalize_gpios()

void finalize_gpios ( int  slp_typ)

Definition at line 280 of file gpio_baseboard_dalboz.c.

References ACPI_S3, fpmcu_needs_delay(), GPIO_11, GPIO_32, gpio_set(), mdelay(), and variant_has_fingerprint().

Referenced by mainboard_final().

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

◆ fpmcu_needs_delay()

bool fpmcu_needs_delay ( void  )

Definition at line 194 of file helpers.c.

References google_chromeec_cbi_get_board_version().

Referenced by finalize_gpios().

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

◆ variant_audio_update()

void variant_audio_update ( void  )

Definition at line 63 of file ramstage_common.c.

References update_dmic_gpio(), and update_hp_int_odl().

Referenced by mainboard_devtree_update().

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

◆ variant_base_gpio_table()

const struct soc_amd_gpio* variant_base_gpio_table ( size_t size)

Definition at line 444 of file gpio.c.

◆ variant_bluetooth_update()

void variant_bluetooth_update ( void  )

Definition at line 93 of file ramstage_common.c.

References baseboard_trembyle_remove_bluetooth_reset_gpio(), CONFIG, and variant_uses_v3_schematics().

Referenced by mainboard_devtree_update().

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

◆ variant_bootblock_gpio_table()

const struct soc_amd_gpio* variant_bootblock_gpio_table ( size_t size,
int  slp_typ 
)

Definition at line 284 of file gpio_baseboard_dalboz.c.

◆ variant_devtree_update()

void variant_devtree_update ( void  )

Definition at line 86 of file mainboard.c.

◆ variant_early_gpio_table()

const struct soc_amd_gpio* variant_early_gpio_table ( size_t size)

Definition at line 204 of file gpio.c.

◆ variant_espi_gpio_table()

const struct soc_amd_gpio* variant_espi_gpio_table ( size_t size)

Definition at line 348 of file gpio.c.

References ARRAY_SIZE, and espi_gpio_table.

Referenced by bootblock_mainboard_early_init(), mb_set_up_early_espi(), and verstage_mainboard_espi_init().

Here is the caller graph for this function:

◆ variant_get_daughterboard_id()

int variant_get_daughterboard_id ( void  )

Definition at line 181 of file helpers.c.

References extract_field(), FW_CONFIG_DB_INDEX_SHIFT, and FW_CONFIG_MASK_DB_INDEX.

Referenced by variant_get_dxio_ddi_descriptors().

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

◆ variant_get_dxio_ddi_descriptors()

void variant_get_dxio_ddi_descriptors ( const fsp_dxio_descriptor **  dxio_descs,
size_t dxio_num,
const fsp_ddi_descriptor **  ddi_descs,
size_t ddi_num 
)

◆ variant_gets_mb_type_config()

int variant_gets_mb_type_config ( void  )

Definition at line 98 of file helpers.c.

References extract_field(), FW_CONFIG_MASK_MB_TYPE, and FW_CONFIG_SHIFT_MB_TYPE.

Referenced by variant_updm_update().

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

◆ variant_gets_sar_config()

int variant_gets_sar_config ( void  )

Definition at line 93 of file helpers.c.

References extract_field(), FW_CONFIG_MASK_SAR, and FW_CONFIG_SHIFT_SAR.

Referenced by get_wifi_sar_cbfs_filename().

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

◆ variant_has_active_low_wifi_power()

bool variant_has_active_low_wifi_power ( void  )

Definition at line 165 of file helpers.c.

References CONFIG, and google_chromeec_cbi_get_board_version().

Referenced by wifi_power_reset_configure_v3().

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

◆ variant_has_emmc()

int variant_has_emmc ( void  )

Definition at line 103 of file helpers.c.

References extract_field(), FW_CONFIG_MASK_EMMC, and FW_CONFIG_SHIFT_EMMC.

Referenced by variant_devtree_update().

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

◆ variant_has_fingerprint()

bool variant_has_fingerprint ( void  )

Definition at line 186 of file helpers.c.

References CONFIG.

Referenced by finalize_gpios().

Here is the caller graph for this function:

◆ variant_has_nvme()

int variant_has_nvme ( void  )

Definition at line 108 of file helpers.c.

References extract_field(), FW_CONFIG_MASK_NVME, and FW_CONFIG_SHIFT_NVME.

Here is the call graph for this function:

◆ variant_has_wwan()

int variant_has_wwan ( void  )

Definition at line 113 of file helpers.c.

References extract_field(), FW_CONFIG_MASK_WWAN, and FW_CONFIG_SHIFT_WWAN.

Referenced by variant_devtree_update().

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

◆ variant_is_convertible()

int variant_is_convertible ( void  )

Definition at line 118 of file helpers.c.

References extract_field(), FW_CONFIG_LID_ANGLE_TABLET_MODE_SHIFT, and FW_CONFIG_MASK_LID_ANGLE_TABLET_MODE.

Referenced by variant_devtree_update().

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

◆ variant_override_gpio_table()

const struct soc_amd_gpio* variant_override_gpio_table ( size_t size)

Definition at line 450 of file gpio.c.

◆ variant_pcie_gpio_configure()

void variant_pcie_gpio_configure ( void  )

◆ variant_sleep_gpio_table()

const struct soc_amd_gpio* variant_sleep_gpio_table ( size_t size,
int  slp_typ 
)

Definition at line 369 of file gpio.c.

◆ variant_touchscreen_update()

◆ variant_tpm_gpio_table()

const struct soc_amd_gpio* variant_tpm_gpio_table ( size_t size)

Definition at line 354 of file gpio.c.

References ARRAY_SIZE, bid1_tpm_gpio_table, bid2_tpm_gpio_table, board_id(), and tpm_gpio_table.

Referenced by bootblock_mainboard_early_init(), and verstage_mainboard_tpm_init().

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

◆ variant_updm_update()

void variant_updm_update ( FSP_M_CONFIG mcfg)

Definition at line 6 of file romstage.c.

References BIOS_INFO, printk, and variant_gets_mb_type_config().

Referenced by mainboard_updm_update().

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

◆ variant_uses_codec_gpi()

bool variant_uses_codec_gpi ( void  )

Definition at line 160 of file helpers.c.

References variant_uses_v3_6_schematics().

Referenced by update_hp_int_odl().

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

◆ variant_uses_v3_6_schematics()

bool variant_uses_v3_6_schematics ( void  )

Definition at line 140 of file helpers.c.

References CONFIG, and google_chromeec_cbi_get_board_version().

Referenced by variant_touchscreen_update(), and variant_uses_codec_gpi().

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

◆ variant_uses_v3_schematics()

bool variant_uses_v3_schematics ( void  )

Definition at line 124 of file helpers.c.

References CONFIG, and google_chromeec_cbi_get_board_version().

Referenced by update_dmic_gpio(), variant_bluetooth_update(), and variant_pcie_gpio_configure().

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