From e52edfcbffecc2b1e3df448ec6acb7da5f200d92 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Wed, 8 Jul 2020 10:54:07 -0600 Subject: [PATCH] soc/amd/picasso: Init SPI in psp_verstage SPI needs to be initialized to save VBNV (Vboot Non-Volatile memory) to flash. BUG=b:159811539 TEST=Build & boot. Signed-off-by: Martin Roth Change-Id: Iebf3ed3f5d6be0dda717d91d5b2fbcf2a1cc43cc Reviewed-on: https://review.coreboot.org/c/coreboot/+/43308 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/amd/picasso/psp_verstage/fch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/amd/picasso/psp_verstage/fch.c b/src/soc/amd/picasso/psp_verstage/fch.c index e01a684a34..50960881d5 100644 --- a/src/soc/amd/picasso/psp_verstage/fch.c +++ b/src/soc/amd/picasso/psp_verstage/fch.c @@ -4,6 +4,7 @@ #include #include +#include #include #include #include @@ -84,6 +85,7 @@ static struct { {"eSPI", {FCH_IO_DEVICE_ESPI}, espi_set_bar}, {"I2C2", {FCH_IO_DEVICE_I2C, 2}, i2c2_set_bar}, {"I2C3", {FCH_IO_DEVICE_I2C, 3}, i2c3_set_bar}, + {"SPI", {FCH_IO_DEVICE_SPI}, spi_set_base}, {"AOAC", {FCH_IO_DEVICE_AOAC}, aoac_set_bar}, };