aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHeiko Schocher2020-10-07 08:06:54 +0200
committerTom Rini2020-10-22 09:54:53 -0400
commit6ebe6b387f63a17cecc91fa05284b577fe0d45f1 (patch)
tree730bb2ca095b384072400bf7365e484dab942ea3 /common
parent898a0849536381c6a1fb8d6d8ff7d46d9f6769eb (diff)
common, autoboot: sync functionality with Kconfig description
add back again special case: -2 autoboot with no delay and no check for abort as described in Kconfig option, see common/Kconfig help text for option BOOTDELAY. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/autoboot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/autoboot.c b/common/autoboot.c
index 6d78716a266..74f97a05137 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -363,7 +363,8 @@ void autoboot_command(const char *s)
{
debug("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
- if (stored_bootdelay != -1 && s && !abortboot(stored_bootdelay)) {
+ if (s && (stored_bootdelay == -2 ||
+ (stored_bootdelay != -1 && !abortboot(stored_bootdelay)))) {
bool lock;
int prev;