1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
7 /* Early pad configuration in bootblock */
8 static const struct pad_config early_gpio_table
[] = {
10 PAD_CFG_GPO(GPP_F14
, 0, PLTRST
),
12 PAD_CFG_GPO(GPP_D17
, 1, DEEP
),
14 PAD_CFG_GPI(GPP_E7
, NONE
, DEEP
),
17 static const struct pad_config early_uart_gpio_table
[] = {
19 PAD_CFG_NF(GPP_H10
, NONE
, DEEP
, NF2
),
21 PAD_CFG_NF(GPP_H11
, NONE
, DEEP
, NF2
),
24 void variant_configure_early_gpio_pads(void)
26 if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE
))
27 gpio_configure_pads(early_uart_gpio_table
, ARRAY_SIZE(early_uart_gpio_table
));
29 gpio_configure_pads(early_gpio_table
, ARRAY_SIZE(early_gpio_table
));