coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
#include <soc/southbridge.h>
#include <soc/gpio.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 45 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 51 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_GPO(GPIO_14, HIGH),
PAD_GPO(GPIO_65, HIGH),
PAD_GPO(GPIO_66, HIGH),
PAD_GPO(GPIO_70, HIGH),
}
#define GPIO_66
Definition: gpio_ftns.h:25
#define GPIO_70
Definition: gpio.h:56
#define PAD_GPO(pin, direction)
Definition: gpio_defs.h:220
#define GPIO_14
Definition: gpio.h:35
#define GPIO_65
Definition: gpio.h:51

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_64, HIGH),
PAD_GPO(GPIO_119, HIGH),
PAD_NF(GPIO_136, UART0_RXD, PULL_NONE),
PAD_NF(GPIO_137, UART0_RTS_L, PULL_NONE),
PAD_NF(GPIO_138, UART0_TXD, PULL_NONE),
PAD_NF(GPIO_142, UART1_RTS_L, PULL_NONE),
PAD_NF(GPIO_143, UART1_TXD, PULL_NONE),
}
#define GPIO_64
Definition: gpio_ftns.h:24
#define PULL_DOWN
Definition: buildOpts.c:71
#define PULL_UP
Definition: buildOpts.c:70
#define PULL_NONE
Definition: buildOpts.c:72
#define GPIO_143
Definition: gpio.h:90
#define GPIO_69
Definition: gpio.h:55
#define GPIO_116
Definition: gpio.h:78
#define GPIO_142
Definition: gpio.h:89
#define PAD_NF(pin, func, pull)
Definition: gpio_defs.h:208
#define PAD_GPI(pin, pull)
Definition: gpio_defs.h:216
#define GPIO_136
Definition: gpio.h:91
#define GPIO_137
Definition: gpio.h:92
#define GPIO_138
Definition: gpio.h:93
#define GPIO_119
Definition: gpio.h:86

Definition at line 1 of file gpio.c.

Referenced by early_gpio_table().