tao3530: Fix usage of mmc rescan
authorJarkko Nikula <jarkko.nikula@bitmer.com>
Mon, 30 Sep 2019 17:42:21 +0000 (20:42 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 17:32:39 +0000 (13:32 -0400)
Currently "bootcmd" does not work as intended but instead prints MMC usage
information and goes directly to "nandboot".

Follow what the commit 669681104daa ("configs: Fix usage of mmc rescan")
does for other boards prior to support for TechNexion TAO3530 SoM was
added.

Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
include/configs/tao3530.h

index c34e785d9e559d658937b603e772dc4f32db354f..7a54fe3e1e37fa944e204cfcd92f873cf2e29e00 100644 (file)
                "bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-       "if mmc rescan ${mmcdev}; then " \
+       "mmc dev ${mmcdev}; if mmc rescan; then " \
                "if run loadbootscript; then " \
                        "run bootscript; " \
                "else " \