[coreboot-gerrit] Change in coreboot[master]: mainboard/google/kahlee: Set SPI speed early

Marc Jones (Code Review) gerrit at coreboot.org
Sat Apr 21 00:47:54 CEST 2018


Marc Jones has uploaded this change for review. ( https://review.coreboot.org/25756


Change subject: mainboard/google/kahlee: Set SPI speed early
......................................................................

mainboard/google/kahlee: Set SPI speed early

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 for verstage.

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

Change-Id: Ida77d78eb1f290e46b57a46298400ed6c8015e2c
Signed-off-by: Marc Jones <marc.jones at scarletltd.com>
---
M src/mainboard/google/kahlee/bootblock/bootblock.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/25756/1

diff --git a/src/mainboard/google/kahlee/bootblock/bootblock.c b/src/mainboard/google/kahlee/bootblock/bootblock.c
index 843bf4e..577c105 100644
--- a/src/mainboard/google/kahlee/bootblock/bootblock.c
+++ b/src/mainboard/google/kahlee/bootblock/bootblock.c
@@ -34,6 +34,12 @@
 
 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();
 

-- 
To view, visit https://review.coreboot.org/25756
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ida77d78eb1f290e46b57a46298400ed6c8015e2c
Gerrit-Change-Number: 25756
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc at marcjonesconsulting.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180420/5c2f3b4c/attachment.html>


More information about the coreboot-gerrit mailing list