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_GPO(GPP_C14, 1, RSMRST), // M.2_PLT_RST_CNTRL1#
8  PAD_CFG_GPO(GPP_C15, 1, RSMRST), // M.2_PLT_RST_CNTRL2#
9  PAD_CFG_GPO(GPP_F0, 1, RSMRST), // TBT_PERST_N
10  PAD_CFG_GPO(GPP_F22, 0, DEEP), // DGPU_RST#_PCH
11  PAD_CFG_GPO(GPP_F23, 0, DEEP), // DGPU_PWR_EN
12  PAD_CFG_GPO(GPP_H16, 1, RSMRST), // TBT_RTD3_PWR_EN_R
13  PAD_CFG_GPO(GPP_K8, 1, RSMRST), // SATA_M2_PWR_EN1
14  PAD_CFG_GPO(GPP_K9, 1, RSMRST), // SATA_M2_PWR_EN2
15  PAD_CFG_GPO(GPP_K11, 1, RSMRST), // GPIO_LANRTD3
16 };
17 
19 {
21 }
#define GPP_C15
#define GPP_H16
#define GPP_F23
#define GPP_F0
#define GPP_C14
#define GPP_F22
#define ARRAY_SIZE(a)
Definition: helpers.h:12
void variant_configure_early_gpios(void)
Definition: gpio_early.c:14
#define GPP_K9
#define GPP_K11
#define GPP_K8
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_GPO(pad, val, rst)
Definition: gpio_defs.h:247
static const struct pad_config early_gpio_table[]
Definition: gpio_early.c:6