From aa3d1be6aaca28d3ce65df9be1319f1f79694e1e Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 30 Oct 2013 15:46:07 -0500 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/174717 Reviewed-by: Duncan Laurie --- 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 207791b6a8..ee0f987957 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 #endif +#include #include #include #include @@ -133,6 +134,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);