summaryrefslogtreecommitdiff
path: root/scripts/env2string.awk
diff options
context:
space:
mode:
authorHiago De Franco <[email protected]>2023-10-02 08:57:49 -0300
committerStefano Babic <[email protected]>2023-10-16 08:46:01 +0200
commit0c39564d02817a3a5b5b2519e73afc0969966206 (patch)
tree47ce58a9f991a82086fe0737472d586a1a0141aa /scripts/env2string.awk
parent35fe2ae244b13a06297f08cdc5785bf913708079 (diff)
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 <[email protected]> Acked-by: Marcel Ziswiler <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
Diffstat (limited to 'scripts/env2string.awk')
0 files changed, 0 insertions, 0 deletions