summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-18 07:40:43 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-19 19:48:34 +0000
commit0889e9392c6f544127e64889df2abdfe8da2e252 (patch)
tree5d8c116c2c6c89d62e62b6d66a083a622bf06ffa /src
parenta7cac0a6818254b9cdad9cd62c2f2a0e3eebe79d (diff)
downloadcoreboot-0889e9392c6f544127e64889df2abdfe8da2e252.tar.xz
intel/fsp2_0: Add TS_BEFORE_RAMINIT and TS_AFTER_RAMINIT
Change-Id: I99dbef5d52e4fc6cde22876216052cbe998822cf Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34971 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/fsp2_0/memory_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c
index f248a58c77..0797c2e3fc 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -389,6 +389,8 @@ 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();
@@ -417,4 +419,6 @@ void fsp_memory_init(bool s3wake)
prog_segment_loaded(hdr.image_base, hdr.image_size, SEG_FINAL);
do_fsp_memory_init(&hdr, s3wake, &memmap);
+
+ timestamp_add_now(TS_AFTER_INITRAM);
}