blob: 9cb59177e80c55e4d4e20c6416c4aad3f9363f4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#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");
}
}
|