summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Bidnichenko <oleksii.bidnichenko@toradex.com>2021-09-06 15:19:37 +0300
committerOleksii Bidnichenko <oleksii.bidnichenko@toradex.com>2021-09-06 16:19:34 +0000
commitac9771a867e83e37dd2049c5c9075058746f6a82 (patch)
treeae7e2f983a25f8d04b56fe26fbe373e5ff7fe817
parentcd02128056d52256f994414345f2ae84c4ce7d14 (diff)
cfgblock: extend get_cfgblock_interactive
- Correct the hardware product id for the Colibri IMX7D (eMMC) module. - Exclude IT check since Colibri IMX7D (eMMC) is always IT. Related-to: ELB-4076 Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
-rw-r--r--board/toradex/common/tdx-cfg-block.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index 28689c298c..b210019106 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -371,7 +371,8 @@ static int get_cfgblock_interactive(void)
if (cpu_is_pxa27x())
sprintf(message, "Is the module the 312 MHz version? [y/N] ");
-#if !(defined(CONFIG_TARGET_VERDIN_IMX8MM) || defined(CONFIG_TARGET_VERDIN_IMX8MN) || defined(CONFIG_TARGET_COLIBRI_IMX6ULL_EMMC))
+#if !(defined(CONFIG_TARGET_VERDIN_IMX8MM) || defined(CONFIG_TARGET_VERDIN_IMX8MN) \
+ || defined(CONFIG_TARGET_COLIBRI_IMX6ULL_EMMC) || defined(CONFIG_TARGET_COLIBRI_IMX7_EMMC))
else
sprintf(message, "Is the module an IT version? [y/N] ");
@@ -437,7 +438,11 @@ static int get_cfgblock_interactive(void)
#endif
#endif
} else if (!strcmp("imx7d", soc))
+#if defined(CONFIG_TARGET_COLIBRI_IMX7_EMMC)
+ tdx_hw_tag.prodid = COLIBRI_IMX7D_EMMC;
+#else
tdx_hw_tag.prodid = COLIBRI_IMX7D;
+#endif
else if (!strcmp("imx7s", soc))
tdx_hw_tag.prodid = COLIBRI_IMX7S;
else if (is_cpu_type(MXC_CPU_IMX8MM))