coreboot/src/ec/google/chromeec
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 ec/google/chromeec: Pass reference of object to BBST() method 2019-07-18 16:24:44 +00:00
chip.h devicetree: Remove duplicate chip_ops declarations 2019-08-20 01:31:44 +00:00
crosec_proto.c src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
ec.c google/chromeos: Support AP watchdog flag from Chrome EC 2019-08-23 20:23:19 +00:00
ec.h google/chromeos: Support AP watchdog flag from Chrome EC 2019-08-23 20:23:19 +00:00
ec_boardid.c ec/google/chromeec: Update google_chromeec_get_board_version prototype 2018-09-20 17:15:26 +00:00
ec_commands.h ec/google/chromeec: Update ec_commands.h 2019-08-23 20:22:04 +00:00
ec_i2c.c src/ec: Drop __PRE_RAM__ and __SMM__ guards 2019-08-20 13:52:14 +00:00
ec_lpc.c src/ec: Drop __PRE_RAM__ and __SMM__ guards 2019-08-20 13:52:14 +00:00
ec_message.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ec_spi.c src/ec: Drop __PRE_RAM__ and __SMM__ guards 2019-08-20 13:52:14 +00:00
Kconfig ec/google/chromeec: Use common MEC interface 2018-10-18 15:01:40 +00:00
Makefile.inc ec/google/chromeec: Add boardid.c to verstage 2019-01-30 11:02:18 +00:00
smihandler.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
smm.h chromeec: Change the API for hostevent/wake masks to handle 64-bit 2017-11-22 19:10:26 +00:00
switches.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
vboot_storage.c google/chromeec: implement vboot_(save|retrieve)_hash API 2016-02-04 17:34:58 +01:00
vstore.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00