mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 01:33:37 +07:00
8bd5741e31
This add a new driver for renesas xhci which is basically a firmware loader for uPD720201 and uPD720202 w/o ROM. The xhci-pci driver will invoke this driver for loading/unloading on relevant devices. This patch adds a firmware loader for the uPD720201K8-711-BAC-A and uPD720202K8-711-BAA-A variant. Both of these chips are listed in Renesas' R19UH0078EJ0500 Rev.5.00 "User's Manual: Hardware" as devices which need the firmware loader on page 2 in order to work as they "do not support the External ROM". The "Firmware Download Sequence" is describe in chapter "7.1 FW Download Interface" R19UH0078EJ0500 Rev.5.00 page 131. The firmware "K2013080.mem" is available from a USB3.0 Host to PCIe Adapter (PP2U-E card) "Firmware download" archive. An alternative version can be sourced from Netgear's WNDR4700 GPL archives. The release notes of the PP2U-E's "Firmware Download" ver 2.0.1.3 (2012-06-15) state that the firmware is for the following devices: - uPD720201 ES 2.0 sample whose revision ID is 2. - uPD720201 ES 2.1 sample & CS sample & Mass product, ID is 3. - uPD720202 ES 2.0 sample & CS sample & Mass product, ID is 2. [vkoul: fixed comments: used macros for timeout count and delay removed renesas_fw_alive_check cleaned renesas_fw_callback removed recursion for renesas_fw_download add register defines and field names move to a separate file make fw loader as sync probe so that we execute in probe and prevent race make xhci-pci-renesas a seprate module] Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/20200514122039.300417-3-vkoul@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
93 lines
3.1 KiB
Makefile
93 lines
3.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for USB Host Controller Drivers
|
|
#
|
|
|
|
# tell define_trace.h where to find the xhci trace header
|
|
CFLAGS_xhci-trace.o := -I$(src)
|
|
|
|
fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o
|
|
fhci-y += fhci-mem.o fhci-tds.o fhci-sched.o
|
|
|
|
fhci-$(CONFIG_FHCI_DEBUG) += fhci-dbg.o
|
|
|
|
xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o
|
|
xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
|
|
xhci-hcd-y += xhci-trace.o
|
|
|
|
ifneq ($(CONFIG_USB_XHCI_DBGCAP), )
|
|
xhci-hcd-y += xhci-dbgcap.o xhci-dbgtty.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_USB_XHCI_MTK), )
|
|
xhci-hcd-y += xhci-mtk-sch.o
|
|
endif
|
|
|
|
xhci-plat-hcd-y := xhci-plat.o
|
|
ifneq ($(CONFIG_USB_XHCI_MVEBU), )
|
|
xhci-plat-hcd-y += xhci-mvebu.o
|
|
endif
|
|
ifneq ($(CONFIG_USB_XHCI_RCAR), )
|
|
xhci-plat-hcd-y += xhci-rcar.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_DEBUG_FS),)
|
|
xhci-hcd-y += xhci-debugfs.o
|
|
endif
|
|
|
|
obj-$(CONFIG_USB_PCI) += pci-quirks.o
|
|
|
|
obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
|
|
obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o
|
|
obj-$(CONFIG_USB_EHCI_HCD_PLATFORM) += ehci-platform.o
|
|
obj-$(CONFIG_USB_EHCI_MXC) += ehci-mxc.o
|
|
obj-$(CONFIG_USB_EHCI_HCD_NPCM7XX) += ehci-npcm7xx.o
|
|
obj-$(CONFIG_USB_EHCI_HCD_OMAP) += ehci-omap.o
|
|
obj-$(CONFIG_USB_EHCI_HCD_ORION) += ehci-orion.o
|
|
obj-$(CONFIG_USB_EHCI_HCD_SPEAR) += ehci-spear.o
|
|
obj-$(CONFIG_USB_EHCI_HCD_STI) += ehci-st.o
|
|
obj-$(CONFIG_USB_EHCI_EXYNOS) += ehci-exynos.o
|
|
obj-$(CONFIG_USB_EHCI_HCD_AT91) += ehci-atmel.o
|
|
obj-$(CONFIG_USB_EHCI_TEGRA) += ehci-tegra.o
|
|
obj-$(CONFIG_USB_EHCI_BRCMSTB) += ehci-brcm.o
|
|
|
|
obj-$(CONFIG_USB_OXU210HP_HCD) += oxu210hp-hcd.o
|
|
obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
|
|
obj-$(CONFIG_USB_ISP1362_HCD) += isp1362-hcd.o
|
|
|
|
obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_PCI) += ohci-pci.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_PLATFORM) += ohci-platform.o
|
|
obj-$(CONFIG_USB_OHCI_EXYNOS) += ohci-exynos.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_OMAP1) += ohci-omap.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_SPEAR) += ohci-spear.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_STI) += ohci-st.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_AT91) += ohci-at91.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_S3C2410) += ohci-s3c2410.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_LPC32XX) += ohci-nxp.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_PXA27X) += ohci-pxa27x.o
|
|
obj-$(CONFIG_USB_OHCI_HCD_DAVINCI) += ohci-da8xx.o
|
|
|
|
obj-$(CONFIG_USB_UHCI_HCD) += uhci-hcd.o
|
|
obj-$(CONFIG_USB_FHCI_HCD) += fhci.o
|
|
obj-$(CONFIG_USB_XHCI_HCD) += xhci-hcd.o
|
|
obj-$(CONFIG_USB_XHCI_PCI) += xhci-pci.o
|
|
obj-$(CONFIG_USB_XHCI_PCI_RENESAS) += xhci-pci-renesas.o
|
|
obj-$(CONFIG_USB_XHCI_PLATFORM) += xhci-plat-hcd.o
|
|
obj-$(CONFIG_USB_XHCI_HISTB) += xhci-histb.o
|
|
obj-$(CONFIG_USB_XHCI_MTK) += xhci-mtk.o
|
|
obj-$(CONFIG_USB_XHCI_TEGRA) += xhci-tegra.o
|
|
obj-$(CONFIG_USB_SL811_HCD) += sl811-hcd.o
|
|
obj-$(CONFIG_USB_SL811_CS) += sl811_cs.o
|
|
obj-$(CONFIG_USB_U132_HCD) += u132-hcd.o
|
|
obj-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
|
|
obj-$(CONFIG_USB_IMX21_HCD) += imx21-hcd.o
|
|
obj-$(CONFIG_USB_FSL_USB2) += fsl-mph-dr-of.o
|
|
obj-$(CONFIG_USB_EHCI_FSL) += fsl-mph-dr-of.o
|
|
obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o
|
|
obj-$(CONFIG_USB_EHCI_MV) += ehci-mv.o
|
|
obj-$(CONFIG_USB_HCD_BCMA) += bcma-hcd.o
|
|
obj-$(CONFIG_USB_HCD_SSB) += ssb-hcd.o
|
|
obj-$(CONFIG_USB_FOTG210_HCD) += fotg210-hcd.o
|
|
obj-$(CONFIG_USB_MAX3421_HCD) += max3421-hcd.o
|