summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/geralt/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/geralt/bootblock.c')
-rw-r--r--src/mainboard/google/geralt/bootblock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/geralt/bootblock.c b/src/mainboard/google/geralt/bootblock.c
index ef7e5d1fbfee..9a76b368ca0a 100644
--- a/src/mainboard/google/geralt/bootblock.c
+++ b/src/mainboard/google/geralt/bootblock.c
@@ -2,10 +2,16 @@
#include <bootblock_common.h>
#include <device/mmio.h>
+#include <soc/gpio.h>
+#include <soc/i2c.h>
#include <soc/spi.h>
+#include "gpio.h"
+
void bootblock_mainboard_init(void)
{
+ mtk_i2c_bus_init(CONFIG_DRIVER_TPM_I2C_BUS, I2C_SPEED_FAST);
mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD0_MASK, 3 * MHz, 0);
mtk_snfc_init();
+ gpio_eint_configure(GPIO_GSC_AP_INT_ODL, IRQ_TYPE_EDGE_RISING);
}