Skip to content

Commit

Permalink
bootm: add option disable wdt on boot
Browse files Browse the repository at this point in the history
To disable do:
setenv wdt_disable true; saveenv
  • Loading branch information
mantas-p committed Nov 10, 2020
1 parent 38f7066 commit 7497e65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/lib/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
"...\n", (ulong) kernel_entry);
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
#ifdef CONFIG_QCOM_WATCHDOG
qcom_watchdog_init();
char *wdt = getenv("wdt_disable");
if (!wdt || strcmp(wdt, "true") != 0) {
qcom_watchdog_init();
}
#endif
announce_and_cleanup(fake);

Expand Down

0 comments on commit 7497e65

Please sign in to comment.