coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
#include <amdblocks/agesawrapper.h>
#include <amdblocks/BiosCallOuts.h>
#include <soc/gpio.h>
#include <soc/southbridge.h>
#include "gpio.h"
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

const struct soc_amd_gpioearly_gpio_table (size_t *size)
 
const struct soc_amd_gpiogpio_table (size_t *size)
 

Variables

static const struct soc_amd_gpio gpio_set_stage_reset []
 
static const struct soc_amd_gpio gpio_set_stage_ram []
 

Function Documentation

◆ early_gpio_table()

const struct soc_amd_gpio* early_gpio_table ( size_t size)

Definition at line 43 of file gpio.c.

References ARRAY_SIZE, and gpio_set_stage_reset.

◆ gpio_table()

const struct soc_amd_gpio* gpio_table ( size_t size)

Definition at line 49 of file gpio.c.

References ARRAY_SIZE, and gpio_set_stage_ram.

Variable Documentation

◆ gpio_set_stage_ram

const struct soc_amd_gpio gpio_set_stage_ram[]
static
Initial value:
= {
PAD_NF_SCI(GPIO_2, WAKE_L, PULL_UP, EDGE_LOW),
PAD_GPO(GPIO_11, HIGH),
}
#define GPIO_11
Definition: gpio_ftns.h:13
#define PULL_UP
Definition: buildOpts.c:70
#define GPIO_2
Definition: gpio.h:23
#define PAD_NF_SCI(pin, func, pull, trigger)
Definition: gpio_defs.h:241
#define PAD_GPO(pin, direction)
Definition: gpio_defs.h:220

Definition at line 1 of file gpio.c.

Referenced by gpio_table().

◆ gpio_set_stage_reset

const struct soc_amd_gpio gpio_set_stage_reset[]
static
Initial value:
= {
PAD_GPO(GPIO_40, HIGH),
}
#define PULL_DOWN
Definition: buildOpts.c:71
#define PULL_NONE
Definition: buildOpts.c:72
#define GPIO_91
Definition: gpio.h:67
#define GPIO_9
Definition: gpio.h:30
#define GPIO_40
Definition: gpio.h:49
#define PAD_NF(pin, func, pull)
Definition: gpio_defs.h:208
#define PAD_GPI(pin, pull)
Definition: gpio_defs.h:216

Definition at line 1 of file gpio.c.

Referenced by early_gpio_table().