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
PAD_CFG_NF
(
GPP_C20
,
NONE
, DEEP, NF1),
// UART2_RXD
8
PAD_CFG_NF
(
GPP_C21
,
NONE
, DEEP, NF1),
// UART2_TXD
9
PAD_CFG_NF
(
GPP_F19
,
NONE
, DEEP, NF1),
// NB_ENAVDD
10
PAD_CFG_GPO
(
GPP_F22
, 0, DEEP),
// DGPU_RST#_PCH
11
PAD_CFG_GPO
(
GPP_F23
, 0, DEEP),
// DGPU_PWR_EN
12
};
13
14
void
variant_configure_early_gpios
(
void
)
15
{
16
gpio_configure_pads
(
early_gpio_table
,
ARRAY_SIZE
(
early_gpio_table
));
17
}
GPP_F23
#define GPP_F23
Definition:
gpio_soc_defs.h:596
GPP_C20
#define GPP_C20
Definition:
gpio_soc_defs.h:557
GPP_C21
#define GPP_C21
Definition:
gpio_soc_defs.h:558
GPP_F22
#define GPP_F22
Definition:
gpio_soc_defs.h:595
GPP_F19
#define GPP_F19
Definition:
gpio_soc_defs.h:592
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
variant_configure_early_gpios
void variant_configure_early_gpios(void)
Definition:
gpio_early.c:14
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_CFG_GPO
#define PAD_CFG_GPO(pad, val, rst)
Definition:
gpio_defs.h:247
pad_config
Definition:
gpio.h:75
early_gpio_table
static const struct pad_config early_gpio_table[]
Definition:
gpio_early.c:6
src
mainboard
system76
gaze15
variants
gaze15
gpio_early.c
Generated by
1.9.1