Skip to content

Commit 0d0c551

Browse files
shimodaykwilczynski
authored andcommitted
PCI: rcar-gen4: Add R-Car Gen4 PCIe controller support for host mode
Add R-Car Gen4 PCIe controller support for host mode. This controller is based on Synopsys DesignWare PCIe. However, this particular controller has a number of vendor-specific registers, and as such, requires initialization code like mode setting and retraining and so on. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Serge Semin <[email protected]>
1 parent bad659d commit 0d0c551

File tree

3 files changed

+393
-0
lines changed

3 files changed

+393
-0
lines changed

drivers/pci/controller/dwc/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,20 @@ config PCIE_QCOM_EP
286286
to work in endpoint mode. The PCIe controller uses the DesignWare core
287287
plus Qualcomm-specific hardware wrappers.
288288

289+
config PCIE_RCAR_GEN4
290+
tristate
291+
292+
config PCIE_RCAR_GEN4_HOST
293+
tristate "Renesas R-Car Gen4 PCIe controller (host mode)"
294+
depends on ARCH_RENESAS || COMPILE_TEST
295+
depends on PCI_MSI
296+
select PCIE_DW_HOST
297+
select PCIE_RCAR_GEN4
298+
help
299+
Say Y here if you want PCIe controller (host mode) on R-Car Gen4 SoCs.
300+
To compile this driver as a module, choose M here: the module will be
301+
called pcie-rcar-gen4.ko. This uses the DesignWare core.
302+
289303
config PCIE_ROCKCHIP_DW_HOST
290304
bool "Rockchip DesignWare PCIe controller"
291305
select PCIE_DW

drivers/pci/controller/dwc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ obj-$(CONFIG_PCIE_TEGRA194) += pcie-tegra194.o
2626
obj-$(CONFIG_PCIE_UNIPHIER) += pcie-uniphier.o
2727
obj-$(CONFIG_PCIE_UNIPHIER_EP) += pcie-uniphier-ep.o
2828
obj-$(CONFIG_PCIE_VISCONTI_HOST) += pcie-visconti.o
29+
obj-$(CONFIG_PCIE_RCAR_GEN4) += pcie-rcar-gen4.o
2930

3031
# The following drivers are for devices that use the generic ACPI
3132
# pci_root.c driver but don't support standard ECAM config access.

0 commit comments

Comments
 (0)