Debian Codegraph @

src/mainboard/supermicro/x11-lga1151-series/variants/x11ssm-f/gpio_early.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <mainboard/gpio.h>
4 #include <soc/gpio.h>
5
6 static const struct pad_config early_gpio_table[] = {
7 /* Early LPC configuration in romstage */
8 PAD_CFG_NF(GPP_A1, NONE, DEEP, NF1),
9 PAD_CFG_NF(GPP_A2, NONE, DEEP, NF1),
10 PAD_CFG_NF(GPP_A3, NONE, DEEP, NF1),
11 PAD_CFG_NF(GPP_A4, NONE, DEEP, NF1),
12 PAD_CFG_NF(GPP_A5, NONE, DEEP, NF1),
13 PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1),
14 PAD_CFG_NF(GPP_A8, NONE, DEEP, NF1),
15 PAD_CFG_NF(GPP_A9, NONE, DEEP, NF1),
16 PAD_CFG_NF(GPP_A10, NONE, DEEP, NF1),
17
18 /* BMC POST_COMPLETE */
19 PAD_CFG_GPO(GPP_B20, 0, PLTRST),
20 };
21
22 void mainboard_configure_early_gpios(void)
23 {
24 gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
25 }