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> |
||
---|---|---|
.. | ||
udc | ||
at91_udc.c | ||
at91_udc.h | ||
atmel_usba_udc.c | ||
atmel_usba_udc.h | ||
bcm_udc_otg_phy.c | ||
bcm_udc_otg.h | ||
ci_udc.c | ||
ci_udc.h | ||
composite.c | ||
config.c | ||
core.c | ||
dwc2_udc_otg_phy.c | ||
dwc2_udc_otg_priv.h | ||
dwc2_udc_otg_regs.h | ||
dwc2_udc_otg_xfer_dma.c | ||
dwc2_udc_otg.c | ||
ep0.c | ||
ep0.h | ||
epautoconf.c | ||
ether.c | ||
f_acm.c | ||
f_dfu.c | ||
f_dfu.h | ||
f_fastboot.c | ||
f_mass_storage.c | ||
f_rockusb.c | ||
f_sdp.c | ||
f_thor.c | ||
f_thor.h | ||
fotg210.c | ||
g_dnl.c | ||
gadget_chips.h | ||
Kconfig | ||
Makefile | ||
max3420_udc.c | ||
ndis.h | ||
rndis.c | ||
rndis.h | ||
storage_common.c | ||
u_os_desc.h | ||
usbstring.c |