coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include <baseboard/gpio.h>
4
#include <baseboard/variants.h>
5
#include <
commonlib/helpers.h
>
6
7
/* Pad configuration in ramstage */
8
static
const
struct
pad_config
gpio_table
[] = {
9
/* A10 : WWAN_EN => LTE_PWR_OFF_ODL */
10
PAD_CFG_GPO
(
GPP_A10
, 1, PWROK),
11
12
/* C12 : AP_PEN_DET_ODL */
13
PAD_CFG_GPI_GPIO_DRIVER
(
GPP_C12
,
NONE
, DEEP),
14
15
/* H17 : WWAN_RST_L => LTE_RESET_R_ODL */
16
PAD_CFG_GPO
(
GPP_H17
, 0, PLTRST),
17
};
18
19
const
struct
pad_config
*
variant_override_gpio_table
(
size_t
*num)
20
{
21
*num =
ARRAY_SIZE
(
gpio_table
);
22
return
gpio_table
;
23
}
GPP_C12
#define GPP_C12
Definition:
gpio_soc_defs.h:549
GPP_H17
#define GPP_H17
Definition:
gpio_soc_defs.h:233
GPP_A10
#define GPP_A10
Definition:
gpio_soc_defs.h:129
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
helpers.h
variant_override_gpio_table
const struct pad_config *__weak variant_override_gpio_table(size_t *num)
Definition:
gpio.c:450
gpio_table
static const struct pad_config gpio_table[]
Definition:
gpio.c:8
NONE
@ NONE
Definition:
qup_se_handlers_common.h:196
PAD_CFG_GPO
#define PAD_CFG_GPO(pad, val, rst)
Definition:
gpio_defs.h:247
PAD_CFG_GPI_GPIO_DRIVER
#define PAD_CFG_GPI_GPIO_DRIVER(pad, pull, rst)
Definition:
gpio_defs.h:323
pad_config
Definition:
gpio.h:75
src
mainboard
google
dedede
variants
metaknight
gpio.c
Generated by
1.9.1