usb: xhci: Add Renesas R-Car xHCI driver
Subsystems (3)
PATCH v3 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.
---
V2: Drop GD access
Add xhci_deregister
V3: Use BIT() macro instead of ad-hoc mask
--- 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
@@ -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
@@ -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
@@ -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
PATCH v3 1/1 usb: xhci: Add Renesas R-Car xHCI driver
Hi Marek,
Quoted 132 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.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Bin Meng <[email protected]>---
V2: Drop GD access
Addxhci_deregister
V3: UseBIT()macro instead of ad-hoc mask--- 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.cLicenses/r8a779x_usb3.txt new file +26
-0@@ -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@@ -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_STIdrivers/usb/host/Makefile +1
-0@@ -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 # designwaredrivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +41
-0@@ -0,0 +1,643 @@ +/* +* Renesas RCar xHCI controller firmware version 3 +* +* 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. +* +* This file is generated from the firmware blob r8a779x_usb3_v3.dlmem +* with associated license file LICENCE.r8a779x_usb3, both taken from +* linux-firmware.git [1] as of: +* +* commit 7c3dfc0bb21bf717dc19a6b677a866aef8b70c35 +* Author: Yoshihiro Shimoda +* Date: Wed Aug 10 19:56:39 2016 +0900 +* +* usb: host: xhci-rcar: update firmware for R-Car H3 and M3-W +* +* To generate the content of the array below, use ie. the following command:
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h line 51
Quoted 10 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +10
-0+* $ hexdump -v -e '/4 "0x%08x, "' r8a779x_usb3_v3.dlmem | \ +* sed "s@\(.\{47\}\) @\1\n at g" +* +* [1] git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git +*/ + +#ifndef __FIRMWARE_R8A779X_USB3_V3__ +#define __FIRMWARE_R8A779X_USB3_V3__ + +static const u32 firmware_r8a779x_usb3_v3[] = {
Did you investigate the way to include this firmware image file directly via binman?
+Tom, Simon,
What's the preferred way to handle such case in U-Boot? I believe binman was created for this, but so far binman is only used in sunxi and x86.
[snip]
But I am fine either way:
Regards,
Bin
PATCH v3 1/1 usb: xhci: Add Renesas R-Car xHCI driver
Quoted 140 lines · Bin Meng
Hi Marek,
Quoted 137 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.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Bin Meng <[email protected]>---
V2: Drop GD access
Addxhci_deregister
V3: UseBIT()macro instead of ad-hoc mask--- 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.cLicenses/r8a779x_usb3.txt new file +26
-0@@ -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@@ -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_STIdrivers/usb/host/Makefile +1
-0@@ -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 # designwaredrivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +46
-0@@ -0,0 +1,643 @@ +/* +* Renesas RCar xHCI controller firmware version 3 +* +* 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. +* +* This file is generated from the firmware blob r8a779x_usb3_v3.dlmem +* with associated license file LICENCE.r8a779x_usb3, both taken from +* linux-firmware.git [1] as of: +* +* commit 7c3dfc0bb21bf717dc19a6b677a866aef8b70c35 +* Author: Yoshihiro Shimoda +* Date: Wed Aug 10 19:56:39 2016 +0900 +* +* usb: host: xhci-rcar: update firmware for R-Car H3 and M3-W +* +* To generate the content of the array below, use ie. the following command: +* $ hexdump -v -e '/4 "0x%08x, "' r8a779x_usb3_v3.dlmem | \ +* sed "s@\(.\{47\}\) @\1\n at g" +* +* [1] git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git +*/
Quoted 8 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h line 51
Quoted 5 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +5
-0+ +#ifndef __FIRMWARE_R8A779X_USB3_V3__ +#define __FIRMWARE_R8A779X_USB3_V3__ + +static const u32 firmware_r8a779x_usb3_v3[] = {Did you investigate the way to include this firmware image file directly via binman?
Yes, but binman is not what you want to use -- I discussed this with Simon and binman is for assembling the final image and attaching blobs to it. I need to access the firmware from within U-Boot.
Quoted 5 lines
+Tom, Simon,
What's the preferred way to handle such case in U-Boot? I believe binman was created for this, but so far binman is only used in sunxi and x86.
I am pushing Altera to implement a proper firmware loader by factoring out parts of the "splash" command . The "splash" command can be made into generic firmware loader quite easily, so that's what I'd like to switch to later on.
Quoted 6 lines
But I am fine either way:
Reviewed-by Bin Meng <[email protected]>Regards,
Bin
Signature · 2 lines
Best regards, Marek Vasut
PATCH v3 1/1 usb: xhci: Add Renesas R-Car xHCI driver
Hi Marek,
Quoted 150 lines · Marek Vasut
Quoted 140 lines · Bin Meng
Hi Marek,
Quoted 137 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.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Bin Meng <[email protected]>---
V2: Drop GD access
Addxhci_deregister
V3: UseBIT()macro instead of ad-hoc mask--- 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.cLicenses/r8a779x_usb3.txt new file +26
-0@@ -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@@ -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_STIdrivers/usb/host/Makefile +1
-0@@ -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 # designwaredrivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +46
-0@@ -0,0 +1,643 @@ +/* +* Renesas RCar xHCI controller firmware version 3 +* +* 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. +* +* This file is generated from the firmware blob r8a779x_usb3_v3.dlmem +* with associated license file LICENCE.r8a779x_usb3, both taken from +* linux-firmware.git [1] as of: +* +* commit 7c3dfc0bb21bf717dc19a6b677a866aef8b70c35 +* Author: Yoshihiro Shimoda +* Date: Wed Aug 10 19:56:39 2016 +0900 +* +* usb: host: xhci-rcar: update firmware for R-Car H3 and M3-W +* +* To generate the content of the array below, use ie. the following command: +* $ hexdump -v -e '/4 "0x%08x, "' r8a779x_usb3_v3.dlmem | \ +* sed "s@\(.\{47\}\) @\1\n at g" +* +* [1] git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git +*/ Quoted 8 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h line 51
Quoted 5 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +5
-0+ +#ifndef __FIRMWARE_R8A779X_USB3_V3__ +#define __FIRMWARE_R8A779X_USB3_V3__ + +static const u32 firmware_r8a779x_usb3_v3[] = {Did you investigate the way to include this firmware image file directly via binman?
Quoted 3 lines
Yes, but binman is not what you want to use -- I discussed this with Simon and binman is for assembling the final image and attaching blobs to it. I need to access the firmware from within U-Boot.
There is no problem for any blobs in the binman assembled image to be accessible from within U-Boot. x86 uses this way.
Quoted 15 lines
Quoted 6 lines
+Tom, Simon,
What's the preferred way to handle such case in U-Boot? I believe binman was created for this, but so far binman is only used in sunxi and x86.
I am pushing Altera to implement a proper firmware loader by factoring out parts of the "splash" command . The "splash" command can be made into generic firmware loader quite easily, so that's what I'd like to switch to later on.
Quoted 3 lines
But I am fine either way:
Reviewed-by Bin Meng <[email protected]>
Does this apply anywhere or should it go via the usb xhci tree?
Regards,
Bin
PATCH v3 1/1 usb: xhci: Add Renesas R-Car xHCI driver
Quoted 153 lines · Bin Meng
Hi Marek,
Quoted 150 lines · Marek Vasut
Quoted 148 lines · Bin Meng
Hi Marek,
Quoted 132 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.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Bin Meng <[email protected]>---
V2: Drop GD access
Addxhci_deregister
V3: UseBIT()macro instead of ad-hoc mask--- 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.cLicenses/r8a779x_usb3.txt new file +26
-0@@ -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@@ -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_STIdrivers/usb/host/Makefile +1
-0@@ -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 # designwaredrivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +41
-0@@ -0,0 +1,643 @@ +/* +* Renesas RCar xHCI controller firmware version 3 +* +* 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. +* +* This file is generated from the firmware blob r8a779x_usb3_v3.dlmem +* with associated license file LICENCE.r8a779x_usb3, both taken from +* linux-firmware.git [1] as of: +* +* commit 7c3dfc0bb21bf717dc19a6b677a866aef8b70c35 +* Author: Yoshihiro Shimoda +* Date: Wed Aug 10 19:56:39 2016 +0900 +* +* usb: host: xhci-rcar: update firmware for R-Car H3 and M3-W +* +* To generate the content of the array below, use ie. the following command: drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h line 51
Quoted 10 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +10
-0+* $ hexdump -v -e '/4 "0x%08x, "' r8a779x_usb3_v3.dlmem | \ +* sed "s@\(.\{47\}\) @\1\n at g" +* +* [1] git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git +*/ + +#ifndef __FIRMWARE_R8A779X_USB3_V3__ +#define __FIRMWARE_R8A779X_USB3_V3__ + +static const u32 firmware_r8a779x_usb3_v3[] = {Did you investigate the way to include this firmware image file directly via binman?
Quoted 6 lines
Quoted 3 lines
Yes, but binman is not what you want to use -- I discussed this with Simon and binman is for assembling the final image and attaching blobs to it. I need to access the firmware from within U-Boot.
There is no problem for any blobs in the binman assembled image to be accessible from within U-Boot. x86 uses this way.
Where ? :-)
Quoted 12 lines
Quoted 12 lines
Quoted 6 lines
+Tom, Simon,
What's the preferred way to handle such case in U-Boot? I believe binman was created for this, but so far binman is only used in sunxi and x86.
I am pushing Altera to implement a proper firmware loader by factoring out parts of the "splash" command . The "splash" command can be made into generic firmware loader quite easily, so that's what I'd like to switch to later on.
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
But I am fine either way:
Reviewed-by Bin Meng <[email protected]>Does this apply anywhere or should it go via the usb xhci tree?
I'll pick it via USB shortly.
Quoted 3 lines
Regards,
Bin
Signature · 2 lines
Best regards, Marek Vasut
PATCH v3 1/1 usb: xhci: Add Renesas R-Car xHCI driver
Hi Marek,
Quoted 154 lines · Marek Vasut
Quoted 153 lines · Bin Meng
Hi Marek,
Quoted 150 lines · Marek Vasut
Quoted 148 lines · Bin Meng
Hi Marek,
Quoted 132 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.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Bin Meng <[email protected]>---
V2: Drop GD access
Addxhci_deregister
V3: UseBIT()macro instead of ad-hoc mask--- 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.cLicenses/r8a779x_usb3.txt new file +26
-0@@ -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@@ -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_STIdrivers/usb/host/Makefile +1
-0@@ -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 # designwaredrivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +41
-0@@ -0,0 +1,643 @@ +/* +* Renesas RCar xHCI controller firmware version 3 +* +* 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. +* +* This file is generated from the firmware blob r8a779x_usb3_v3.dlmem +* with associated license file LICENCE.r8a779x_usb3, both taken from +* linux-firmware.git [1] as of: +* +* commit 7c3dfc0bb21bf717dc19a6b677a866aef8b70c35 +* Author: Yoshihiro Shimoda +* Date: Wed Aug 10 19:56:39 2016 +0900 +* +* usb: host: xhci-rcar: update firmware for R-Car H3 and M3-W +* +* To generate the content of the array below, use ie. the following command: drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h line 51
Quoted 10 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +10
-0+* $ hexdump -v -e '/4 "0x%08x, "' r8a779x_usb3_v3.dlmem | \ +* sed "s@\(.\{47\}\) @\1\n at g" +* +* [1] git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git +*/ + +#ifndef __FIRMWARE_R8A779X_USB3_V3__ +#define __FIRMWARE_R8A779X_USB3_V3__ + +static const u32 firmware_r8a779x_usb3_v3[] = {Did you investigate the way to include this firmware image file directly via binman?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Yes, but binman is not what you want to use -- I discussed this with Simon and binman is for assembling the final image and attaching blobs to it. I need to access the firmware from within U-Boot.
There is no problem for any blobs in the binman assembled image to be accessible from within U-Boot. x86 uses this way.
Where ? :-)
You can check CONFIG_FSP_ADDR in arch/x86/dts/u-boot.dtsi, which is the FSP firmware binary blob and is accessed at U-Boot runtime in find_fsp_header() in arch/x86/lib/fsp/fsp_support.c
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 7 lines
+Tom, Simon,
What's the preferred way to handle such case in U-Boot? I believe binman was created for this, but so far binman is only used in sunxi and x86.
I am pushing Altera to implement a proper firmware loader by factoring out parts of the "splash" command . The "splash" command can be made into generic firmware loader quite easily, so that's what I'd like to switch to later on.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
But I am fine either way:
Reviewed-by Bin Meng <[email protected]>Does this apply anywhere or should it go via the usb xhci tree?
I'll pick it via USB shortly.
Regards,
Bin
PATCH v3 1/1 usb: xhci: Add Renesas R-Car xHCI driver
Quoted 161 lines · Bin Meng
Hi Marek,
Quoted 158 lines · Marek Vasut
Quoted 157 lines · Bin Meng
Hi Marek,
Quoted 153 lines · Marek Vasut
Quoted 140 lines · Bin Meng
Hi Marek,
Quoted 137 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.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Bin Meng <[email protected]>---
V2: Drop GD access
Addxhci_deregister
V3: UseBIT()macro instead of ad-hoc mask--- 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.cLicenses/r8a779x_usb3.txt new file +26
-0@@ -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@@ -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_STIdrivers/usb/host/Makefile +1
-0@@ -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 # designwaredrivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +46
-0@@ -0,0 +1,643 @@ +/* +* Renesas RCar xHCI controller firmware version 3 +* +* 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. +* +* This file is generated from the firmware blob r8a779x_usb3_v3.dlmem +* with associated license file LICENCE.r8a779x_usb3, both taken from +* linux-firmware.git [1] as of: +* +* commit 7c3dfc0bb21bf717dc19a6b677a866aef8b70c35 +* Author: Yoshihiro Shimoda +* Date: Wed Aug 10 19:56:39 2016 +0900 +* +* usb: host: xhci-rcar: update firmware for R-Car H3 and M3-W +* +* To generate the content of the array below, use ie. the following command: +* $ hexdump -v -e '/4 "0x%08x, "' r8a779x_usb3_v3.dlmem | \ +* sed "s@\(.\{47\}\) @\1\n at g" +* +* [1] git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git +*/ Quoted 8 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h line 51
Quoted 5 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +5
-0+ +#ifndef __FIRMWARE_R8A779X_USB3_V3__ +#define __FIRMWARE_R8A779X_USB3_V3__ + +static const u32 firmware_r8a779x_usb3_v3[] = {Did you investigate the way to include this firmware image file directly via binman?
Yes, but binman is not what you want to use -- I discussed this with Simon and binman is for assembling the final image and attaching blobs to it. I need to access the firmware from within U-Boot.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
There is no problem for any blobs in the binman assembled image to be accessible from within U-Boot. x86 uses this way.
Where ? :-)
You can check
CONFIG_FSP_ADDRinarch/x86/dts/u-boot.dtsi, which is the FSP firmware binary blob and is accessed at U-Boot runtime infind_fsp_header()inarch/x86/lib/fsp/fsp_support.c
Thanks, I'll check that. Although, I'd rather use the FW loader that Chee (from altera) is working on.
Signature · 2 lines
Best regards, Marek Vasut
PATCH v3 1/1 usb: xhci: Add Renesas R-Car xHCI driver
In reply to Bin MengHi,
Quoted 156 lines · Bin Meng
Hi Marek,
Quoted 153 lines · Marek Vasut
Quoted 140 lines · Bin Meng
Hi Marek,
Quoted 137 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.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Bin Meng <[email protected]>---
V2: Drop GD access
Addxhci_deregister
V3: UseBIT()macro instead of ad-hoc mask--- 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.cLicenses/r8a779x_usb3.txt new file +26
-0@@ -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@@ -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_STIdrivers/usb/host/Makefile +1
-0@@ -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 # designwaredrivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +46
-0@@ -0,0 +1,643 @@ +/* +* Renesas RCar xHCI controller firmware version 3 +* +* 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. +* +* This file is generated from the firmware blob r8a779x_usb3_v3.dlmem +* with associated license file LICENCE.r8a779x_usb3, both taken from +* linux-firmware.git [1] as of: +* +* commit 7c3dfc0bb21bf717dc19a6b677a866aef8b70c35 +* Author: Yoshihiro Shimoda +* Date: Wed Aug 10 19:56:39 2016 +0900 +* +* usb: host: xhci-rcar: update firmware for R-Car H3 and M3-W +* +* To generate the content of the array below, use ie. the following command: +* $ hexdump -v -e '/4 "0x%08x, "' r8a779x_usb3_v3.dlmem | \ +* sed "s@\(.\{47\}\) @\1\n at g" +* +* [1] git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git +*/ Quoted 8 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h line 51
Quoted 5 lines
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h new file +5
-0+ +#ifndef __FIRMWARE_R8A779X_USB3_V3__ +#define __FIRMWARE_R8A779X_USB3_V3__ + +static const u32 firmware_r8a779x_usb3_v3[] = {Did you investigate the way to include this firmware image file directly via binman?
Yes, but binman is not what you want to use -- I discussed this with Simon and binman is for assembling the final image and attaching blobs to it. I need to access the firmware from within U-Boot.
I think you misunderstood what I said. My point was that binman does not currently provide a general way for U-Boot to access things at run-time.
However I recently sent a series to provide this feature, so I thin this problem is on the way to being resolved.
Quoted 3 lines
There is no problem for any blobs in the binman assembled image to be accessible from within U-Boot. x86 uses this way.
Yes, x86 uses known addresses (in CONFIG options) to find the images. With my patch series we can bake this information into SPL, and perhaps U-Boot.
Quoted 13 lines
Quoted 13 lines
Quoted 7 lines
+Tom, Simon,
What's the preferred way to handle such case in U-Boot? I believe binman was created for this, but so far binman is only used in sunxi and x86.
I am pushing Altera to implement a proper firmware loader by factoring out parts of the "splash" command . The "splash" command can be made into generic firmware loader quite easily, so that's what I'd like to switch to later on.
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
But I am fine either way:
Reviewed-by Bin Meng <[email protected]>Does this apply anywhere or should it go via the usb xhci tree?
Regards,
Bin
Regards,
Simon