Karthik Ramasubramanian has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/56683 )
Change subject: soc/amd/common/block/spi: Enable host burst to 4 DWORD when using DMA ......................................................................
soc/amd/common/block/spi: Enable host burst to 4 DWORD when using DMA
Early SPI initialization disables 4 DWORD burst. This causes SPI DMA operations to stall. Leave it enabled when SPI DMA is used. This is required to initialize SPI bus at non-default speeds.
BUG=b:194919326 TEST=Build and boot to OS in Guybrush.
Change-Id: I363acdcdb4178a10e4f7eb2bbcbd6d0ca7924f2d Signed-off-by: Karthikeyan Ramasubramanian kramasub@google.com --- M src/soc/amd/common/block/spi/fch_spi.c 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/56683/1
diff --git a/src/soc/amd/common/block/spi/fch_spi.c b/src/soc/amd/common/block/spi/fch_spi.c index 0351847..60bc0cc 100644 --- a/src/soc/amd/common/block/spi/fch_spi.c +++ b/src/soc/amd/common/block/spi/fch_spi.c @@ -61,6 +61,7 @@ { lpc_enable_spi_rom(SPI_ROM_ENABLE); lpc_enable_spi_prefetch(); - fch_spi_disable_4dw_burst(); + if (!CONFIG(SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA)) + fch_spi_disable_4dw_burst(); fch_spi_config_modes(); }