Debian Codegraph @

src/mainboard/lenovo/thinkcentre_m710s/bootblock.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <bootblock_common.h>
4 #include <superio/ite/common/ite.h>
5 #include <superio/ite/it8629e/it8629e.h>
6
7 #define SERIAL_DEV PNP_DEV(0x2e, IT8629E_SP1)
8 #define GPIO_DEV PNP_DEV(0x2e, IT8629E_GPIO)
9
10 void bootblock_mainboard_early_init(void)
11 {
12 ite_reg_write(GPIO_DEV, 0x23, 0x49);
13 ite_reg_write(GPIO_DEV, 0x71, 0x09);
14 ite_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
15 }