coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio_early.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <mainboard/gpio.h>
4 #include <soc/gpio.h>
5 
6 static const struct pad_config early_gpio_table[] = {
7  PAD_CFG_NF(GPP_C20, NONE, PLTRST, NF1), // UART2_RXD
8  PAD_CFG_NF(GPP_C21, NONE, PLTRST, NF1), // UART2_TXD
9  PAD_CFG_TERM_GPO(GPP_F22, 1, UP_20K, DEEP), // DGPU_RST#_PCH
10  PAD_CFG_TERM_GPO(GPP_K22, 0, UP_5K, DEEP), // GPU_PWR_EN#
11 };
12 
14 {
16 }
#define GPP_C20
#define GPP_C21
#define GPP_F22
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define GPP_K22
void gpio_configure_pads(const struct soc_amd_gpio *gpio_list_ptr, size_t size)
program a particular set of GPIO
Definition: gpio.c:307
#define PAD_CFG_TERM_GPO(pad, val, pull, rst)
Definition: gpio_defs.h:262
#define PAD_CFG_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197
void mainboard_configure_early_gpios(void)
Definition: gpio_early.c:19
static const struct pad_config early_gpio_table[]
Definition: gpio_early.c:6