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 <soc/gpio.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_gpio_override_table (size_t *num)
 
const struct pad_config *__weak variant_early_gpio_table (size_t *num)
 
 DECLARE_CROS_GPIOS (cros_gpios)
 
const struct pad_config *__weak variant_romstage_gpio_table (size_t *num)
 

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_CROS_GPIOS()

DECLARE_CROS_GPIOS ( cros_gpios  )

◆ variant_early_gpio_table()

const struct pad_config* __weak variant_early_gpio_table ( size_t num)

Definition at line 425 of file gpio.c.

◆ variant_gpio_override_table()

const struct pad_config* __weak variant_gpio_override_table ( size_t num)

Definition at line 419 of file gpio.c.

References NULL.

◆ variant_gpio_table()

const struct pad_config* __weak variant_gpio_table ( size_t num)

Definition at line 413 of file gpio.c.

References ARRAY_SIZE, and gpio_table.

◆ variant_romstage_gpio_table()

const struct pad_config* __weak variant_romstage_gpio_table ( size_t num)

Definition at line 437 of file gpio.c.

References NULL.

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 425 of file gpio.c.

◆ early_gpio_table

const struct pad_config early_gpio_table[]
static
Initial value:
= {
PAD_CFG_GPI_APIC(GPP_A13, NONE, PLTRST, LEVEL, INVERT),
PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2),
}
#define GPP_H11
#define GPP_H5
#define GPP_A13
#define GPP_F18
#define GPP_H10
#define GPP_E12
#define GPP_H4
#define PAD_CFG_GPI(pad, pull, rst)
Definition: gpio_defs.h:284
#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().