aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/system76/oryp5/gpio_early.c
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2021-01-26 11:50:36 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-01-28 09:15:00 +0000
commitfdc8fd3602eddabdbbd0d9d87329343160cec337 (patch)
treea722e6166794af7d2728cc477a81ccdd835f98b9 /src/mainboard/system76/oryp5/gpio_early.c
parent1ee8ddc484bf87b99d4ba80f6d4fb99ee043780e (diff)
mb/system76/oryp5: Add System76 Oryx Pro 5
Tested with TianoCore payload (UefiPayloadPkg). Working: - PS/2 keyboard, touchpad - Both DIMM slots - Both NVMe ports - SATA port - All USB ports - Webcam - Ethernet - Integrated graphics - Internal microphone - S3 suspend/resume - Flashing with flashrom - Booting to Ubuntu Linux and Windows Not working: - Discrete/Hybrid graphics - Internal speakers These two require new drivers to work correctly, which will be added and enabled later. Change-Id: Iae6e530dcd52df3642cdfe74b65bfff5aa0dd402 Signed-off-by: Tim Crawford <tcrawford@system76.com> Signed-off-by: Jeremy Soller <jeremy@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47892 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/system76/oryp5/gpio_early.c')
-rw-r--r--src/mainboard/system76/oryp5/gpio_early.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/system76/oryp5/gpio_early.c b/src/mainboard/system76/oryp5/gpio_early.c
new file mode 100644
index 0000000000..80f37c6553
--- /dev/null
+++ b/src/mainboard/system76/oryp5/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));
+}