startup: inhibit watchdogs on non-interactive autoboot abort
nv.autoboot=abort has been added as development aid to have barebox stop
at the shell prompt automatically. It makes sense to inhibit all watchdogs
in this mode, so the user can later use the shell in peace.

This also applies to fastboot aborting the shell prompt. If this
happens, watchdog will be automatically inhibited as well.
Behavior on user aborting the shell prompt via keypad or uart input
remains unchanged for backwards-compatibility.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0b944fc commit 2863db306e02b14c31dd7ea1fa4857bc3675e42c
@Ahmad Fatoum Ahmad Fatoum authored on 22 Jun 2020
Sascha Hauer committed on 23 Jun 2020
Showing 3 changed files
View
common/startup.c
View
drivers/watchdog/wd_core.c
View
include/watchdog.h