MLK-23753 imx8: Implement bus active check on OTG port
authorYe Li <ye.li@nxp.com>
Fri, 27 Mar 2020 03:45:17 +0000 (20:45 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 10:25:56 +0000 (03:25 -0700)
commit58ddba14a280c3096ec9968b6705dc92b20b2a69
treef47e877c2aba307a283783a37449a5d0c1fbd79b
parent7305eab358da446155024abfa01d5fdb21690d86
MLK-23753 imx8: Implement bus active check on OTG port

Using this way to check if OTG bus active, not depending on checking
OTG register. Because checking OTG register only working for first
cold boot from ROM. While doing partition reboot, SCFW will turn off
the entire conn SS, so that way won't work.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit ae746dcdb19914b5aa10ca8e8e9e9d5de854cdeb)
(cherry picked from commit a31720a8614e929ff4aff6ed12a4b065502437c8)
arch/arm/mach-imx/imx8/cpu.c
drivers/usb/gadget/ci_udc.c
include/usb/ci_udc.h