Debian Codegraph @

src/mainboard/erying/tgl/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/it8613e/it8613e.h>
6
7 #define GPIO_DEV PNP_DEV(0x2e, IT8613E_GPIO)
8 #define UART_DEV PNP_DEV(0x2e, IT8613E_SP1)
9
10 void bootblock_mainboard_early_init(void)
11 {
12 ite_reg_write(GPIO_DEV, 0x29, 0xc1); /* 3VSB - RAM loses power in S3 anyway */
13 ite_reg_write(GPIO_DEV, 0x2c, 0x41); /* disable k8 power seq */
14 ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE);
15 }