summaryrefslogtreecommitdiff
path: root/src/mainboard/system76/whl-u/gpio_early.c
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2021-03-25 16:40:53 -0600
committerPatrick Georgi <pgeorgi@google.com>2021-04-14 19:59:46 +0000
commit3647e86862ddc5cf200b0f552518d66b72996d8d (patch)
tree8056f3977f327e80e9c09908e820554ce10484b5 /src/mainboard/system76/whl-u/gpio_early.c
parentc0538d46130fe091c3e544eeb6fba7ffb5fc38f0 (diff)
mb/system76/whl-u: Add System76 Galago Pro 3 Rev C
Tested with TianoCore payload (UefiPayloadPkg). Working: - PS/2 keyboard, touchpad - Both DIMM slots - NVMe port - SATA port - SD card slot - Left USB 3 Type-A port - Right USB 3 Type-A port - Right USB 3 Type-C port - Webcam - Ethernet - Integrated graphics using Intel GOP driver - mDP output - HDMI output - Internal microphone - Internal speakers - 3.5mm audio input - 3.5mm audio output - S3 suspend/resume - Flashing with flashrom - Booting to Ubuntu Linux 20.10 and Windows 10 Not tested: - Thunderbolt functionality Change-Id: I5c992e603dbd57ae1b4ddc3a0f9bfc92d6acc813 Signed-off-by: Jeremy Soller <jeremy@system76.com> Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51832 Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/system76/whl-u/gpio_early.c')
-rw-r--r--src/mainboard/system76/whl-u/gpio_early.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/system76/whl-u/gpio_early.c b/src/mainboard/system76/whl-u/gpio_early.c
new file mode 100644
index 0000000000..80f37c6553
--- /dev/null
+++ b/src/mainboard/system76/whl-u/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_C20, NONE, DEEP, NF1), // UART2_RXD
+ PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), // UART2_TXD
+};
+
+void mainboard_configure_early_gpios(void)
+{
+ gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
+}