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
6
/* Pad configuration in ramstage */
7
static
const
struct
pad_config
gpio_table
[] = {
8
9
/* A11 : TOUCH_RPT_EN */
10
PAD_NC
(
GPP_A11
,
NONE
),
11
12
/* C18 : AP_I2C_EMR_SDA */
13
PAD_NC
(
GPP_C18
,
NONE
),
14
/* C19 : AP_I2C_EMR_SCL */
15
PAD_NC
(
GPP_C19
,
NONE
),
16
17
/* D12 : WCAM_RST_L */
18
PAD_NC
(
GPP_D12
,
NONE
),
19
/* D13 : EN_PP3300_CAMERA */
20
PAD_CFG_GPO
(
GPP_D13
, 1, PLTRST),
21
/* D14 : EN_PP1200_CAMERA */
22
PAD_NC
(
GPP_D14
,
NONE
),
23
/* D15 : UCAM_RST_L */
24
PAD_NC
(
GPP_D15
,
NONE
),
25
/* D19 : WWAN_WLAN_COEX1 */
26
PAD_NC
(
GPP_D19
,
NONE
),
27
/* D20 : WWAN_WLAN_COEX2 */
28
PAD_NC
(
GPP_D20
,
NONE
),
29
/* D21 : WWAN_WLAN_COEX3 */
30
PAD_NC
(
GPP_D21
,
NONE
),
31
32
/* E2 : CLK_24M_WCAM */
33
PAD_NC
(
GPP_E2
,
NONE
),
34
/* E17 : HDMI_DDC_SCL */
35
PAD_NC
(
GPP_E17
,
NONE
),
36
37
/* H6 : AP_I2C_CAM_SDA */
38
PAD_NC
(
GPP_H6
,
NONE
),
39
/* H7 : AP_I2C_CAM_SCL */
40
PAD_NC
(
GPP_H7
,
NONE
),
41
42
/* S2 : DMIC1_CLK */
43
PAD_NC
(
GPP_S2
,
NONE
),
44
/* S3 : DMIC1_DATA */
45
PAD_NC
(
GPP_S3
,
NONE
),
46
};
47
48
const
struct
pad_config
*
variant_override_gpio_table
(
size_t
*num)
49
{
50
*num =
ARRAY_SIZE
(
gpio_table
);
51
return
gpio_table
;
52
}
GPP_D14
#define GPP_D14
Definition:
gpio_soc_defs.h:266
GPP_D12
#define GPP_D12
Definition:
gpio_soc_defs.h:264
GPP_H6
#define GPP_H6
Definition:
gpio_soc_defs.h:222
GPP_H7
#define GPP_H7
Definition:
gpio_soc_defs.h:223
GPP_C18
#define GPP_C18
Definition:
gpio_soc_defs.h:555
GPP_S3
#define GPP_S3
Definition:
gpio_soc_defs.h:163
GPP_E17
#define GPP_E17
Definition:
gpio_soc_defs.h:645
GPP_E2
#define GPP_E2
Definition:
gpio_soc_defs.h:630
GPP_D13
#define GPP_D13
Definition:
gpio_soc_defs.h:265
GPP_A11
#define GPP_A11
Definition:
gpio_soc_defs.h:130
GPP_C19
#define GPP_C19
Definition:
gpio_soc_defs.h:556
GPP_S2
#define GPP_S2
Definition:
gpio_soc_defs.h:162
GPP_D19
#define GPP_D19
Definition:
gpio_soc_defs.h:271
GPP_D15
#define GPP_D15
Definition:
gpio_soc_defs.h:267
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
GPP_D21
#define GPP_D21
Definition:
gpio_soc_defs.h:131
GPP_D20
#define GPP_D20
Definition:
gpio_soc_defs.h:130
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:7
NONE
@ NONE
Definition:
qup_se_handlers_common.h:196
PAD_NC
#define PAD_NC(pin)
Definition:
gpio_defs.h:263
PAD_CFG_GPO
#define PAD_CFG_GPO(pad, val, rst)
Definition:
gpio_defs.h:247
pad_config
Definition:
gpio.h:75
src
mainboard
google
dedede
variants
pirika
gpio.c
Generated by
1.9.1