summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 ada1c28c1f..7aaed3c20f 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -17,6 +17,7 @@
#include <cbfs.h>
#include <cbmem.h>
#include <console/console.h>
+#include <elog.h>
#include <fsp/api.h>
#include <fsp/util.h>
#include <memrange.h>
@@ -296,6 +297,9 @@ enum fsp_status fsp_memory_init(bool s3wake)
struct memranges memmap;
struct range_entry freeranges[2];
+ if (IS_ENABLED(CONFIG_ELOG_BOOT_COUNT) && !s3wake)
+ boot_count_increment();
+
if (cbfs_boot_locate(&file_desc, name, NULL)) {
printk(BIOS_ERR, "Could not locate %s in CBFS\n", name);
return FSP_NOT_FOUND;