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 <soc/gpio.h>
4 #include <variant/gpio.h>
5 
6 /* Name format: <pad name> / <net/pin name in schematics> */
7 static const struct pad_config early_gpio_table[] = {
8  PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), /* UART2_RXD */
9  PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), /* UART2_TXD */
10  PAD_NC(GPP_C22, UP_20K),
11  PAD_NC(GPP_C23, UP_20K),
12 };
13 
15 {
17 }
#define GPP_C22
#define GPP_C23
#define GPP_C20
#define GPP_C21
#define ARRAY_SIZE(a)
Definition: helpers.h:12
void variant_configure_early_gpios(void)
Definition: gpio_early.c:14
static const struct pad_config early_gpio_table[]
Definition: gpio_early.c:7
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_NC(pin)
Definition: gpio_defs.h:263
#define PAD_CFG_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197