]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: uniphier: select a correct mmc device before flashing images
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 20 Apr 2018 09:38:27 +0000 (18:38 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 23 Apr 2018 15:35:35 +0000 (00:35 +0900)
Some boards support an SD card and an eMMC device at the same time.
Since both belong to 'mmc', they are identified by a device number.
When the device number of the eMMC is 1 instead 0, "mmc dev" command
must be performed to switch the target device before flashing images.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/configs/uniphier.h

index a00bfd97bd89c18a57949f68028e683176c0aab1..42c51fb4a214751e3eb9af882f4648bd9b474961 100644 (file)
                "setexpr tmp_addr $nor_base + 0x70000 && " \
                "tftpboot $tmp_addr $third_image\0" \
        "emmcupdate=mmcsetn &&"                                 \
+               "mmc dev $mmc_first_dev &&"                     \
                "mmc partconf $mmc_first_dev 0 1 1 &&"          \
                "tftpboot $second_image && " \
                "mmc write $loadaddr 0 100 && " \