summaryrefslogtreecommitdiff
path: root/src/mainboard/prodrive/atlas/early_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/prodrive/atlas/early_gpio.c')
-rw-r--r--src/mainboard/prodrive/atlas/early_gpio.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/mainboard/prodrive/atlas/early_gpio.c b/src/mainboard/prodrive/atlas/early_gpio.c
index a24e4da519..b79375218c 100644
--- a/src/mainboard/prodrive/atlas/early_gpio.c
+++ b/src/mainboard/prodrive/atlas/early_gpio.c
@@ -6,17 +6,28 @@
/* Early pad configuration in bootblock */
static const struct pad_config early_gpio_table[] = {
- /* todo: gpio config */
-};
+ /* SMB_CLK */
+ PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1),
+ /* SMB_DATA */
+ PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1),
+
+ /* PCH HSID */
+ PAD_CFG_GPI(GPP_A8, NONE, DEEP),
+ PAD_CFG_GPI(GPP_F19, NONE, DEEP),
+ PAD_CFG_GPI(GPP_H19, NONE, DEEP),
+ PAD_CFG_GPI(GPP_H23, NONE, DEEP),
-static const struct pad_config early_uart_gpio_table[] = {
- /* todo: gpio config */
+ /* UART0 RX */
+ PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2),
+ /* UART0 TX */
+ PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2),
+ /* UART1 RX */
+ PAD_CFG_NF(GPP_D17, NONE, DEEP, NF1),
+ /* UART1 TX */
+ PAD_CFG_NF(GPP_D18, NONE, DEEP, NF1),
};
void 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));
}