]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: udc: renesas_usb3: add USB ID signal monitoring
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 30 Mar 2017 02:16:04 +0000 (11:16 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:23 +0000 (10:58 +0300)
commit77172a1f886a696bab5b4d3006ccf55ee4b1bfe5
tree6c657cfa82832ea70785e3c745414c14ac8e0fa4
parente92634cd4d37d5a2ea2fb0d55d25d50bbba1e8e0
usb: gadget: udc: renesas_usb3: add USB ID signal monitoring

This usb 3.0 peripheral controller has a register (USB_OTG_STA) to monitor
the USB ID signal. So, this patch adds the ID signal monitoring to change
the mode to host (A-Host) or peripheral (B-Peripheral).
This patch also removes hardcoded setting as B-Peripheral mode.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c