spl: mmc: use block device number, not hard-coded 0
authorEric Nelson <eric@nelint.com>
Sat, 5 Dec 2015 19:32:28 +0000 (12:32 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 14 Dec 2015 18:42:50 +0000 (13:42 -0500)
commit5915517b7bca560183d11c2260f01f3a93dd01b9
tree5e3bb0198f78faaf821b5e2cfe7865ce6e11ef39
parent653447b407ba2774eb398e7b35f80d2e25463da6
spl: mmc: use block device number, not hard-coded 0

In order to support boot from multiple devices through board_boot_order,
it's necessary to use the block number of a device.

The use of a hard-coded 0 for the device number also creates a need
to re-order block devices for use in SPL like this:
http://git.denx.de/?p=u-boot.git;a=blob;f=board/freescale/mx6slevk/mx6slevk.c;hb=HEAD#l195

Signed-off-by: Eric Nelson <eric@nelint.com>
common/spl/spl_mmc.c