[coreboot-gerrit] Patch set updated for coreboot: intel/skylake: Run spi_init as early as possible in ramstage

Furquan Shaikh (furquan@google.com) gerrit at coreboot.org
Mon Jun 20 19:34:18 CEST 2016


Furquan Shaikh (furquan at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15235

-gerrit

commit 3cb6b1f675a2566d91e10821651faba7585b4613
Author: Furquan Shaikh <furquan at google.com>
Date:   Fri Jun 17 12:26:21 2016 -0700

    intel/skylake: Run spi_init as early as possible in ramstage
    
    spi_init should be run early enough in ramstage so that any init
    calls (e.g. mainboard_ec_init) that write on flash have right
    permissions set.
    
    Change-Id: I9cd3dc723387757951acd40449d4a41986836d2a
    Signed-off-by: Furquan Shaikh <furquan at google.com>
---
 src/soc/intel/skylake/flash_controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/soc/intel/skylake/flash_controller.c b/src/soc/intel/skylake/flash_controller.c
index 3507b47..9c2378b 100644
--- a/src/soc/intel/skylake/flash_controller.c
+++ b/src/soc/intel/skylake/flash_controller.c
@@ -433,5 +433,5 @@ static void spi_init_cb(void *unused)
 	spi_init();
 }
 
-BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_EXIT, spi_init_cb, NULL);
+BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_ENTRY, spi_init_cb, NULL);
 #endif



More information about the coreboot-gerrit mailing list