UPSTREAM: drivers/fsp2_0: Increment boot count for non-S3 boot
If ELOG_BOOT_COUNT is enabled and the boot is not s3 resume, then increment boot count. BUG=chrome-os-partner:55473 BRANCH=None TEST=None Change-Id: Ie14a359677cc6cf933c553632114eb43beae1a80 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/15948 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Brandon Breitenstein <brandon.breitenstein@intel.com> Reviewed-on: https://chromium-review.googlesource.com/367365 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
9c84cbdfe8
commit
39dce8716c
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue