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, PWROK
),
10 /* A11 : TOUCH_RPT_EN ==> NC */
11 PAD_NC(GPP_A11
, NONE
),
13 /* B7 : PCIE_CLKREQ2_N ==> WWAN_SAR_DETECT_ODL*/
14 PAD_CFG_GPO(GPP_B7
, 1, DEEP
),
15 /* B8 : WLAN_CLKREQ_ODL ==> NC */
18 /* C18 : AP_I2C_EMR_SDA ==> NC */
19 PAD_NC(GPP_C18
, NONE
),
20 /* C19 : AP_I2C_EMR_SCL ==> NC */
21 PAD_NC(GPP_C19
, NONE
),
23 /* D0 : WWAN_HOST_WAKE ==> WWAN_WDISABLE_L */
24 PAD_CFG_GPO(GPP_D0
, 1, DEEP
),
25 /* D1 : WLAN_PERST_L ==> NC */
27 /* D3 : WLAN_PCIE_WAKE_ODL ==> NC */
29 /* D4 : TOUCH_INT_ODL ==> NC */
31 /* D5 : TOUCH_RESET_L ==> NC */
33 /* D6 : EN_PP3300_TOUCH_S0 ==> NC */
35 /* D12 : WCAM_RST_L ==> NC */
36 PAD_NC(GPP_D12
, NONE
),
37 /* D14 : EN_PP1200_CAMERA ==> NC */
38 PAD_NC(GPP_D14
, NONE
),
39 /* D15 : UCAM_RST_L ==> NC */
40 PAD_NC(GPP_D15
, NONE
),
41 /* D19 : WWAN_WLAN_COEX1 ==> NC */
42 PAD_NC(GPP_D19
, NONE
),
43 /* D20 : WWAN_WLAN_COEX2 ==> NC */
44 PAD_NC(GPP_D20
, NONE
),
45 /* D21 : WWAN_WLAN_COEX3 ==> NC */
46 PAD_NC(GPP_D21
, NONE
),
48 /* E2 : CLK_24M_WCAM ==> NC */
51 /* H4 : AP_I2C_TS_SDA ==> NC */
53 /* H5 : AP_I2C_TS_SCL ==> NC */
55 /* H6 : AP_I2C_CAM_SDA ==> NC */
57 /* H7 : AP_I2C_CAM_SCL ==> NC */
59 /* H17 : WWAN_RST_L */
60 PAD_CFG_GPO(GPP_H17
, 0, PLTRST
),
62 /* S2 : DMIC1_CLK ==> NC */
64 /* S3 : DMIC1_DATA ==> NC */
68 const struct pad_config
*variant_override_gpio_table(size_t *num
)
70 *num
= ARRAY_SIZE(gpio_table
);
74 static const struct pad_config romstage_gpio_table
[] = {
75 /* no touchscreen present */
76 /* D5 : TOUCH_RESET_L */
78 /* D6 : EN_PP3300_TOUCH_S0 */
82 const struct pad_config
*__weak
variant_romstage_gpio_table(size_t *num
)
84 *num
= ARRAY_SIZE(romstage_gpio_table
);
85 return romstage_gpio_table
;