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

Go to the source code of this file.

Macros

#define NUM_POWER_PROFILES   3
 

Enumerations

enum  cmos_power_profile {
  PP_POWER_SAVER = 0 , PP_BALANCED = 1 , PP_PERFORMANCE = 2 , PP_POWER_SAVER = 0 ,
  PP_BALANCED = 1 , PP_PERFORMANCE = 2
}
 

Functions

enum cmos_power_profile get_power_profile (enum cmos_power_profile fallback)
 
const struct pad_configvariant_gpio_table (size_t *num)
 
const struct pad_configvariant_early_gpio_table (size_t *num)
 
void devtree_update (void)
 

Macro Definition Documentation

◆ NUM_POWER_PROFILES

#define NUM_POWER_PROFILES   3

Definition at line 13 of file variants.h.

Enumeration Type Documentation

◆ cmos_power_profile

Enumerator
PP_POWER_SAVER 
PP_BALANCED 
PP_PERFORMANCE 
PP_POWER_SAVER 
PP_BALANCED 
PP_PERFORMANCE 

Definition at line 8 of file variants.h.

Function Documentation

◆ devtree_update()

◆ get_power_profile()

enum cmos_power_profile get_power_profile ( enum cmos_power_profile  fallback)

Definition at line 1 of file mainboard.c.

References get_uint_option(), and NUM_POWER_PROFILES.

Referenced by devtree_update().

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

◆ variant_early_gpio_table()

const struct pad_config* variant_early_gpio_table ( size_t num)

Definition at line 204 of file gpio.c.

References ARRAY_SIZE, board_id(), BOARD_ID_UNKNOWN, early_gpio_table, early_gpio_table_id2, early_gpio_table_id4, gpio_set_stage_reset, and NULL.

Referenced by bootblock_mainboard_early_init(), bootblock_mainboard_init(), early_config_gpio(), setup_gpio(), and verstage_mainboard_early_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.

References ARRAY_SIZE, gpio_set_stage_ram, and gpio_table.

Referenced by init_mainboard(), mainboard_chip_init(), mainboard_init(), and mainboard_silicon_init_params().

Here is the caller graph for this function: