/* SPDX-License-Identifier: GPL-2.0-only */ #include #include #include #include /* Early pad configuration in bootblock */ static const struct pad_config early_gpio_table[] = { /* WWAN_RST# */ PAD_CFG_GPO(GPP_F14, 0, PLTRST), /* WWAN_PWR_EN */ PAD_CFG_GPO(GPP_F21, 1, DEEP), /* SMB_CLK */ PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1), /* SMB_DATA */ PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1), }; static const struct pad_config early_uart_gpio_table[] = { /* UART0 RX */ PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2), /* UART0 TX */ PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2), }; void variant_configure_early_gpio_pads(void) { if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE)) gpio_configure_pads(early_uart_gpio_table, ARRAY_SIZE(early_uart_gpio_table)); gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); }