u-boot/board/toradex/colibri_imx7
Hiago De Franco 0c39564d02 toradex: colibri_imx7: Enable nand/emmc detection and set boot variant
Add detection of eMMC vs NAND devices on the Colibri iMX7
board. A GPIO is configured to detect the presence of an on-board resistor
that is configured differently based on the flash memory used. Depending on
the detection result, the 'variant' environment variable is set to '-emmc'
or cleared, indicating the type of storage device.

This enhancement improves variant detection during system initialization
through USB recovery mode, where U-Boot is loaded directly to RAM. This
allows variant detection for an accurate device tree selection.

Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
2023-10-16 08:46:01 +02:00
..
colibri_imx7.c toradex: colibri_imx7: Enable nand/emmc detection and set boot variant 2023-10-16 08:46:01 +02:00
imximage.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
Kconfig imx: Finish migration of IMX_CONFIG to Kconfig 2021-08-31 17:46:37 -04:00
MAINTAINERS MAINTAINERS: Add a number of "common" directories 2023-07-25 12:44:47 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00