summaryrefslogtreecommitdiffstats
path: root/src/mainboard/system76/tgl-h/variants/gaze16-3060/gpio_early.c
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2022-09-29 11:57:53 -0600
committerMartin L Roth <gaumless@gmail.com>2022-11-30 16:54:04 +0000
commitc16bd3cc9c882d0aea4e2d659c5a66fcc4d43d8c (patch)
tree1d2d97c969796c00d0fbb93bb624963c5850fde0 /src/mainboard/system76/tgl-h/variants/gaze16-3060/gpio_early.c
parent4403c56ea2262f84429bba144c555e065748a998 (diff)
downloadcoreboot-c16bd3cc9c882d0aea4e2d659c5a66fcc4d43d8c.tar.gz
coreboot-c16bd3cc9c882d0aea4e2d659c5a66fcc4d43d8c.tar.bz2
coreboot-c16bd3cc9c882d0aea4e2d659c5a66fcc4d43d8c.zip
mb/system76: Rename gaze16 to tgl-h
Change-Id: Icbf9348447b9e7acc0caa8082cf5dd00853da37a Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67990 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jeremy Soller <jeremy@system76.com>
Diffstat (limited to 'src/mainboard/system76/tgl-h/variants/gaze16-3060/gpio_early.c')
-rw-r--r--src/mainboard/system76/tgl-h/variants/gaze16-3060/gpio_early.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mainboard/system76/tgl-h/variants/gaze16-3060/gpio_early.c b/src/mainboard/system76/tgl-h/variants/gaze16-3060/gpio_early.c
new file mode 100644
index 000000000000..8c97e7f45eab
--- /dev/null
+++ b/src/mainboard/system76/tgl-h/variants/gaze16-3060/gpio_early.c
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <soc/gpio.h>
+#include <variant/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
+ PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), // NB_ENAVDD
+ PAD_CFG_GPO(GPP_F8, 0, DEEP), // DGPU_RST#_PCH
+ PAD_CFG_GPO(GPP_F9, 0, DEEP), // DGPU_PWR_EN
+};
+
+void variant_configure_early_gpios(void)
+{
+ gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
+}