summaryrefslogtreecommitdiff
path: root/src/mainboard/google/asurada/bootblock.c
blob: 647555a3391af1e4623b9efd975efc3880acf93e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0-only */

#include <bootblock_common.h>
#include <soc/spi.h>

#include "gpio.h"

void bootblock_mainboard_init(void)
{
	mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD0_MASK, 3 * MHz, 0);
	mtk_spi_init(CONFIG_DRIVER_TPM_SPI_BUS, SPI_PAD0_MASK, 1 * MHz, 0);
	setup_chromeos_gpios();
	gpio_eint_configure(GPIO_H1_AP_INT, IRQ_TYPE_EDGE_RISING);
}