From eee9c9f11383018bbe25729e6b56fd40effbf9a7 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Fri, 12 Nov 2021 14:39:11 +0100 Subject: board: colibri_imx7: Set variant variable also for non-emmc variants Toradex uses the variable variant to distinguish between eMMC or NAND modules. This variable is set on every boot. Set this variable also if we have a NAND module to prevent issues. Signed-off-by: Philippe Schenker --- board/toradex/colibri_imx7/colibri_imx7.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c index 8117db2f09..3540c102af 100644 --- a/board/toradex/colibri_imx7/colibri_imx7.c +++ b/board/toradex/colibri_imx7/colibri_imx7.c @@ -382,8 +382,11 @@ int board_late_init(void) setup_lcd(); #endif - if (is_emmc) + if (is_emmc) { env_set("variant", "-emmc"); + } else { + env_set("variant", ""); + } #ifdef CONFIG_CMD_USB_SDP if (is_boot_from_usb()) { -- cgit v1.2.3