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 dependency graph for gpio.c:

Go to the source code of this file.

Functions

const struct pad_configvariant_override_gpio_table (size_t *num)
 

Variables

static const struct pad_config gpio_table []
 

Function Documentation

◆ variant_override_gpio_table()

const struct pad_config* variant_override_gpio_table ( size_t num)

Definition at line 28 of file gpio.c.

References ARRAY_SIZE, and gpio_table.

Variable Documentation

◆ gpio_table

const struct pad_config 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_NF(GPP_D22, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D23, NONE, DEEP, NF1),
PAD_CFG_GPI_APIC(GPP_E11, NONE, PLTRST, LEVEL, NONE),
PAD_CFG_GPO(GPP_H17, 0, PLTRST),
}
#define GPP_H17
#define GPP_A10
#define GPP_D0
#define GPP_E11
#define GPP_B7
Definition: gpio_soc_defs.h:60
#define GPP_D23
#define GPP_D22
#define PAD_CFG_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197
#define PAD_CFG_GPI_APIC(pad, pull, rst, trig, inv)
Definition: gpio_defs.h:376
#define PAD_CFG_GPO(pad, val, rst)
Definition: gpio_defs.h:247

Definition at line 1 of file gpio.c.

Referenced by variant_override_gpio_table().