summaryrefslogtreecommitdiff
path: root/zephyr/app
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-21 10:57:32 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-22 22:53:15 +0000
commitfcadc1fba2352a8ce904d3b575d0136f6c2e5796 (patch)
treef8617fd2151bd5383708fee0b226c591a6a3e964 /zephyr/app
parent78acb0eeac7e3e42dae13f907440d92d3e6c1aac (diff)
downloadchrome-ec-fcadc1fba2352a8ce904d3b575d0136f6c2e5796.tar.gz
zephyr: Add support for CMD_AP_RESET_LOG
Add the options for this along with the the host command that presses it into service. BUG=b:178104134 BRANCH=none TEST=build for zephyr See that host command 121 is processed without error now: 21-01-21 12:14:50.829 [7.981900 HC 0x121] Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I63b8586a6e2065cbfba8de81d3690cd2f7082c9a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643617 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/app')
-rw-r--r--zephyr/app/ec/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/app/ec/main.c b/zephyr/app/ec/main.c
index d8296e6409..2a1c6ac9b8 100644
--- a/zephyr/app/ec/main.c
+++ b/zephyr/app/ec/main.c
@@ -17,6 +17,15 @@ void main(void)
printk(" BOARD=%s\n", CONFIG_BOARD);
printk(" ACTIVE_COPY=%s\n", CONFIG_CROS_EC_ACTIVE_COPY);
+ /*
+ * Initialize reset logs. This needs to be done before any updates of
+ * reset logs because we need to verify if the values remain the same
+ * after every EC reset.
+ */
+ if (IS_ENABLED(CONFIG_CMD_AP_RESET_LOG)) {
+ init_reset_log();
+ }
+
if (IS_ENABLED(HAS_TASK_KEYSCAN)) {
keyboard_scan_init();
}