coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
verstage.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <console/console.h>
5 #include <soc/clock.h>
6 #include <spi-generic.h>
7 
9 {
10  struct spi_slave spi;
11 
12  printk(BIOS_ERR, "Trying to initialize TPM SPI bus\n");
13  if (spi_setup_slave(CONFIG_DRIVER_TPM_SPI_BUS,
14  CONFIG_DRIVER_TPM_SPI_CHIP, &spi)) {
15  printk(BIOS_ERR, "Failed to setup TPM SPI slave\n");
16  }
17 }
#define printk(level,...)
Definition: stdlib.h:16
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
Definition: loglevel.h:72
void verstage_mainboard_init(void)
Definition: verstage.c:41
int spi_setup_slave(unsigned int bus, unsigned int cs, struct spi_slave *slave)
Definition: spi-generic.c:122