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

Go to the source code of this file.

Functions

const struct soc_amd_gpiovariant_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_early_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_pcie_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_tpm_gpio_table (size_t *size)
 

Variables

static const struct soc_amd_gpio bid1_ramstage_gpio_table []
 
static const struct soc_amd_gpio bid2_ramstage_gpio_table []
 
static const struct soc_amd_gpio override_early_gpio_table []
 
static const struct soc_amd_gpio bid1_pcie_gpio_table []
 
static const struct soc_amd_gpio tpm_gpio_table []
 

Function Documentation

◆ variant_early_override_gpio_table()

const struct soc_amd_gpio* variant_early_override_gpio_table ( size_t size)

Definition at line 79 of file gpio.c.

References ARRAY_SIZE, and override_early_gpio_table.

◆ variant_override_gpio_table()

const struct soc_amd_gpio* variant_override_gpio_table ( size_t size)

Definition at line 65 of file gpio.c.

References ARRAY_SIZE, bid1_ramstage_gpio_table, bid2_ramstage_gpio_table, and board_id().

Here is the call graph for this function:

◆ variant_pcie_override_gpio_table()

const struct soc_amd_gpio* variant_pcie_override_gpio_table ( size_t size)

Definition at line 90 of file gpio.c.

References ARRAY_SIZE, bid1_pcie_gpio_table, board_id(), and NULL.

Here is the call graph for this function:

◆ variant_tpm_gpio_table()

const struct soc_amd_gpio* variant_tpm_gpio_table ( size_t size)

Definition at line 102 of file gpio.c.

References ARRAY_SIZE, and tpm_gpio_table.

Variable Documentation

◆ bid1_pcie_gpio_table

const struct soc_amd_gpio bid1_pcie_gpio_table[]
static
Initial value:
= {
PAD_GPO(GPIO_70, HIGH),
}
#define GPIO_70
Definition: gpio.h:56
#define PAD_GPO(pin, direction)
Definition: gpio_defs.h:220

Definition at line 1 of file gpio.c.

Referenced by variant_pcie_override_gpio_table().

◆ bid1_ramstage_gpio_table

const struct soc_amd_gpio bid1_ramstage_gpio_table[]
static
Initial value:
= {
PAD_GPO(GPIO_69, HIGH),
PAD_GPO(GPIO_70, HIGH),
PAD_GPO(GPIO_5, HIGH),
PAD_INT(GPIO_3, PULL_NONE, EDGE_LOW, STATUS_DELIVERY),
}
#define GPIO_32
Definition: gpio_ftns.h:15
#define PULL_NONE
Definition: buildOpts.c:72
#define GPIO_69
Definition: gpio.h:55
#define GPIO_5
Definition: gpio.h:26
#define GPIO_3
Definition: gpio.h:24
#define GPIO_85
Definition: gpio.h:61
#define GPIO_74
Definition: gpio.h:57
#define PAD_NC(pin)
Definition: gpio_defs.h:263
#define PAD_INT(pin, pull, trigger, action)
Definition: gpio_defs.h:224
#define PAD_GPI(pin, pull)
Definition: gpio_defs.h:216

Definition at line 1 of file gpio.c.

Referenced by variant_override_gpio_table().

◆ bid2_ramstage_gpio_table

const struct soc_amd_gpio bid2_ramstage_gpio_table[]
static
Initial value:
= {
PAD_GPO(GPIO_5, HIGH),
PAD_INT(GPIO_3, PULL_NONE, EDGE_LOW, STATUS_DELIVERY),
}
#define GPIO_31
Definition: gpio.h:47

Definition at line 1 of file gpio.c.

Referenced by variant_override_gpio_table().

◆ override_early_gpio_table

const struct soc_amd_gpio override_early_gpio_table[]
static
Initial value:
= {
}

Definition at line 1 of file gpio.c.

Referenced by variant_early_override_gpio_table().

◆ tpm_gpio_table

const struct soc_amd_gpio tpm_gpio_table[]
static
Initial value:
= {
PAD_NF(GPIO_19, I2C3_SCL, PULL_NONE),
PAD_NF(GPIO_20, I2C3_SDA, PULL_NONE),
PAD_INT(GPIO_3, PULL_NONE, EDGE_LOW, STATUS_DELIVERY),
}
#define GPIO_20
Definition: gpio.h:38
#define GPIO_19
Definition: gpio.h:37
#define PAD_NF(pin, func, pull)
Definition: gpio_defs.h:208

Definition at line 1 of file gpio.c.

Referenced by variant_tpm_gpio_table().