]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas_usbhs: add OTG ID signal sensing
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 15 Dec 2014 22:42:13 +0000 (01:42 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 21:36:28 +0000 (15:36 -0600)
commitb13f61e298786d2494cbcbca245fe51d79c2fda5
treed0be8a758d4d321643680beb331e91cf8dcf9bae
parent401008797bf99c41b1d1b139a1e1d7b6506273b0
usb: renesas_usbhs: add OTG ID signal sensing

On the Renesas R8A7791 SoC based boards there's MAX3355 USB OTG chip and mini-AB
USB connector corresponding to USB port 0 driven either by EHCI/OHCI or  Renesas
USBHS gadget controller. And we'd like the host/gadget  drivers to work based on
the cable type connected. An 'extcon' driver for MAX3355 has been written, so we
only need to bind  to it via device tree which I'm doing in this patch.

(Perhaps, it would also make sense to use OTG HNP when the USBHS host mode is
active and a B-cable is connected but I don't have access to host-capable USBHS,
so  wouldn't be able to test it.)

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/common.c
drivers/usb/renesas_usbhs/common.h