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
>
4
#include <
security/vboot/vboot_common.h
>
5
#include <soc/clock.h>
6
#include <
spi-generic.h
>
7
8
void
verstage_mainboard_init
(
void
)
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
}
printk
#define printk(level,...)
Definition:
stdlib.h:16
console.h
BIOS_ERR
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
Definition:
loglevel.h:72
verstage_mainboard_init
void verstage_mainboard_init(void)
Definition:
verstage.c:41
spi_setup_slave
int spi_setup_slave(unsigned int bus, unsigned int cs, struct spi_slave *slave)
Definition:
spi-generic.c:122
spi-generic.h
spi_slave
Definition:
spi-generic.h:40
vboot_common.h
src
mainboard
google
mistral
verstage.c
Generated by
1.9.1