From 557b9bbdf2886b055673417c5bbebc3a26fed665 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Fri, 20 Apr 2018 16:40:01 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/25756 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/google/kahlee/bootblock/bootblock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/kahlee/bootblock/bootblock.c b/src/mainboard/google/kahlee/bootblock/bootblock.c index 843bf4ece5..577c105f9e 100644 --- a/src/mainboard/google/kahlee/bootblock/bootblock.c +++ b/src/mainboard/google/kahlee/bootblock/bootblock.c @@ -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(); -- cgit v1.2.3