From: Chris Morgan <[email protected]>

In order to get gadget mode functional (for fastboot and ums) I need to
pull two patches in from mainline Linux. After applying these two
patches to U-Boot I am able to use ums and fastboot on my Anbernic
RG353P device for testing purposes.

Changes since V1:
 - Take the existing dwc3_core_soft_reset() function from the upstream
   Linux core.c file. This necessitates including another patch to add
   support from upstream Linux for the ip and version_type field and
   accompanying macros and functions to initialize it.
 - Specify the timeout changes made in the gadget driver as part of
   a separate patch and note the change is required.
 - Remove change in dwc3_ref_clk_period() as it was not intended to
   be included.

Chris Morgan (4):
  usb: dwc3: core: Add ip and version_type support from Linux
  usb: dwc3: Increase DWC3 controller halt timeout
  usb: dwc3: gadget: Don't send unintended link state change
  usb: dwc3: core: improve reset sequence

 drivers/usb/dwc3/core.c   | 92 +++++++++++++++++++++++++--------------
 drivers/usb/dwc3/core.h   | 60 +++++++++++++++++++++++++
 drivers/usb/dwc3/gadget.c | 20 ++++-----
 drivers/usb/dwc3/gadget.h | 14 ++++++
 4 files changed, 143 insertions(+), 43 deletions(-)

-- 
2.43.0

Reply via email to