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>
Fri, 24 May 2019 11:28:57 +0000 (04:28 -0700)
commit4934c765c6f1c9c997a28aa79f08c14fc4e91202
treed44c1a9f85f1708ea6181943f8573e2119d99012
parentf49acb763ec7165d634a119626620c596d74e419
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>
arch/arm/include/asm/arch-mx7/imx-regs.h
arch/arm/mach-imx/mx7/soc.c