diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2021-11-12 14:39:11 +0100 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2021-11-12 14:39:11 +0100 |
commit | eee9c9f11383018bbe25729e6b56fd40effbf9a7 (patch) | |
tree | b40d12c809ba8aeb0eab39e619363067081c2090 | |
parent | 0ca5756490a121ae33e8b0e9e87e3ba34e039581 (diff) |
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 <philippe.schenker@toradex.com>
-rw-r--r-- | board/toradex/colibri_imx7/colibri_imx7.c | 5 |
1 files changed, 4 insertions, 1 deletions
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()) { |