]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common, autoboot: sync functionality with Kconfig description
authorHeiko Schocher <hs@denx.de>
Wed, 7 Oct 2020 06:06:54 +0000 (08:06 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:54:53 +0000 (09:54 -0400)
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>
common/autoboot.c

index 6d78716a266a0e766b523954257c27591225cd68..74f97a0513729c1e013d86d7926604cf628d3091 100644 (file)
@@ -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;