From cfd135fbd37c56b50add80b11e9a448768c33b3c Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Thu, 26 May 2016 15:29:15 -0700 Subject: [PATCH] UPSTREAM: soc/intel/apollolake: Update SPI memory mapping constraints MMIO region of 256 KiB under 4 GiB is not decoded by SPI controller by hardware design. Current code incorrectly specifies size of that region to be 128 KiB. This change corrects the value to 256 KiB. Change-Id: Idcc67eb3565b800d835e75c0b765dd49d1656938 Original-Signed-off-by: Andrey Petrov Original-Reviewed-on: https://review.coreboot.org/14979 Original-Reviewed-by: Aaron Durbin (cherry-picked from commit 204af8157dd4d4d2b295159628419812ec6a2816) Signed-off-by: Martin Roth Reviewed-on: https://chromium-review.googlesource.com/348409 Reviewed-by: Furquan Shaikh --- src/soc/intel/apollolake/mmap_boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/apollolake/mmap_boot.c b/src/soc/intel/apollolake/mmap_boot.c index bf61941da3..8009ab9568 100644 --- a/src/soc/intel/apollolake/mmap_boot.c +++ b/src/soc/intel/apollolake/mmap_boot.c @@ -23,8 +23,8 @@ #include #include -/* The 128 KiB right below 4G are decoded by readonly SRAM, not boot media */ -#define IFD_BIOS_MAX_MAPPED (CONFIG_IFD_BIOS_END - 128 * KiB) +/* The 256 KiB right below 4G are decoded by readonly SRAM, not boot media */ +#define IFD_BIOS_MAX_MAPPED (CONFIG_IFD_BIOS_END - 256 * KiB) #define IFD_MAPPED_SIZE (IFD_BIOS_MAX_MAPPED - CONFIG_IFD_BIOS_START) #define IFD_BIOS_SIZE (CONFIG_IFD_BIOS_END - CONFIG_IFD_BIOS_START)