coreboot/src/ec
You-Cheng Syu 85bb874c9c 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 triggered by AP watchdog for some boards
(e.g., Kukui).

This CL adds a new function google_chromeec_get_ap_watchdog_flag(),
which reads the AP watchdog flag from Chrome EC, and updates the tables
of reset causes and reset flags.

A new Kconfig option CHROMEOS_USE_EC_WATCHDOG_FLAG is added for
elog_handle_watchdog_tombstone() to determine if watchdog reset was
triggered by the AP watchdog flag from EC instead of the tombstone in
AP.

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>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31834
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2019-08-23 20:23:19 +00:00
..
acpi src/ec: Drop __PRE_RAM__ and __SMM__ guards 2019-08-20 13:52:14 +00:00
compal/ene932 src/ec: Drop __PRE_RAM__ and __SMM__ guards 2019-08-20 13:52:14 +00:00
google google/chromeos: Support AP watchdog flag from Chrome EC 2019-08-23 20:23:19 +00:00
hp/kbc1126 device/pnp: Add header files for PNP ops 2019-03-04 15:58:55 +00:00
kontron src/ec: Use 'include <stdlib.h>' when appropriate 2019-06-22 17:54:31 +00:00
lenovo ec/lenovo/h8: Add option to set F1-F12 as primary function 2019-08-21 09:26:17 +00:00
purism/librem ec/purism: Fix CPU Turbo value (PPCM) set by the EC 2018-03-26 10:25:58 +00:00
quanta src/ec: Drop __PRE_RAM__ and __SMM__ guards 2019-08-20 13:52:14 +00:00
roda/it8518 devicetree: Remove duplicate chip_ops declarations 2019-08-20 01:31:44 +00:00
smsc/mec1308 src/ec: Drop __PRE_RAM__ and __SMM__ guards 2019-08-20 13:52:14 +00:00
ec.h mainboards,ec: provide common declaration for mainboard_ec_init() 2016-09-26 23:53:12 +02:00