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>
Fri, 24 May 2019 11:28:57 +0000 (04:28 -0700)
commit50b30746a9aac8785bfe6ea8077c8572b02065c2
treed71c46cc5054206f753fecc1e7573cd6ae166a4c
parent6fa4f4a42fd90631f8dc8303b17f600c085d8595
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>
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