blob: 061b5446cf736a263b3f51d889a18f972d3d7738 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}
|