]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: dwc3: add dual role support using OTG block
authorRoger Quadros <rogerq@ti.com>
Tue, 27 Feb 2018 11:30:19 +0000 (13:30 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 13 Mar 2018 08:47:52 +0000 (10:47 +0200)
commitf09cc79b4b338e3bb60370f5443f475d2248bcca
tree3b38c181f627d635f1816dfae276af253d958c5f
parent43bcf64e5cdc3da44363eb2be157c3c99b5d4e7c
usb: dwc3: add dual role support using OTG block

This is useful on platforms (e.g. TI AM437x) that don't
have ID available on a GPIO but do have the OTG block.

We can obtain the ID state via the OTG block and use it
for dual-role switching.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/drd.c