xref: /openbmc/linux/drivers/pci/controller/Makefile (revision 35f752be)
1# SPDX-License-Identifier: GPL-2.0
2obj-$(CONFIG_PCIE_CADENCE) += cadence/
3obj-$(CONFIG_PCI_FTPCI100) += pci-ftpci100.o
4obj-$(CONFIG_PCI_HYPERV) += pci-hyperv.o
5obj-$(CONFIG_PCI_HYPERV_INTERFACE) += pci-hyperv-intf.o
6obj-$(CONFIG_PCI_MVEBU) += pci-mvebu.o
7obj-$(CONFIG_PCI_AARDVARK) += pci-aardvark.o
8obj-$(CONFIG_PCI_TEGRA) += pci-tegra.o
9obj-$(CONFIG_PCI_RCAR_GEN2) += pci-rcar-gen2.o
10obj-$(CONFIG_PCIE_RCAR_HOST) += pcie-rcar.o pcie-rcar-host.o
11obj-$(CONFIG_PCIE_RCAR_EP) += pcie-rcar.o pcie-rcar-ep.o
12obj-$(CONFIG_PCI_HOST_COMMON) += pci-host-common.o
13obj-$(CONFIG_PCI_HOST_GENERIC) += pci-host-generic.o
14obj-$(CONFIG_PCI_HOST_THUNDER_ECAM) += pci-thunder-ecam.o
15obj-$(CONFIG_PCI_HOST_THUNDER_PEM) += pci-thunder-pem.o
16obj-$(CONFIG_PCIE_XILINX) += pcie-xilinx.o
17obj-$(CONFIG_PCIE_XILINX_NWL) += pcie-xilinx-nwl.o
18obj-$(CONFIG_PCIE_XILINX_CPM) += pcie-xilinx-cpm.o
19obj-$(CONFIG_PCI_V3_SEMI) += pci-v3-semi.o
20obj-$(CONFIG_PCI_XGENE) += pci-xgene.o
21obj-$(CONFIG_PCI_XGENE_MSI) += pci-xgene-msi.o
22obj-$(CONFIG_PCI_VERSATILE) += pci-versatile.o
23obj-$(CONFIG_PCIE_IPROC) += pcie-iproc.o
24obj-$(CONFIG_PCIE_IPROC_MSI) += pcie-iproc-msi.o
25obj-$(CONFIG_PCIE_IPROC_PLATFORM) += pcie-iproc-platform.o
26obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-iproc-bcma.o
27obj-$(CONFIG_PCIE_ALTERA) += pcie-altera.o
28obj-$(CONFIG_PCIE_ALTERA_MSI) += pcie-altera-msi.o
29obj-$(CONFIG_PCIE_ROCKCHIP) += pcie-rockchip.o
30obj-$(CONFIG_PCIE_ROCKCHIP_EP) += pcie-rockchip-ep.o
31obj-$(CONFIG_PCIE_ROCKCHIP_HOST) += pcie-rockchip-host.o
32obj-$(CONFIG_PCIE_MEDIATEK) += pcie-mediatek.o
33obj-$(CONFIG_PCIE_MEDIATEK_GEN3) += pcie-mediatek-gen3.o
34obj-$(CONFIG_PCIE_MICROCHIP_HOST) += pcie-microchip-host.o
35obj-$(CONFIG_VMD) += vmd.o
36obj-$(CONFIG_PCIE_BRCMSTB) += pcie-brcmstb.o
37obj-$(CONFIG_PCI_LOONGSON) += pci-loongson.o
38obj-$(CONFIG_PCIE_HISI_ERR) += pcie-hisi-error.o
39# pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW
40obj-y				+= dwc/
41obj-y				+= mobiveil/
42
43
44# The following drivers are for devices that use the generic ACPI
45# pci_root.c driver but don't support standard ECAM config access.
46# They contain MCFG quirks to replace the generic ECAM accessors with
47# device-specific ones that are shared with the DT driver.
48
49# The ACPI driver is generic and should not require driver-specific
50# config options to be enabled, so we always build these drivers on
51# ARM64 and use internal ifdefs to only build the pieces we need
52# depending on whether ACPI, the DT driver, or both are enabled.
53
54ifdef CONFIG_ACPI
55ifdef CONFIG_PCI_QUIRKS
56obj-$(CONFIG_ARM64) += pci-thunder-ecam.o
57obj-$(CONFIG_ARM64) += pci-thunder-pem.o
58obj-$(CONFIG_ARM64) += pci-xgene.o
59endif
60endif
61