summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@scarletltd.com>2018-04-20 16:40:01 -0600
committerMartin Roth <martinroth@google.com>2018-04-26 22:01:50 +0000
commit557b9bbdf2886b055673417c5bbebc3a26fed665 (patch)
tree9354abbb356b8159ab1133218df5c489d2f31475 /src/mainboard/google
parent2d72a170588efdf35583fdcd03024acc80a983f0 (diff)
downloadcoreboot-557b9bbdf2886b055673417c5bbebc3a26fed665.tar.xz
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>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/kahlee/bootblock/bootblock.c6
1 files changed, 6 insertions, 0 deletions
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();