![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <inttypes.h>
#include <baseboard/variants.h>
#include <ec/google/chromeec/ec.h>
Go to the source code of this file.
Functions | |
static int | get_fw_config (uint64_t *val) |
static unsigned int | extract_field (uint64_t mask, int shift) |
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) |
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) |
anonymous enum |
Definition at line 82 of file helpers.c.
References get_fw_config(), and mask.
Referenced by variant_get_daughterboard_id(), variant_gets_mb_type_config(), variant_gets_sar_config(), variant_has_emmc(), variant_has_nvme(), variant_has_wwan(), and variant_is_convertible().
Definition at line 194 of file helpers.c.
References google_chromeec_cbi_get_board_version().
Referenced by finalize_gpios().
|
static |
Definition at line 63 of file helpers.c.
References BIOS_ERR, google_chromeec_cbi_get_fw_config(), printk, and val.
Referenced by extract_field().
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().
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().
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().
Definition at line 165 of file helpers.c.
References CONFIG, and google_chromeec_cbi_get_board_version().
Referenced by wifi_power_reset_configure_v3().
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().
Definition at line 186 of file helpers.c.
References CONFIG.
Referenced by finalize_gpios().
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.
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().
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().
Definition at line 160 of file helpers.c.
References variant_uses_v3_6_schematics().
Referenced by update_hp_int_odl().
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().
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().