[coreboot] New patch to review for coreboot: 802d06c Fix compilation on Stumpy

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Nov 7 01:36:59 CET 2012


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1762

-gerrit

commit 802d06cc0c07945504a43764a1299b40647dd9ca
Author: Stefan Reinauer <reinauer at chromium.org>
Date:   Tue Oct 2 15:46:03 2012 -0700

    Fix compilation on Stumpy
    
    If there is no SPI flash driver in SMM, we don't have to initialize it
    after locking down the BAR. This fixes Stumpy compilation
    
    Change-Id: I2dfc61a8d85563ccfad061aeb6ce7c65c1fcf1d4
    Signed-off-by: Stefan Reinauer <reinauer at google.com>
---
 src/southbridge/intel/bd82x6x/finalize.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/southbridge/intel/bd82x6x/finalize.c b/src/southbridge/intel/bd82x6x/finalize.c
index 1275725..4a4f021 100644
--- a/src/southbridge/intel/bd82x6x/finalize.c
+++ b/src/southbridge/intel/bd82x6x/finalize.c
@@ -36,8 +36,10 @@ 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));




More information about the coreboot mailing list