1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
6 /* Pad configuration in ramstage */
7 static const struct pad_config gpio_table
[] = {
9 PAD_CFG_GPO(GPP_A10
, 1, DEEP
),
10 /* A11 : TOUCH_RPT_EN */
11 PAD_NC(GPP_A11
, NONE
),
13 PAD_CFG_NF(GPP_A12
, NONE
, DEEP
, NF1
),
15 PAD_CFG_NF(GPP_A13
, NONE
, DEEP
, NF1
),
17 PAD_CFG_NF(GPP_A18
, NONE
, DEEP
, NF1
),
19 /* B3 : TRACKPAD_INT_ODL */
23 PAD_NC(GPP_C16
, NONE
),
25 PAD_NC(GPP_C17
, NONE
),
27 PAD_CFG_NF(GPP_C18
, NONE
, DEEP
, NF1
),
29 PAD_CFG_NF(GPP_C19
, NONE
, DEEP
, NF1
),
31 /* D4 : TOUCH_INT_ODL */
32 PAD_CFG_GPI_IRQ_WAKE(GPP_D4
, NONE
, PLTRST
, LEVEL
, INVERT
),
33 /* D12 : WCAM_RST_L */
34 PAD_NC(GPP_D12
, NONE
),
35 /* D15 : PD_EN_WEBCAM */
36 PAD_CFG_GPI_GPIO_DRIVER(GPP_D15
, NONE
, DEEP
),
38 /* E0 : CLK_24M_UCAM */
40 /* E2 : CLK_24M_WCAM */
60 /* H1 : EN_PP3300_SD_U */
73 const struct pad_config
*variant_override_gpio_table(size_t *num
)
75 *num
= ARRAY_SIZE(gpio_table
);