summaryrefslogtreecommitdiff
path: root/zephyr/app/ec/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/app/ec/main.c')
-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();
}