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 override_gpio_table
[] = {
8 /* B4 : H1_PCH_INT_ODL ==> TPM_AP_INT_ODL */
9 /* C12 : AP_PEN_DET_ODL ==> NC */
10 PAD_NC(GPP_C12
, UP_20K
),
11 /* C18 : AP_I2C_EMR_SDA */
12 PAD_NC(GPP_C18
, NONE
),
13 /* C19 : AP_I2C_EMR_SCL */
14 PAD_NC(GPP_C19
, NONE
),
15 /* C22 : UART2_RTS_N ==> NC */
16 PAD_NC(GPP_C22
, UP_20K
),
17 /* D12 : WCAM_RST_L ==> NC */
18 PAD_NC(GPP_D12
, NONE
),
19 /* D14 : EN_PP1200_CAMERA ==> NC */
20 PAD_NC(GPP_D14
, NONE
),
21 /* D15 : UCAM_RST_L ==> NC */
22 PAD_NC(GPP_D15
, NONE
),
23 /* D18 : I2S_MCLK ==> NC */
24 PAD_NC(GPP_D18
, NONE
),
25 /* D19 : WWAN_WLAN_COEX1 ==> NC */
26 PAD_NC(GPP_D19
, NONE
),
27 /* D20 : WWAN_WLAN_COEX2 ==> NC */
28 PAD_NC(GPP_D20
, NONE
),
29 /* D21 : WWAN_WLAN_COEX3 ==> NC */
30 PAD_NC(GPP_D21
, NONE
),
31 /* E0 : CLK_24M_UCAM ==> NC */
33 /* E2 : CLK_24M_WCAM ==> NC */
35 /* E17 : HDMI_DDC_SCL ==> NC */
36 PAD_NC(GPP_E17
, NONE
),
37 /* H1 : EN_PP3300_SD_U ==> NC */
39 /* H6 : AP_I2C_CAM_SDA ==> NC */
41 /* H7 : AP_I2C_CAM_SCL ==> NC */
43 /* H16 : AP_SUB_IO_L ==> HP_RST_ODL */
44 PAD_CFG_GPO(GPP_H16
, 1, PWROK
),
45 /* G0 : SD_CMD ==> NC */
47 /* G1 : SD_DATA0 ==> NC */
49 /* G2 : SD_DATA1 ==> NC */
51 /* G3 : SD_DATA2 ==> NC */
53 /* G4 : SD_DATA3 ==> NC */
55 /* G5 : SD_CD_ODL ==> NC */
56 PAD_NC(GPP_G5
, UP_20K
),
57 /* G6 : SD_CLK ==> NC */
59 /* G7 : SD_SDIO_WP ==> NC */
61 /* S2 : DMIC1_CLK ==> NC */
63 /* S3 : DMIC1_DATA ==> NC */
67 const struct pad_config
*variant_override_gpio_table(size_t *num
)
69 *num
= ARRAY_SIZE(override_gpio_table
);
70 return override_gpio_table
;