diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-04-20 18:38:27 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-04-24 00:35:35 +0900 |
commit | fbe73dc88de4311f989b9d3c00b5cba9a2c5acb4 (patch) | |
tree | 10863d16e7fb134daa0d448c4a88fa2089c11d4b /include/configs/uniphier.h | |
parent | 045e4fcb44cd040f0ebbdee3cb54d553a7168fd3 (diff) |
ARM: uniphier: select a correct mmc device before flashing images
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>
Diffstat (limited to 'include/configs/uniphier.h')
-rw-r--r-- | include/configs/uniphier.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index a00bfd97bd..42c51fb4a2 100644 --- a/include/configs/uniphier.h +++ b/include/configs/uniphier.h @@ -186,6 +186,7 @@ "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 && " \ |