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>
Thu, 29 Apr 2021 07:56:09 +0000 (00:56 -0700)
commit15b1d44fd2c56e201eeb8276b6359e6c21517ad0
treeabdeb016b82d7e102eb0ee331fd5128d6df38057
parentefe5ff987833754641f218c5e0834ef5bddf9cf0
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>
(cherry picked from commit f49acb763ec7165d634a119626620c596d74e419)
(cherry picked from commit f6706d17af5ce154e325b7f221ec3d74dfca2c56)
arch/arm/mach-imx/mx6/soc.c