summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/mistral/verstage.c
blob: ba6c1ff267ea01a68242fb32a5ce43d31294e47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#include <console/console.h>
#include <security/vboot/vboot_common.h>
#include <soc/clock.h>
#include <spi-generic.h>

void verstage_mainboard_init(void)
{
	struct spi_slave spi;

	printk(BIOS_ERR, "Trying to initialize TPM SPI bus\n");
	if (spi_setup_slave(CONFIG_DRIVER_TPM_SPI_BUS,
			    CONFIG_DRIVER_TPM_SPI_CHIP, &spi)) {
		printk(BIOS_ERR, "Failed to setup TPM SPI slave\n");
	}
}