MLK-22357-2 sdp/fastboot: Add board_usb_gadget_port_auto() to autodetect the connecte...
authorSherry Sun <sherry.sun@nxp.com>
Fri, 2 Aug 2019 17:58:03 +0000 (13:58 -0400)
committerSherry Sun <sherry.sun@nxp.com>
Thu, 8 Aug 2019 17:12:57 +0000 (13:12 -0400)
commit2b6fd3da6fffae0732e8e91ef5c1f870ea393ca9
tree6b851cf0614f74ee475d7c2e0584453fae631dba
parent2458ddd952a6a2d2304dfe7ea34e4192cd1d5ed4
MLK-22357-2 sdp/fastboot: Add board_usb_gadget_port_auto() to autodetect the connected usb port

On imx8 platform, the usb2 and usb3 ports are both supported. Which
means we can use usb2(ci_udc_otg) and usb3(cdns3_generic_peripheral)
gadget driver to run sdp/fastboot/ums at the same time.

For sdp and the fastboot that runs automatically when uboot starts,
board_usb_gadget_port_auto() is added to autodetect usb port, this
means that we don't have to specify which USB port should be used to
download in code, now we can just connect either usb port then it
will download automatically.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
arch/arm/mach-imx/imx8/cpu.c
cmd/fastboot.c
common/spl/spl_sdp.c
drivers/usb/gadget/g_dnl.c
include/configs/imx_env.h
include/g_dnl.h