]> git.baikalelectronics.ru Git - uboot.git/commit
spl: imx6: Let spl_boot_device return USDHC1 or USDHC2
authorAdam Ford <aford173@gmail.com>
Thu, 23 May 2019 19:11:30 +0000 (14:11 -0500)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:53:50 +0000 (14:53 +0200)
commit52a9ad06869b3665e2741e75e887c51d008a1796
tree645821df01cae16458e9b1441ca718ddb57a9c68
parent976d63d14cdd9e76f272794bb93490a96692ad0d
spl: imx6: Let spl_boot_device return USDHC1 or USDHC2

Currently, when the spl_boot_device checks the boot device, it
will only return MMC1 when it's either sd or eMMC regardless
of whether or not it's MMC1 or MMC2.  This is a problem when
booting from MMC2 if MMC isn't being manually configured like in
the DM_SPL case with SPL_OF_CONTROL.

This patch will check the register and return either MMC1 or MMC2.

Signed-off-by: Adam Ford <aford173@gmail.com>
arch/arm/mach-imx/spl.c