Debian Codegraph @

src/mainboard/system76/tgl-h/variants/oryp8/gpio_early.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <soc/gpio.h>
4 #include <variant/gpio.h>
5
6 static const struct pad_config early_gpio_table[] = {
7 PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), // UART2_RXD
8 PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), // UART2_TXD
9 PAD_CFG_GPO(GPP_F8, 0, DEEP), // DGPU_RST#_PCH
10 PAD_CFG_GPO(GPP_F9, 0, DEEP), // DGPU_PWR_EN
11 PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), // NB_ENAVDD
12 };
13
14 void variant_configure_early_gpios(void)
15 {
16 gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
17 }