From bd205419f10e46785fc783244e9395c9e0aa47ac Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 17 Jun 2016 12:26:21 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/15235 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/soc/intel/skylake/flash_controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/soc/intel/skylake/flash_controller.c b/src/soc/intel/skylake/flash_controller.c index 3507b471cc..9c2378ba3f 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 -- cgit v1.2.3