summaryrefslogtreecommitdiff
path: root/src/mainboard/erying/tgl/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/erying/tgl/bootblock.c')
-rw-r--r--src/mainboard/erying/tgl/bootblock.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/erying/tgl/bootblock.c b/src/mainboard/erying/tgl/bootblock.c
new file mode 100644
index 0000000000..15be8ce2d8
--- /dev/null
+++ b/src/mainboard/erying/tgl/bootblock.c
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <bootblock_common.h>
+#include <superio/ite/common/ite.h>
+#include <superio/ite/it8613e/it8613e.h>
+#include <gpio.h>
+
+#define GPIO_DEV PNP_DEV(0x2e, IT8613E_GPIO)
+#define UART_DEV PNP_DEV(0x2e, IT8613E_SP1)
+
+void bootblock_mainboard_early_init(void)
+{
+ ite_reg_write(GPIO_DEV, 0x29, 0xc1); /* 3VSB - RAM loses power in S3 anyway */
+ ite_reg_write(GPIO_DEV, 0x2c, 0x41); /* disable k8 power seq */
+ ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE);
+}