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 <device/device.h>
#include <soc/pci_devs.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)
 
const struct pad_configvariant_sku_gpio_table (size_t *num)
 

Variables

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

Function Documentation

◆ variant_early_gpio_table()

const struct pad_config* variant_early_gpio_table ( size_t num)

Definition at line 370 of file gpio.c.

◆ variant_gpio_table()

const struct pad_config* variant_gpio_table ( size_t num)

Definition at line 364 of file gpio.c.

References ARRAY_SIZE, and gpio_table.

◆ variant_sku_gpio_table()

const struct pad_config* variant_sku_gpio_table ( size_t num)

Definition at line 408 of file gpio.c.

References ARRAY_SIZE, device::enabled, ish_disabled_gpio_table, ish_enabled_gpio_table, PCH_DEVFN_ISH, and pcidev_path_on_root().

Here is the call graph for this function:

Variable Documentation

◆ early_gpio_table

const struct pad_config early_gpio_table[]
static
Initial value:
= {
PAD_CFG_GPO(GPP_B8, 0, RSMRST),
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_B8
Definition: gpio_soc_defs.h:61
#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_GPO(pad, val, rst)
Definition: gpio_defs.h:247
#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.

◆ gpio_table

const struct pad_config gpio_table[]
static

Definition at line 1 of file gpio.c.

Referenced by variant_gpio_table().

◆ ish_disabled_gpio_table

const struct pad_config ish_disabled_gpio_table[]
static
Initial value:
= {
}
#define GPP_D14
#define GPP_A19
#define GPP_A20
#define GPP_D13
#define PAD_NC(pin)
Definition: gpio_defs.h:263
#define PAD_CFG_GPI_APIC_HIGH(pad, pull, rst)
Definition: gpio_defs.h:405

Definition at line 370 of file gpio.c.

Referenced by variant_sku_gpio_table().

◆ ish_enabled_gpio_table

const struct pad_config ish_enabled_gpio_table[]
static
Initial value:
= {
PAD_CFG_NF(GPP_A19, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A20, NONE, DEEP, NF1),
PAD_CFG_NF_1V8(GPP_D13, NONE, DEEP, NF1),
PAD_CFG_NF_1V8(GPP_D14, NONE, DEEP, NF1),
}

Definition at line 370 of file gpio.c.

Referenced by variant_sku_gpio_table().