/* SPDX-License-Identifier: GPL-2.0-or-later */ | |
#include <bootblock_common.h> | |
#include <superio/ite/it8772f/it8772f.h> | |
#include <superio/ite/common/ite.h> | |
#define GPIO_DEV PNP_DEV(0x2e, IT8772F_GPIO) | |
#define UART_DEV PNP_DEV(0x2e, IT8772F_SP1) | |
void bootblock_mainboard_early_init(void) | |
{ | |
ite_conf_clkin(GPIO_DEV, ITE_UART_CLK_PREDIVIDE_24); | |
ite_enable_3vsbsw(GPIO_DEV); | |
ite_kill_watchdog(GPIO_DEV); | |
ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE); | |
} |