coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_gpio_n.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <soc/gpio.h>
6 
7 /* Early pad configuration in bootblock */
8 static const struct pad_config early_gpio_table[] = {
9  /* WWAN_RST# */
10  PAD_CFG_GPO(GPP_F14, 0, PLTRST),
11  /* WWAN_PWR_EN */
12  PAD_CFG_GPO(GPP_D17, 1, DEEP),
13  /* EC_IN_RW */
14  PAD_CFG_GPI(GPP_E7, NONE, DEEP),
15 };
16 
17 static const struct pad_config early_uart_gpio_table[] = {
18  /* UART0 RX */
19  PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2),
20  /* UART0 TX */
21  PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2),
22 };
23 
25 {
26  if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE))
28 
30 }
#define GPP_D17
#define GPP_H11
#define GPP_E7
#define GPP_F14
#define GPP_H10
#define ARRAY_SIZE(a)
Definition: helpers.h:12
@ CONFIG
Definition: dsi_common.h:201
void variant_configure_early_gpio_pads(void)
Definition: early_gpio_n.c:24
static const struct pad_config early_uart_gpio_table[]
Definition: early_gpio_n.c:17
static const struct pad_config early_gpio_table[]
Definition: early_gpio_n.c:8
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_GPI(pad, pull, rst)
Definition: gpio_defs.h:284
#define PAD_CFG_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197
#define PAD_CFG_GPO(pad, val, rst)
Definition: gpio_defs.h:247