mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / lenovo / m900_tiny / gpio_early.c
blob0f46cda14213e286fd3c509266631af0128bbbb0
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mainboard/gpio.h>
4 #include <soc/gpio.h>
6 /* Early pad configuration */
7 static const struct pad_config uart_gpio_table[] = {
8 PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), /* UART2_RXD */
9 PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), /* UART2_TXD */
12 void mainboard_configure_early_gpios(void)
14 if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE))
15 gpio_configure_pads(uart_gpio_table, ARRAY_SIZE(uart_gpio_table));