1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 3 #include <bootblock_common.h> 4 #include <superio/ite/it8772f/it8772f.h> 5 #include <superio/ite/common/ite.h> 6 7 #define GPIO_DEV PNP_DEV(0x2e, IT8772F_GPIO) 8 #define UART_DEV PNP_DEV(0x2e, IT8772F_SP1) 9 bootblock_mainboard_early_init(void)10void bootblock_mainboard_early_init(void) 11 { 12 ite_conf_clkin(GPIO_DEV, ITE_UART_CLK_PREDIVIDE_24); 13 ite_enable_3vsbsw(GPIO_DEV); 14 ite_kill_watchdog(GPIO_DEV); 15 ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE); 16 } 17