board: colibri-imx6ull: Do not leave variant variable unset
authorPhilippe Schenker <philippe.schenker@toradex.com>
Fri, 8 Apr 2022 08:07:08 +0000 (10:07 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
Toradex uses the variable variant to distinguish between modules with
eMMC, NAND with wifi and NAND without wifi.
This variable is set on every boot. Set this variable also if we have a
NAND module without wifi to prevent issues.

Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/colibri-imx6ull/colibri-imx6ull.c

index 02ab588..3244184 100644 (file)
@@ -172,10 +172,14 @@ int board_late_init(void)
        } else {
                if (is_emmc)
                        env_set("variant", "-emmc");
+               else
+                       env_set("variant", "");
        }
 #else
        if (is_emmc)
                env_set("variant", "-emmc");
+       else
+               env_set("variant", "");
 #endif
 
        /*