OSDN Git Service

PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 20 Sep 2021 06:59:45 +0000 (12:29 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 11 Oct 2021 20:34:02 +0000 (15:34 -0500)
commitf55fee56a631032969480e4b0ee5d79734fe3c69
tree2c08aa545557459063bf9b6a972adbd87b6e08b3
parent31c9ef00258075df2f1fe5ef812cd7e9b6a1dc55
PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver

Add driver for Qualcomm PCIe Endpoint controller based on the DesignWare
core with added Qualcomm-specific wrapper around the core. The driver
support is very basic such that it supports only enumeration, PCIe
read/write, and MSI. There is no ASPM and PM support for now but these will
be added later.

The driver is capable of using the PERST# and WAKE# side-band GPIOs for
operation and written on top of the DWC PCI framework.

[bhelgaas: wrap a few long lines]
Co-developed-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
[mani: restructured the driver and fixed several bugs for upstream]
Link: https://lore.kernel.org/r/20210920065946.15090-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
drivers/pci/controller/dwc/Kconfig
drivers/pci/controller/dwc/Makefile
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-qcom-ep.c [new file with mode: 0644]