diff options
author | Mattijs Korpershoek <mkorpershoek@baylibre.com> | 2023-01-11 09:19:27 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2023-01-14 14:10:30 +0100 |
commit | 2383e8f4aec7a5087526d501478c4ba8235da2b4 (patch) | |
tree | f1746b715fc024bbc76d9197c89bc9a3e0dab193 /common/cli_getch.c | |
parent | 66b5847b30a94487b6a540736dc4b10422d71294 (diff) |
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: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'common/cli_getch.c')
0 files changed, 0 insertions, 0 deletions