summaryrefslogtreecommitdiffstats
path: root/src/mainboard/system76/rpl/variants/lemp12/gpio_early.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/system76/rpl/variants/lemp12/gpio_early.c')
-rw-r--r--src/mainboard/system76/rpl/variants/lemp12/gpio_early.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/system76/rpl/variants/lemp12/gpio_early.c b/src/mainboard/system76/rpl/variants/lemp12/gpio_early.c
new file mode 100644
index 000000000000..c80c798b040f
--- /dev/null
+++ b/src/mainboard/system76/rpl/variants/lemp12/gpio_early.c
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <mainboard/gpio.h>
+#include <soc/gpio.h>
+
+static const struct pad_config early_gpio_table[] = {
+ PAD_CFG_NF(GPP_H10, NONE, DEEP, NF1), // UART0_RX
+ PAD_CFG_NF(GPP_H11, NONE, DEEP, NF1), // UART0_TX
+};
+
+void mainboard_configure_early_gpios(void)
+{
+ gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
+}