From 1876f3ae4530fa691c9d6e88f3f7f8807d57d318 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 7 Dec 2017 18:39:34 -0800 Subject: soc/intel/cannonlake: Add a call to gspi_early_bar_init in bootblock This change adds a call to gspi_early_bar_init in bootblock to allocate a temporary BAR for any GSPI buses that are accessed before resource allocation is done in ramstage. Change-Id: I82387a76d20fb272da6271dd9e5bf2c835d5b146 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/22781 Reviewed-by: Duncan Laurie Reviewed-by: Aaron Durbin Reviewed-by: Lijian Zhao Reviewed-by: Nick Vaccaro Tested-by: build bot (Jenkins) --- src/soc/intel/cannonlake/bootblock/pch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/intel') diff --git a/src/soc/intel/cannonlake/bootblock/pch.c b/src/soc/intel/cannonlake/bootblock/pch.c index cca70c21ad..47eaceb3f9 100644 --- a/src/soc/intel/cannonlake/bootblock/pch.c +++ b/src/soc/intel/cannonlake/bootblock/pch.c @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -98,6 +99,7 @@ static void soc_config_pwrmbase(void) void bootblock_pch_early_init(void) { fast_spi_early_init(SPI_BASE_ADDRESS); + gspi_early_bar_init(); enable_p2sbbar(); /* * Enabling PWRM Base for accessing -- cgit v1.2.3