]> git.dujemihanovic.xyz Git - u-boot.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)
commit14d319b1856b86e593e01abd0a1e3c2d63b52a8a
tree645821df01cae16458e9b1441ca718ddb57a9c68
parentc548451fd97b7c30f746cc02157ed46f34d6f740
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