]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
toradex: configblock: fix interactive mode it handling
authorDenys Drozdov <denys.drozdov@toradex.com>
Wed, 6 Oct 2021 16:55:33 +0000 (18:55 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 20 Oct 2021 15:49:59 +0000 (17:49 +0200)
Restore "Is the module an IT version? [y/N]" for "cfgblock create"
interactive mode command, which was leading to invalid detection
of 0051 Colibri iMX8DX 1GB WB module;

Fixes: a5b5ad4d859b ("toradex: tdx-cfg-clock: add new i.mx 8m mini/plus skus")
Related-to: ELB-3482
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/common/tdx-cfg-block.c

index fe47cddad8034f0470789aada3d0fc873d19d3df..ad267812267739999b7aebecda58ae56e3416458 100644 (file)
@@ -368,7 +368,10 @@ static int get_cfgblock_interactive(void)
        if (cpu_is_pxa27x())
                sprintf(message, "Is the module the 312 MHz version? [y/N] ");
        else
-               it = 'y';
+               sprintf(message, "Is the module an IT version? [y/N] ");
+
+       len = cli_readline(message);
+       it = console_buffer[0];
 
 #if defined(CONFIG_TARGET_APALIS_IMX8) || \
                defined(CONFIG_TARGET_APALIS_IMX8X) || \