[coreboot-gerrit] Patch set updated for coreboot: 78d8a31 baytrail: increment boot count for elog

Aaron Durbin (adurbin@google.com) gerrit at coreboot.org
Thu Feb 27 05:53:35 CET 2014


Aaron Durbin (adurbin at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4919

-gerrit

commit 78d8a3146be8f39e05fe0677001f45b24e9982fc
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Wed Oct 30 15:46:07 2013 -0500

    baytrail: increment boot count for elog
    
    The elog boot counter in cmos was not being initialized
    nor incremented. Start doing that in romstage. Since S3
    resume is not detected yet the increment is unconditional.
    
    BUG=None
    BRANCH=None
    TEST=Built and booted through depthcharge multiple times. Noted
         output such as 'Boot Count incremented to 4'.
    
    Change-Id: Ic585d4ad4b3af086e0067e28fe0f35c02979bbd2
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
    Reviewed-on: https://chromium-review.googlesource.com/174717
    Reviewed-by: Duncan Laurie <dlaurie at chromium.org>
---
 src/soc/intel/baytrail/romstage/romstage.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/soc/intel/baytrail/romstage/romstage.c b/src/soc/intel/baytrail/romstage/romstage.c
index 9752363..5af9bf4 100644
--- a/src/soc/intel/baytrail/romstage/romstage.c
+++ b/src/soc/intel/baytrail/romstage/romstage.c
@@ -28,6 +28,7 @@
 #if CONFIG_EC_GOOGLE_CHROMEEC
 #include <ec/google/chromeec/ec.h>
 #endif
+#include <elog.h>
 #include <ramstage_cache.h>
 #include <romstage_handoff.h>
 #include <timestamp.h>
@@ -145,6 +146,10 @@ void romstage_common(struct romstage_params *params)
 
 	mark_ts(params, timestamp_get());
 
+#if CONFIG_ELOG_BOOT_COUNT
+	boot_count_increment();
+#endif
+
 	/* Initialize RAM */
 	raminit(params->mrc_params, 5);
 



More information about the coreboot-gerrit mailing list