soc/intel/cannonlake: Use EBDA area to store cbmem_top address
commit47569cf3a9be5d42a75c932d4148fa20c2d8b475
authorSubrata Banik <subrata.banik@intel.com>
Thu, 12 Oct 2017 12:29:02 +0000 (12 17:59 +0530)
committerAaron Durbin <adurbin@chromium.org>
Wed, 18 Oct 2017 01:13:51 +0000 (18 01:13 +0000)
treeb5c04ad951389a26e1eab016f5856eeb94e3ca2b
parentd2cadc39f3894612ca7714d5a4712bd3c09f42de
soc/intel/cannonlake: Use EBDA area to store cbmem_top address

This patch uses BIOS EBDA area to store relevent details
like cbmem top during romstage after MRC init is done.
Also provide provision to use the same EBDA data across
various stages without reexecuting memory map algorithm.

BRANCH=none
BUG=b:63974384
TEST=Ensures HW based memmap algorithm is executing once in romstage
and store required data into EBDA for other stage to avoid redundant
calculation and get cbmem_top start from EBDA area.

Change-Id: I763ad8181396ea8d8c0d5cf088264791ba62dceb
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/21985
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/intel/cannonlake/Kconfig
src/soc/intel/cannonlake/bootblock/pch.c
src/soc/intel/cannonlake/include/soc/bootblock.h
src/soc/intel/cannonlake/include/soc/ebda.h [copied from src/soc/intel/cannonlake/include/soc/bootblock.h with 54% similarity]
src/soc/intel/cannonlake/memmap.c