Skip to content
Commit 2383e8f4 authored by Mattijs Korpershoek's avatar Mattijs Korpershoek Committed by Marek Vasut
Browse files

usb: gadget: dwc2_udc_otg: implement pullup()



Pullup is used by the usb framework in order to do software-controlled
usb_gadget_connect() and usb_gadget_disconnect().

Implement pullup() for dwc2 using the SOFT_DISCONNECT bit in the dctl
register:
* when pullup is on, clear SOFT_DISCONNECT
* when pullup is off, set SOFT_DISCONNECT

This is especially useful when a gadget disconnection is initiated but
no board_usb_cleanup() is called.

Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
parent 66b5847b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment