Skip to contentSkip to conversation

usb: xhci: Add Renesas R-Car xHCI driver

PATCH Superseded Marek Vasut 1 participant 2 messages Oct 15, 2017

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: xhci: Add Renesas R-Car xHCI driver

Add firmware V3, firmware loader and XHCI glue for the Renesas R-Car Gen3 SoCs XHCI controller. Thus far only the R-Car Gen3 R8A7795 ES2.0+ and R8A7796 are supported.

Cc Nobuhiro Iwamatsu <[email protected]>
Cc Bin Meng <[email protected]>

---
V2: Drop GD access
Add xhci_deregister

---
 Licenses/r8a779x_usb3.txt                    |  26 ++
 drivers/usb/host/Kconfig                     |   8 +
 drivers/usb/host/Makefile                    |   1 +
 drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h | 643 +++++++++++++++++++++++++++
 drivers/usb/host/xhci-rcar.c                 | 159 +++++++
 5 files changed, 837 insertions(+)
 create mode 100644 Licenses/r8a779x_usb3.txt
 create mode 100644 drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h
 create mode 100644 drivers/usb/host/xhci-rcar.c
Licenses/r8a779x_usb3.txt new file +26 -0
new file mode 100644
index 0000000000..e2afcc9e81
@@ -0,0 +1,26 @@
+Copyright (c) 2014, Renesas Electronics Corporation
+All rights reserved.
+
+Redistribution and use in binary form, without modification, are permitted
+provided that the following conditions are met:
+
+1. Redistribution in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+2. The name of Renesas Electronics Corporation may not be used to endorse or
+   promote products derived from this software without specific prior written
+   permission.
+3. Reverse engineering, decompilation, or disassembly of this software is
+   not permitted.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS ELECTRONICS CORPORATION DISCLAIMS
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND
+NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL RENESAS ELECTRONICS
+CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
drivers/usb/host/Kconfig +8 -0
index f5f19ed775..cad9af6977 100644
@@ -47,6 +47,14 @@ config USB_XHCI_ROCKCHIP
 	help
 	  Enables support for the on-chip xHCI controller on Rockchip SoCs.
 
+config USB_XHCI_RCAR
+	bool "Renesas RCar USB 3.0 support"
+	default y
+	depends on ARCH_RMOBILE
+	help
+	  Choose this option to add support for USB 3.0 driver on Renesas
+	  RCar Gen3 SoCs.
+
 config USB_XHCI_STI
 	bool "Support for STMicroelectronics STiH407 family on-chip xHCI USB controller"
 	depends on ARCH_STI
drivers/usb/host/Makefile +1 -0
index 83903fcf99..79df888fce 100644
@@ -59,6 +59,7 @@ obj-$(CONFIG_USB_XHCI_FSL) += xhci-fsl.o
 obj-$(CONFIG_USB_XHCI_MVEBU) += xhci-mvebu.o
 obj-$(CONFIG_USB_XHCI_OMAP) += xhci-omap.o
 obj-$(CONFIG_USB_XHCI_PCI) += xhci-pci.o
+obj-$(CONFIG_USB_XHCI_RCAR) += xhci-rcar.o
 obj-$(CONFIG_USB_XHCI_STI) += dwc3-sti-glue.o
 
 # designware
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +643 -0

643 lines not on this page · raw message

drivers/usb/host/xhci-rcar.c new file +159 -0

159 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 usb: xhci: Add Renesas R-Car xHCI driver

Quoted 10 lines · Marek Vasut

Add firmware V3, firmware loader and XHCI glue for the Renesas R-Car Gen3 SoCs XHCI controller. Thus far only the R-Car Gen3 R8A7795 ES2.0+ and R8A7796 are supported.

Cc Nobuhiro Iwamatsu <[email protected]>
Cc Bin Meng <[email protected]>

---
V2: Drop GD access
Add xhci_deregister

Please ignore, V3 on the way

Signature · 2 lines
Best regards,
Marek Vasut