MLK-20510-2 mx7d: Align implementation of is_boot_from_usb with mx6
authorYe Li <ye.li@nxp.com>
Fri, 17 May 2019 09:41:50 +0000 (02:41 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:09 +0000 (00:56 -0700)
commit06c86a100cadabc9bfe75465d99d0c705958d9a2
treedd84743d1babfee604227d5904d51eb6025b6a99
parent15b1d44fd2c56e201eeb8276b6359e6c21517ad0
MLK-20510-2 mx7d: Align implementation of is_boot_from_usb with mx6

Because the ROM info on iMX7D does not set device type to USB when booting
from serial download mode, we have to use the mechanism on mx6 to implement
the is_boot_from_usb. The original implementation is checking USB controller
register, it can't work correctly after any USB functionality is run in u-boot.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 4934c765c6f1c9c997a28aa79f08c14fc4e91202)
(cherry picked from commit 4713c35ab51842524e4d53286dd2620c8dd9fdec)
arch/arm/include/asm/arch-mx7/imx-regs.h
arch/arm/mach-imx/mx7/soc.c