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
[] = {
8 /* A11 : TOUCH_RPT_EN */
11 PAD_CFG_NF(GPP_A12
, NONE
, DEEP
, NF1
),
13 PAD_CFG_NF(GPP_A13
, NONE
, DEEP
, NF1
),
15 PAD_CFG_NF(GPP_A14
, NONE
, DEEP
, NF1
),
17 PAD_CFG_NF(GPP_A18
, NONE
, DEEP
, NF1
),
19 /* B9 : LAN_CLKREQ_ODL */
20 PAD_CFG_NF(GPP_B9
, NONE
, DEEP
, NF1
),
22 /* D2 : PWM_PP3300_BUZZER */
23 PAD_CFG_GPO(GPP_D2
, 1, DEEP
),
24 /* D4 : LAN_PE_ISOLATE_ODL_R */
25 PAD_CFG_GPO(GPP_D4
, 1, DEEP
),
26 /* D5 : TOUCH_RESET_L */
28 /* D6 : EN_PP3300_TOUCH_S0 */
30 /* D17 : LAN_PERST_L */
31 PAD_CFG_GPO(GPP_D17
, 1, PLTRST
),
32 /* D19 : WWAN_WLAN_COEX1 */
33 PAD_NC(GPP_D19
, NONE
),
34 /* D20 : WWAN_WLAN_COEX2 */
35 PAD_NC(GPP_D20
, NONE
),
37 /* E13 : GPP_E13/DDI0_DDC_SCL */
38 PAD_CFG_NF(GPP_E13
, NONE
, DEEP
, NF1
),
39 /* E14 : GPP_E14/DDI0_DDC_SDA */
40 PAD_CFG_NF(GPP_E14
, NONE
, DEEP
, NF1
),
59 /* H4 : AP_I2C_TS_SDA */
61 /* H5 : AP_I2C_TS_SCL */
63 /* H6 : AP_I2C_CAM_SDA */
65 /* H7 : AP_I2C_CAM_SCL */
67 /* H15 : I2S_SPK_BCLK */
68 PAD_NC(GPP_H15
, NONE
),
70 /* R6 : I2S_SPK_LRCK */
72 /* R7 : I2S_SPK_AUDIO */
85 const struct pad_config
*variant_override_gpio_table(size_t *num
)
87 *num
= ARRAY_SIZE(gpio_table
);
91 static const gpio_t hpd_gpios
[] = {
100 const gpio_t
*variant_hpd_gpios(size_t *num
)
102 *num
= ARRAY_SIZE(hpd_gpios
);