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

Go to the source code of this file.

Functions

void mainboard_program_early_gpios (void)
 

Variables

static const struct soc_amd_gpio gpio_set_stage_reset []
 

Function Documentation

◆ mainboard_program_early_gpios()

void mainboard_program_early_gpios ( void  )

Definition at line 32 of file early_gpio.c.

References ARRAY_SIZE, gpio_configure_pads(), and gpio_set_stage_reset.

Referenced by bootblock_mainboard_early_init().

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

Variable Documentation

◆ gpio_set_stage_reset

const struct soc_amd_gpio gpio_set_stage_reset[]
static
Initial value:
= {
PAD_GPO(GPIO_6, HIGH),
PAD_NF(GPIO_22, EMMC_PWR_CTRL, PULL_NONE),
PAD_GPO(GPIO_27, HIGH),
PAD_NF(GPIO_30, ESPI_CS_L, PULL_NONE),
PAD_NF(GPIO_85, FANOUT0, PULL_NONE),
}
#define GPIO_18
Definition: gpio_ftns.h:17
#define GPIO_17
Definition: gpio_ftns.h:16
#define GPIO_22
Definition: gpio_ftns.h:14
#define PULL_UP
Definition: buildOpts.c:70
#define PULL_NONE
Definition: buildOpts.c:72
#define GPIO_91
Definition: gpio.h:67
#define GPIO_30
Definition: gpio.h:46
#define GPIO_27
Definition: gpio.h:44
#define GPIO_89
Definition: gpio.h:65
#define GPIO_12
Definition: gpio.h:33
#define GPIO_85
Definition: gpio.h:61
#define GPIO_42
Definition: gpio.h:50
#define GPIO_6
Definition: gpio.h:27
#define PAD_GPO(pin, direction)
Definition: gpio_defs.h:220
#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 early_gpio.c.

Referenced by mainboard_program_early_gpios().