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