diff mbox series

ARM: uniphier: select a correct mmc device before flashing images

Message ID 1524217107-2965-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit fbe73dc88de4311f989b9d3c00b5cba9a2c5acb4
Headers show
Series ARM: uniphier: select a correct mmc device before flashing images | expand

Commit Message

Masahiro Yamada April 20, 2018, 9:38 a.m. UTC
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 | 1 +
 1 file changed, 1 insertion(+)

Comments

Masahiro Yamada April 23, 2018, 4:06 p.m. UTC | #1
2018-04-20 18:38 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> 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>
> ---


Applied to u-boot-uniphier.
diff mbox series

Patch

diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h
index 5d4e86d..f359d85 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 && " \