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 <types.h>
#include <vendorcode/google/chromeos/chromeos.h>
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

const struct pad_config *__weak variant_gpio_table (size_t *num)
 
const struct pad_config *__weak variant_early_gpio_table (size_t *num)
 
 DECLARE_WEAK_CROS_GPIOS (cros_gpios)
 

Variables

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

Function Documentation

◆ DECLARE_WEAK_CROS_GPIOS()

DECLARE_WEAK_CROS_GPIOS ( cros_gpios  )

◆ variant_early_gpio_table()

const struct pad_config* __weak variant_early_gpio_table ( size_t num)

Definition at line 256 of file gpio.c.

◆ variant_gpio_table()

const struct pad_config* __weak variant_gpio_table ( size_t num)

Definition at line 249 of file gpio.c.

References ARRAY_SIZE, and gpio_table.

Variable Documentation

◆ cros_gpios

const struct cros_gpio cros_gpios[]
static
Initial value:
= {
CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, CROS_GPIO_DEVICE_NAME),
}
#define GPIO_PCH_WP
Definition: gpio.h:14
#define CROS_GPIO_DEVICE_NAME
Definition: gpio.h:14

Definition at line 256 of file gpio.c.

◆ early_gpio_table

const struct pad_config early_gpio_table[]
static
Initial value:
= {
NF1),
NF1),
NF1),
NF1),
PAD_CFG_GPI_APIC(GPP_E0, NONE, PLTRST, LEVEL,
INVERT),
PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1),
DEEP),
NF1),
PAD_CFG_NF(GPP_E5, NONE, DEEP, NF1),
DEEP),
}
#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_E5
#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 GPP_E1
#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_GPI_GPIO_DRIVER(pad, pull, rst)
Definition: gpio_defs.h:323

Definition at line 1 of file gpio.c.

◆ gpio_table

const struct pad_config gpio_table[]
static

Definition at line 1 of file gpio.c.

Referenced by variant_gpio_table().