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
, DEEP, NF1),
// UART2_RXD
8
PAD_CFG_NF
(
GPP_C21
,
NONE
, DEEP, NF1),
// UART2_TXD
9
};
10
11
void
mainboard_configure_early_gpios
(
void
)
12
{
13
gpio_configure_pads
(
early_gpio_table
,
ARRAY_SIZE
(
early_gpio_table
));
14
}
GPP_C20
#define GPP_C20
Definition:
gpio_soc_defs.h:557
GPP_C21
#define GPP_C21
Definition:
gpio_soc_defs.h:558
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
NONE
@ NONE
Definition:
qup_se_handlers_common.h:196
gpio_configure_pads
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
PAD_CFG_NF
#define PAD_CFG_NF(pad, pull, rst, func)
Definition:
gpio_defs.h:197
pad_config
Definition:
gpio.h:75
mainboard_configure_early_gpios
void mainboard_configure_early_gpios(void)
Definition:
gpio_early.c:19
early_gpio_table
static const struct pad_config early_gpio_table[]
Definition:
gpio_early.c:6
src
mainboard
system76
oryp5
gpio_early.c
Generated by
1.9.1