soc/mediatek/mt8196: Add GPUEB support
[coreboot2.git] / src / mainboard / google / dedede / variants / shotzo / gpio.c
blobc5ba1d77d6895486b19e28b521aad1917ee46819
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 /* A10 : LAN_PWR_ON */
9 PAD_CFG_GPO(GPP_A10, 1, DEEP),
10 /* A11 : TOUCH_RPT_EN */
11 PAD_NC(GPP_A11, NONE),
12 /* A12 : USB_OC1_N */
13 PAD_CFG_NF(GPP_A12, NONE, DEEP, NF1),
14 /* A13 : USB_OC2_N */
15 PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1),
16 /* A18 : USB_OC0_N */
17 PAD_CFG_NF(GPP_A18, NONE, DEEP, NF1),
19 /* B3 : TRACKPAD_INT_ODL */
20 PAD_NC(GPP_B3, NONE),
22 /* C16 : I2C0_SDA */
23 PAD_NC(GPP_C16, NONE),
24 /* C17 : I2C0_SCL */
25 PAD_NC(GPP_C17, NONE),
26 /* C18 : LVDS_SDA */
27 PAD_CFG_NF(GPP_C18, NONE, DEEP, NF1),
28 /* C19 : LVDS_SCL */
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 */
39 PAD_NC(GPP_E0, NONE),
40 /* E2 : CLK_24M_WCAM */
41 PAD_NC(GPP_E2, NONE),
43 /* G0 : SD_CMD */
44 PAD_NC(GPP_G0, NONE),
45 /* G1 : SD_DATA0 */
46 PAD_NC(GPP_G1, NONE),
47 /* G2 : SD_DATA1 */
48 PAD_NC(GPP_G2, NONE),
49 /* G3 : SD_DATA2 */
50 PAD_NC(GPP_G3, NONE),
51 /* G4 : SD_DATA3 */
52 PAD_NC(GPP_G4, NONE),
53 /* G5 : SD_CD_ODL */
54 PAD_NC(GPP_G5, NONE),
55 /* G6 : SD_CLK */
56 PAD_NC(GPP_G6, NONE),
57 /* G7 : SD_SDIO_WP */
58 PAD_NC(GPP_G7, NONE),
60 /* H1 : EN_PP3300_SD_U */
61 PAD_NC(GPP_H1, NONE),
62 /* H6 : I2C3_SDA */
63 PAD_NC(GPP_H6, NONE),
64 /* H7 : I2C3_SCL */
65 PAD_NC(GPP_H7, NONE),
67 /* S2 : DMIC1_CLK */
68 PAD_NC(GPP_S2, NONE),
69 /* S3 : DMIC1_DATA */
70 PAD_NC(GPP_S3, NONE),
73 const struct pad_config *variant_override_gpio_table(size_t *num)
75 *num = ARRAY_SIZE(gpio_table);
76 return gpio_table;