coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
#include <variant/gpio.h>
#include <variant/variant.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include <gpio.h>
#include <soc/romstage.h>
#include <baseboard/variants.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)
 
 DECLARE_CROS_GPIOS (cros_gpios)
 
void variant_mainboard_post_init_params (FSPM_UPD *mupd)
 

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* variant_early_gpio_table ( size_t num)

Definition at line 246 of file gpio.c.

◆ variant_gpio_table()

const struct pad_config* variant_gpio_table ( size_t num)

Definition at line 240 of file gpio.c.

References ARRAY_SIZE, and gpio_table.

◆ variant_mainboard_post_init_params()

void variant_mainboard_post_init_params ( FSPM_UPD *  mupd)

Definition at line 259 of file gpio.c.

References DDR_CH0_EN, DDR_CH1_EN, FSP_M_CONFIG, gpio_get(), and has_360_sensor_board().

Referenced by mainboard_memory_init_params().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ cros_gpios

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

Definition at line 246 of file gpio.c.

◆ early_gpio_table

const struct pad_config early_gpio_table[]
static
Initial value:
= {
PAD_CFG_NF(GPP_C8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C9, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H9, NONE, DEEP, NF1),
EDGE_SINGLE, INVERT),
PAD_CFG_GPO(GPP_D21, 0, DEEP),
PAD_CFG_GPI(GPP_H5, NONE, PLTRST),
PAD_CFG_NF(GPD3, UP_20K, DEEP, NF1),
}
#define GPD3
#define GPP_E3
#define GPP_F12
#define GPP_F16
#define GPP_C9
#define GPP_H9
#define GPP_C8
#define GPP_F1
#define GPP_F15
#define GPP_F13
#define GPP_D18
#define GPP_H5
#define GPP_F14
#define GPP_F2
#define GPP_H8
#define GPP_D21
#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_GPO(pad, val, rst)
Definition: gpio_defs.h:247

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