mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user