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 static const struct pad_config early_gpio_table[] = {
7 /* GPP_C8 UART0A_RXD 0x0000005044000702 */ PAD_CFG_NF(GPP_C8, NONE, DEEP, NF1),
8 /* GPP_C9 UART0A_TXD 0x0000005144000700 */ PAD_CFG_NF(GPP_C9, NONE, DEEP, NF1),
9 /* GPP_C20 UART2_RXD 0x0000005c44000500 */ PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1),
10 /* GPP_C21 UART2_TXD 0x0000005d44000600 */ PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1),
11 };
12 
14 {
16 }
#define GPP_C9
#define GPP_C8
#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:6
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_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197