MLK-19869-1 imx6: Checking serial download booting
authorYe Li <ye.li@nxp.com>
Fri, 17 May 2019 09:36:57 +0000 (02:36 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:09 +0000 (00:56 -0700)
commitefe5ff987833754641f218c5e0834ef5bddf9cf0
treeaa923eab3c38149307a96c93969dcca95d567d34
parentd529973112ff281b11a97b4933096f6a6ab06345
MLK-19869-1 imx6: Checking serial download booting

We introduce a new arch-specific flag GD_FLG_ARCH_IMX_USB_BOOT to indicate if it is
USB boot. We check the USB PHY PWD bit at early of boot stage then set that flag
in global variable. So any following calling of is_boot_from_usb will return
correct value.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 50b30746a9aac8785bfe6ea8077c8572b02065c2)
(cherry picked from commit 24906eac79b62e9993b3706d3fb9ee710103aa1d)
arch/arm/include/asm/arch-mx6/imx-regs.h
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/mach-imx/mx6/soc.c