summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2016-06-17 12:26:21 -0700
committerFurquan Shaikh <furquan@google.com>2016-06-21 19:54:23 +0200
commitbd205419f10e46785fc783244e9395c9e0aa47ac (patch)
tree6a342e538827ee7458b0050342a8f1b3c51c8469
parent6ac226d915ade86216d77316c77f824a07dd0e1c (diff)
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@google.com> Reviewed-on: https://review.coreboot.org/15235 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/soc/intel/skylake/flash_controller.c2
1 files changed, 1 insertions, 1 deletions
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