mainboard/google/kahlee: Set SPI speed in bootblock

Set the SPI speed for Normal, Fast, AltIO, and TPM in bootblock.
This setup is needed when moving AGESA out of the bootblock. It sets the
SPI bus speed of the TPM access in verstage.

BUG=b:70558952
TEST=Boot with AGESA moved out of the bootblock.

Change-Id: Ida77d78eb1f290e46b57a46298400ed6c8015e2c
Signed-off-by: Marc Jones <marc.jones@scarletltd.com>
Reviewed-on: https://review.coreboot.org/25756
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Marc Jones 2018-04-20 16:40:01 -06:00 committed by Martin Roth
parent 2d72a17058
commit 557b9bbdf2
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ void bootblock_mainboard_early_init(void)
void bootblock_mainboard_init(void)
{
/* Set SPI speeds before verstage. Needed for TPM */
sb_set_spi100(SPI_SPEED_22M, /* Normal */
SPI_SPEED_66M, /* Fast */
SPI_SPEED_66M, /* AltIO */
SPI_SPEED_66M); /* TPM */
/* Setup TPM decode before verstage */
sb_tpm_decode_spi();