You-Cheng Syu uploaded patch set #4 to this change.

View Change

google/chromeos: Support AP watchdog flag from Chrome EC

After ChromiumOS CL:1293132 and CL:1295890, Chrome EC can store the flag
telling if the last reboot was trigger by AP watchdog for some boards
(e.g., Kukui).

This CL adds a new function google_chromeec_get_ap_watchdog_flag(),
which can read the AP watchdog flag from Chrome EC.

Add a new Kconfig option CHROMEOS_USE_EC_WATCHDOG_FLAG, which makes
elog_handle_watchdog_tombstone() determine if watchdog reset was
triggered by the AP watchdog flag from EC instead of the tombstone in
AP.

Also update the tables of reset causes and reset flags.

BUG=b:109900671,b:118654976
BRANCH=none
TEST=test with https://review.coreboot.org/c/coreboot/+/31843

Change-Id: I7a970666a8c6da32ac1c6af8280e808fe7fc106d
Signed-off-by: You-Cheng Syu <youcheng@google.com>
---
M src/ec/google/chromeec/ec.c
M src/ec/google/chromeec/ec.h
M src/ec/google/chromeec/ec_commands.h
M src/vendorcode/google/chromeos/Kconfig
M src/vendorcode/google/chromeos/watchdog.c
5 files changed, 49 insertions(+), 21 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/31834/4

To view, visit change 31834. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7a970666a8c6da32ac1c6af8280e808fe7fc106d
Gerrit-Change-Number: 31834
Gerrit-PatchSet: 4
Gerrit-Owner: You-Cheng Syu <youcheng@google.com>
Gerrit-Reviewer: Hung-Te Lin <hungte@chromium.org>
Gerrit-Reviewer: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Gerrit-Reviewer: Nicolas Boichat <drinkcat@chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: You-Cheng Syu <youcheng@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Julius Werner <jwerner@chromium.org>
Gerrit-MessageType: newpatchset