From f39692ee3e6cd63714e9ec1b3a3243636bb5ca1b Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 27 Apr 2017 14:14:05 -0500 Subject: soc/intel/apollolake: fix system reset eventlog The SRS bit which is supposed to indicate reset button press is non-functional. If it did work the system reset event it was associated with is overly specific. Therefore, use the warm reset status bit. BUG=b:37687843 Change-Id: I34dd09c03d2bca72da9a5cdf23121e0d0e621fa6 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/19484 Tested-by: build bot (Jenkins) Reviewed-by: Andrey Petrov Reviewed-by: Furquan Shaikh --- src/soc/intel/apollolake/elog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/intel/apollolake/elog.c b/src/soc/intel/apollolake/elog.c index f061188755..1e9b7d8329 100644 --- a/src/soc/intel/apollolake/elog.c +++ b/src/soc/intel/apollolake/elog.c @@ -73,7 +73,7 @@ static void pch_log_power_and_resets(struct chipset_power_state *ps) elog_add_event(ELOG_TYPE_RTC_RESET); /* System Reset */ - if (ps->gen_pmcon1 & SRS) + if (ps->gen_pmcon1 & WARM_RESET_STS) elog_add_event(ELOG_TYPE_SYSTEM_RESET); /* TCO Timeout */ -- cgit v1.2.3