| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/gpio.h> |
| 4 |
#include <baseboard/variants.h> |
| 5 |
#include <soc/gpio.h> |
| 6 |
|
| 7 |
static const struct pad_config early_uart_gpio_table[] = { |
| 8 |
|
| 9 |
PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2), |
| 10 |
|
| 11 |
PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2), |
| 12 |
|
| 13 |
PAD_CFG_NF(GPP_D17, NONE, DEEP, NF1), |
| 14 |
|
| 15 |
PAD_CFG_NF(GPP_D18, NONE, DEEP, NF1), |
| 16 |
|
| 17 |
PAD_CFG_NF(GPP_F1, NONE, DEEP, NF2), |
| 18 |
|
| 19 |
PAD_CFG_NF(GPP_F2, NONE, DEEP, NF2), |
| 20 |
}; |
| 21 |
|
| 22 |
void variant_configure_early_gpio_pads(void) |
| 23 |
{ |
| 24 |
if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE)) |
| 25 |
gpio_configure_pads(early_uart_gpio_table, ARRAY_SIZE(early_uart_gpio_table)); |
| 26 |
|
| 27 |
} |