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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr/app/ec/main.c b/zephyr/app/ec/main.c
index d0bf87475d..e297dae2d9 100644
--- a/zephyr/app/ec/main.c
+++ b/zephyr/app/ec/main.c
@@ -42,6 +42,10 @@ void main(void)
}
}
+ if (IS_ENABLED(CONFIG_PLATFORM_EC_WATCHDOG)) {
+ watchdog_init();
+ }
+
if (IS_ENABLED(CONFIG_PLATFORM_EC_VBOOT)) {
/*
* For RO, it behaves as follows:
@@ -52,10 +56,6 @@ void main(void)
vboot_main();
}
- if (IS_ENABLED(CONFIG_PLATFORM_EC_WATCHDOG)) {
- watchdog_init();
- }
-
/* Call init hooks before main tasks start */
if (IS_ENABLED(CONFIG_PLATFORM_EC_HOOKS)) {
hook_notify(HOOK_INIT);