soc/intel/cannonlake: Use EBDA structure to store soc reserve memory size
commited1694157c4f14d4ce60e7c053ea044aca6777fb
authorSubrata Banik <subrata.banik@intel.com>
Thu, 19 Oct 2017 11:10:14 +0000 (19 16:40 +0530)
committerAaron Durbin <adurbin@chromium.org>
Thu, 19 Oct 2017 17:36:16 +0000 (19 17:36 +0000)
tree36dd2a267e92bc62cc56bf656f151963c7df778d
parentf506cf0b8dd3914826d55bf7e120f5ed826e438b
soc/intel/cannonlake: Use EBDA structure to store soc reserve memory size

Avoid calling calculate_dram_base() function to get chipset reserved
memory size during pci resource allocation. Rather use EBDA to store
chipset reserved memory size while calling cbmem_top_int().

This patch avoids one extra calculate_dram_base() call.

BRANCH=none
BUG=b:63974384
TEST=Ensures DRAM based resource allocation has taken care of Intel
SoC reserved ranges.

Change-Id: I2771ea55253ca7d16cd2e2951889ab092b47a9b1
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/22099
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/intel/cannonlake/include/soc/ebda.h
src/soc/intel/cannonlake/memmap.c