From 312ee0ca7096cdb35fe53e4b5e3285509e93bc68 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Sun, 9 Sep 2012 20:12:32 -0700 Subject: SPI: re-init SMM SPI driver after lockdown If the driver is initialized before the lockdown then it will fail to work after the lockdown bit is set. Change-Id: Idc05d33d8d726bf29cb3c9b1b4604522bd64170a Signed-off-by: Duncan Laurie Reviewed-on: http://review.coreboot.org/1745 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/southbridge/intel/bd82x6x/finalize.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/southbridge/intel/bd82x6x/finalize.c b/src/southbridge/intel/bd82x6x/finalize.c index ed1ebf7a9a..d50c8e6654 100644 --- a/src/southbridge/intel/bd82x6x/finalize.c +++ b/src/southbridge/intel/bd82x6x/finalize.c @@ -22,6 +22,7 @@ #include #include #include "pch.h" +#include "spi.h" void intel_pch_finalize_smm(void) { @@ -34,6 +35,11 @@ void intel_pch_finalize_smm(void) /* Lock SPIBAR */ RCBA32_OR(0x3804, (1 << 15)); +#if CONFIG_SPI_FLASH_SMM + /* Re-init SPI driver to handle locked BAR */ + spi_init(); +#endif + /* TCLOCKDN: TC Lockdown */ RCBA32_OR(0x0050, (1 << 31)); -- cgit v1.2.3