MLK-19869-2 imx6: fix mmc_get_boot_dev issue when booting from USB
authorYe Li <ye.li@nxp.com>
Fri, 17 May 2019 09:41:03 +0000 (02:41 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:57 +0000 (04:28 -0700)
commitf49acb763ec7165d634a119626620c596d74e419
tree18620f3785791fe91758cb2f806c82438c6d0a36
parent50b30746a9aac8785bfe6ea8077c8572b02065c2
MLK-19869-2 imx6: fix mmc_get_boot_dev issue when booting from USB

The mmc_get_boot_dev reads from SRC SBMR register. When booting with USB
serial download, this function does not return correctly. Because SBMR won't
reflect the USB boot.

The patch adds USB boot checking to this function to fix the issue.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/mach-imx/mx6/soc.c