[coreboot-gerrit] New patch to review for coreboot: soc/intel/apollolake: Add support for logging boot count
Furquan Shaikh (furquan@google.com)
gerrit at coreboot.org
Thu Jul 28 23:30:31 CEST 2016
Furquan Shaikh (furquan at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15948
-gerrit
commit 4a9dbde6331508f334545c91c4881d4bcd5974f0
Author: Furquan Shaikh <furquan at google.com>
Date: Thu Jul 28 07:50:33 2016 -0700
soc/intel/apollolake: Add support for logging boot count
BUG=chrome-os-partner:55473
Change-Id: Ib3e77180bd640ec0424978e73034d7c99cdcba95
Signed-off-by: Furquan Shaikh <furquan at google.com>
---
src/soc/intel/apollolake/romstage.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/soc/intel/apollolake/romstage.c b/src/soc/intel/apollolake/romstage.c
index da7fcf1..1e3e6a2 100644
--- a/src/soc/intel/apollolake/romstage.c
+++ b/src/soc/intel/apollolake/romstage.c
@@ -28,6 +28,7 @@
#include <cpu/x86/mtrr.h>
#include <device/pci_def.h>
#include <device/resource.h>
+#include <elog.h>
#include <fsp/api.h>
#include <fsp/util.h>
#include <soc/iomap.h>
@@ -119,6 +120,11 @@ asmlinkage void car_stage_entry(void)
die("FSP memory init failed. Giving up.");
}
+#if IS_ENABLED(CONFIG_ELOG_BOOT_COUNT)
+ if (!s3wake)
+ boot_count_increment();
+#endif
+
if (postcar_frame_init(&pcf, 1*KiB))
die("Unable to initialize postcar frame.\n");
More information about the coreboot-gerrit
mailing list