summaryrefslogtreecommitdiff
path: root/src/drivers/intel
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-11 09:57:14 +0300
committerPatrick Georgi <pgeorgi@google.com>2019-09-13 09:57:25 +0000
commit216db613a7dfbad3bfb150e3ae9927f5e970cd4c (patch)
treecd39d9ee066463fbdf448bd55de42f5813303309 /src/drivers/intel
parentcfcf3c584f3eaf9377a75ada1ac957bb0ceeacfa (diff)
intel/fsp2_0: Move TS_BEFORE_INITRAM
Exclude FSP-M loading from the timestamps used for RAM detection and training process. Change-Id: I859b292f2347c6f0e3e41555ad4fb8d95a139007 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35371 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r--src/drivers/intel/fsp2_0/memory_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c
index 1386d2c9f2..5765fb7311 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -392,8 +392,6 @@ void fsp_memory_init(bool s3wake)
struct memranges memmap;
struct range_entry freeranges[2];
- timestamp_add_now(TS_BEFORE_INITRAM);
-
if (CONFIG(ELOG_BOOT_COUNT) && !s3wake)
boot_count_increment();
@@ -421,6 +419,8 @@ void fsp_memory_init(bool s3wake)
/* Signal that FSP component has been loaded. */
prog_segment_loaded(hdr.image_base, hdr.image_size, SEG_FINAL);
+ timestamp_add_now(TS_BEFORE_INITRAM);
+
do_fsp_memory_init(&hdr, s3wake, &memmap);
timestamp_add_now(TS_AFTER_INITRAM);