diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-10-22 16:56:10 +0800 |
---|---|---|
committer | Martin Roth <martinroth@chromium.org> | 2018-10-30 22:04:39 +0000 |
commit | 64d0d5a01e608f4c51022ee17076436501afbc79 (patch) | |
tree | 416992188615dde6052920287b5dba6e1c62fd62 /util | |
parent | e935257bbb8ecc122fd0bc87dc8d95f9f88325f3 (diff) | |
download | chrome-ec-64d0d5a01e608f4c51022ee17076436501afbc79.tar.gz |
system: Remember if reset was due to AP watchdog triggering
On MT8183, when EC detects a watchdog reset, EC needs to reboot
itself in preparation for the next boot. This means that AP loses
the reset cause (as AP system reset is toggled), and, therefore,
we need to save the reset reason in the EC.
BRANCH=none
BUG=b:109900671
TEST=apshutdown, powerb, see that reset reason is: reset-pin
TEST=Use test-wd from bug. Reset reason: reset-pin ap-watchdog
Change-Id: I2e30306db5727a22de930f00dc30de40b9695bef
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1295890
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/1309037
Reviewed-by: Martin Roth <martinroth@chromium.org>
Tested-by: Martin Roth <martinroth@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c index cf98098296..e486375e54 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -766,7 +766,8 @@ int cmd_uptimeinfo(int argc, char *argv[]) "usb-resume", "rdd", "rbox", - "security" + "security", + "ap-watchdog" }; struct ec_response_uptime_info r; |