coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
#include <baseboard/gpio.h>
#include <baseboard/variants.h>
#include <boardid.h>
#include <bootstate.h>
#include <fw_config.h>
#include <ec/google/chromeec/ec.h>
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

const struct pad_configvariant_override_gpio_table (size_t *num)
 
static void fw_config_handle (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_ENABLE, BS_ON_ENTRY, fw_config_handle, NULL)
 

Variables

static const struct pad_config not_board6or8_gpio_table []
 
static const struct pad_config board6or8_gpio_table []
 
static const struct pad_config lte_disable_pads []
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_ENABLE  ,
BS_ON_ENTRY  ,
fw_config_handle  ,
NULL   
)

◆ fw_config_handle()

static void fw_config_handle ( void unused)
static

Definition at line 58 of file gpio.c.

References ARRAY_SIZE, FW_CONFIG, fw_config_probe(), gpio_configure_pads(), and lte_disable_pads.

Here is the call graph for this function:

◆ variant_override_gpio_table()

const struct pad_config* variant_override_gpio_table ( size_t num)

Definition at line 45 of file gpio.c.

References ARRAY_SIZE, board6or8_gpio_table, board_id(), and not_board6or8_gpio_table.

Here is the call graph for this function:

Variable Documentation

◆ board6or8_gpio_table

const struct pad_config board6or8_gpio_table[]
static
Initial value:
= {
PAD_CFG_GPO(GPP_A10, 1, PWROK),
PAD_CFG_GPO(GPP_B7, 1, DEEP),
PAD_CFG_GPO(GPP_D0, 1, DEEP),
PAD_CFG_GPO(GPP_H0, 0, PLTRST),
PAD_CFG_GPO(GPP_H17, 0, PLTRST),
}
#define GPP_C12
#define GPP_H17
#define GPP_H0
#define GPP_A10
#define GPP_D0
#define GPP_B7
Definition: gpio_soc_defs.h:60
#define PAD_CFG_GPO(pad, val, rst)
Definition: gpio_defs.h:247
#define PAD_CFG_GPI_GPIO_DRIVER(pad, pull, rst)
Definition: gpio_defs.h:323

Definition at line 1 of file gpio.c.

Referenced by variant_override_gpio_table().

◆ lte_disable_pads

const struct pad_config lte_disable_pads[]
static
Initial value:

Definition at line 1 of file gpio.c.

Referenced by fw_config_handle().

◆ not_board6or8_gpio_table

const struct pad_config not_board6or8_gpio_table[]
static
Initial value:
= {
}

Definition at line 1 of file gpio.c.

Referenced by variant_override_gpio_table().