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 <commonlib/helpers.h>
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

const struct pad_configvariant_gpio_table (size_t *num)
 
const struct pad_configvariant_early_gpio_table (size_t *num)
 

Variables

static const struct pad_config gpio_table []
 
static const struct pad_config early_gpio_table []
 

Function Documentation

◆ variant_early_gpio_table()

const struct pad_config* variant_early_gpio_table ( size_t num)

Definition at line 374 of file gpio.c.

References ARRAY_SIZE, and early_gpio_table.

◆ variant_gpio_table()

const struct pad_config* variant_gpio_table ( size_t num)

Definition at line 368 of file gpio.c.

References ARRAY_SIZE, and gpio_table.

Variable Documentation

◆ early_gpio_table

const struct pad_config early_gpio_table[]
static
Initial value:
= {
PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1),
}
#define GPP_E0
#define GPP_B16
Definition: gpio_soc_defs.h:69
#define GPP_B15
Definition: gpio_soc_defs.h:68
#define GPP_C23
#define GPP_C20
#define GPP_C6
#define GPP_C21
#define GPP_B18
Definition: gpio_soc_defs.h:71
#define GPP_B17
Definition: gpio_soc_defs.h:70
#define PAD_CFG_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197
#define PAD_CFG_GPI_APIC_LOW(pad, pull, rst)
Definition: gpio_defs.h:402
#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_early_gpio_table().

◆ gpio_table

const struct pad_config gpio_table[]
static

Definition at line 1 of file gpio.c.

Referenced by variant_gpio_table().