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 <dino.li@ite.com.tw>

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 <Dino.Li@ite.com.tw>
Tested-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Dino Li
2016-08-17 13:58:15 +08:00
committed by chrome-bot
parent 8d8f2401a2
commit ecd98091c1

View File

@@ -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)) {