summaryrefslogtreecommitdiff
path: root/include/environment
diff options
context:
space:
mode:
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>2020-08-24 21:00:32 +0300
committerLokesh Vutla <lokeshvutla@ti.com>2020-09-15 16:21:53 +0300
commit42b7aebe4ab47d7d981572d15d9bba999007b2ac (patch)
treeada6f5f577042968c61b9db259a6f31046bece26 /include/environment
parenta0549cc95222f62e41858df61702a710aa8a9bca (diff)
downloadu-boot-42b7aebe4ab47d7d981572d15d9bba999007b2ac.tar.xz
ti: Use devtype=mmc instead of setenv devtype mmc
If devtype variable is setted via setenv, then the following devtype=X style is ignored. Currently, many u-boot commands use devtype variable in the latter manner: mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi Use devtype=mmc instead of setenv devtype mmc to avoid bugs with booting from another devtype. Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
Diffstat (limited to 'include/environment')
-rw-r--r--include/environment/ti/mmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/environment/ti/mmc.h b/include/environment/ti/mmc.h
index 1c8e49a8b3..b86c8dc7a4 100644
--- a/include/environment/ti/mmc.h
+++ b/include/environment/ti/mmc.h
@@ -57,7 +57,7 @@
"fi;\0" \
"mmcboot=mmc dev ${mmcdev}; " \
"devnum=${mmcdev}; " \
- "setenv devtype mmc; " \
+ "devtype=mmc; " \
"if mmc rescan; then " \
"echo SD/MMC found on device ${mmcdev};" \
"if run loadimage; then " \