aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/thinkcentre_m710s/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/lenovo/thinkcentre_m710s/bootblock.c')
-rw-r--r--src/mainboard/lenovo/thinkcentre_m710s/bootblock.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/thinkcentre_m710s/bootblock.c b/src/mainboard/lenovo/thinkcentre_m710s/bootblock.c
new file mode 100644
index 0000000000..061b5446cf
--- /dev/null
+++ b/src/mainboard/lenovo/thinkcentre_m710s/bootblock.c
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <bootblock_common.h>
+#include <superio/ite/common/ite.h>
+#include <superio/ite/it8629e/it8629e.h>
+
+#define SERIAL_DEV PNP_DEV(0x2e, IT8629E_SP1)
+#define GPIO_DEV PNP_DEV(0x2e, IT8629E_GPIO)
+
+void bootblock_mainboard_early_init(void)
+{
+ ite_reg_write(GPIO_DEV, 0x23, 0x49);
+ ite_reg_write(GPIO_DEV, 0x71, 0x09);
+ ite_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
+}