From ecd98091c1d2571c0e95f6d3965882fa403d7101 Mon Sep 17 00:00:00 2001 From: Dino Li Date: Wed, 17 Aug 2016 13:58:15 +0800 Subject: [PATCH] it83xx: add reset cause of reset pin If reset was caused by reset pin, we need this reset cause for next sequence(recovery key). Signed-off-by: Dino Li BRANCH=none BUG=none TEST=To assert EC WRST pin and we will get the reset cause for both power-on and reset-pin. Change-Id: I0361091680a148df07cbbb8f4e53635dbf48fdee Reviewed-on: https://chromium-review.googlesource.com/371798 Commit-Ready: Dino Li Tested-by: Dino Li Reviewed-by: Randall Spangler --- chip/it83xx/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c index cc98fb4fd5..f4ce1d6be9 100644 --- a/chip/it83xx/system.c +++ b/chip/it83xx/system.c @@ -74,7 +74,7 @@ static void check_reset_cause(void) } if (raw_reset_cause2 & 0x04) - flags |= RESET_FLAG_POWER_ON; + flags |= RESET_FLAG_RESET_PIN; /* Restore then clear saved reset flags. */ if (!(flags & RESET_FLAG_POWER_ON)) {