diff options
author | Denys Drozdov <denys.drozdov@toradex.com> | 2021-10-06 18:55:33 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-10-20 17:49:59 +0200 |
commit | ab98ebf79cd4b8beaed02bfd024f4fc290f4da00 (patch) | |
tree | 5020c0433e7762c8abbc889d80e593e81bc51576 /board/toradex/common | |
parent | c7b24915cff3c68e4b2a6149572d03efa8c09c86 (diff) | |
download | u-boot-ab98ebf79cd4b8beaed02bfd024f4fc290f4da00.tar.gz u-boot-ab98ebf79cd4b8beaed02bfd024f4fc290f4da00.tar.bz2 u-boot-ab98ebf79cd4b8beaed02bfd024f4fc290f4da00.zip |
toradex: configblock: fix interactive mode it handling
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>
Diffstat (limited to 'board/toradex/common')
-rw-r--r-- | board/toradex/common/tdx-cfg-block.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c index fe47cddad8..ad26781226 100644 --- a/board/toradex/common/tdx-cfg-block.c +++ b/board/toradex/common/tdx-cfg-block.c @@ -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) || \ |