mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / lattepanda / mu / early_gpio.c
blobf44e67dcfb2e53e646c2654dd347b5de854e76f8
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <soc/gpio.h>
7 static const struct pad_config early_uart_gpio_table[] = {
8 /* UART0 RX */
9 PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2),
10 /* UART0 TX */
11 PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2),
12 /* UART1 RX */
13 PAD_CFG_NF(GPP_D17, NONE, DEEP, NF2),
14 /* UART1 TX */
15 PAD_CFG_NF(GPP_D18, NONE, DEEP, NF2),
16 /* UART2 RX */
17 PAD_CFG_NF(GPP_F1, NONE, DEEP, NF2),
18 /* UART2 TX */
19 PAD_CFG_NF(GPP_F2, NONE, DEEP, NF2),
22 void variant_configure_early_gpio_pads(void)
24 if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE))
25 gpio_configure_pads(early_uart_gpio_table, ARRAY_SIZE(early_uart_gpio_table));