Yidi Lin | ce1ef69 | 2023-08-07 14:29:48 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include <security/vboot/vboot_common.h> | ||||
4 | #include <soc/i2c.h> | ||||
5 | #include <soc/spi.h> | ||||
6 | |||||
7 | #include "gpio.h" | ||||
8 | |||||
9 | void verstage_mainboard_init(void) | ||||
10 | { | ||||
11 | mtk_i2c_bus_init(CONFIG_DRIVER_TPM_I2C_BUS, I2C_SPEED_FAST); | ||||
12 | mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD0_MASK, 3 * MHz, 0); | ||||
13 | gpio_eint_configure(GPIO_GSC_AP_INT_ODL, IRQ_TYPE_EDGE_RISING); | ||||
14 | } |