diff options
author | Denys Drozdov <denys.drozdov@toradex.com> | 2021-10-06 18:55:33 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2023-02-21 15:15:44 +0100 |
commit | 0f099a8311a60449d94bdc969d0b1bc1b83c1bfc (patch) | |
tree | 6e87645a65f10fb3293ecd819eb86c3656ef7d08 | |
parent | dd92cc9900bfb995718cc7e6c2f162a806446dbc (diff) |
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
Upstream-Status: Backport [ab98ebf79cd4b8beaed02bfd024f4fc290f4da00]
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-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 9be58d538b..918edc2d67 100644 --- a/board/toradex/common/tdx-cfg-block.c +++ b/board/toradex/common/tdx-cfg-block.c @@ -367,7 +367,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) || \ |