blob: 16f52c626b4bd5101afd9c517b48dc6ca014f082 [file] [log] [blame]
Bjorn Helgaas7328c8f2018-01-26 11:45:16 -06001# SPDX-License-Identifier: GPL-2.0
2
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +05303menu "DesignWare PCI Core Support"
Rob Herringa5aa35c2018-05-11 12:15:29 -05004 depends on PCI
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +05305
6config PCIE_DW
7 bool
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +05308
9config PCIE_DW_HOST
10 bool
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053011 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +053012 select PCIE_DW
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053013
Kishon Vijay Abraham If8aed6e2017-03-27 15:15:05 +053014config PCIE_DW_EP
15 bool
16 depends on PCI_ENDPOINT
17 select PCIE_DW
18
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053019config PCI_DRA7XX
Niklas Casselb0528352017-12-20 00:29:28 +010020 bool
Kishon Vijay Abraham I608793e2017-03-27 15:15:08 +053021
22config PCI_DRA7XX_HOST
Niklas Casselb0528352017-12-20 00:29:28 +010023 bool "TI DRA7xx PCIe controller Host Mode"
24 depends on SOC_DRA7XX || COMPILE_TEST
Rob Herringa5aa35c2018-05-11 12:15:29 -050025 depends on PCI_MSI_IRQ_DOMAIN
Niklas Casselb0528352017-12-20 00:29:28 +010026 depends on OF && HAS_IOMEM && TI_PIPE3
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +053027 select PCIE_DW_HOST
Niklas Casselb0528352017-12-20 00:29:28 +010028 select PCI_DRA7XX
Kishon Vijay Abraham I608793e2017-03-27 15:15:08 +053029 default y
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053030 help
Niklas Casselb0528352017-12-20 00:29:28 +010031 Enables support for the PCIe controller in the DRA7xx SoC to work in
32 host mode. There are two instances of PCIe controller in DRA7xx.
33 This controller can work either as EP or RC. In order to enable
34 host-specific features PCI_DRA7XX_HOST must be selected and in order
35 to enable device-specific features PCI_DRA7XX_EP must be selected.
36 This uses the DesignWare core.
Kishon Vijay Abraham I608793e2017-03-27 15:15:08 +053037
38config PCI_DRA7XX_EP
Niklas Casselb0528352017-12-20 00:29:28 +010039 bool "TI DRA7xx PCIe controller Endpoint Mode"
40 depends on SOC_DRA7XX || COMPILE_TEST
Kishon Vijay Abraham I608793e2017-03-27 15:15:08 +053041 depends on PCI_ENDPOINT
Niklas Casselb0528352017-12-20 00:29:28 +010042 depends on OF && HAS_IOMEM && TI_PIPE3
Kishon Vijay Abraham I608793e2017-03-27 15:15:08 +053043 select PCIE_DW_EP
Niklas Casselb0528352017-12-20 00:29:28 +010044 select PCI_DRA7XX
Kishon Vijay Abraham I608793e2017-03-27 15:15:08 +053045 help
Niklas Casselb0528352017-12-20 00:29:28 +010046 Enables support for the PCIe controller in the DRA7xx SoC to work in
47 endpoint mode. There are two instances of PCIe controller in DRA7xx.
48 This controller can work either as EP or RC. In order to enable
49 host-specific features PCI_DRA7XX_HOST must be selected and in order
50 to enable device-specific features PCI_DRA7XX_EP must be selected.
51 This uses the DesignWare core.
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053052
53config PCIE_DW_PLAT
Gustavo Pimentel1d906b22018-05-15 15:41:42 +010054 bool
55
56config PCIE_DW_PLAT_HOST
57 bool "Platform bus based DesignWare PCIe Controller - Host mode"
58 depends on PCI && PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +053059 select PCIE_DW_HOST
Gustavo Pimentel1d906b22018-05-15 15:41:42 +010060 select PCIE_DW_PLAT
61 default y
62 help
63 Enables support for the PCIe controller in the Designware IP to
64 work in host mode. There are two instances of PCIe controller in
65 Designware IP.
66 This controller can work either as EP or RC. In order to enable
67 host-specific features PCIE_DW_PLAT_HOST must be selected and in
68 order to enable device-specific features PCI_DW_PLAT_EP must be
69 selected.
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053070
Gustavo Pimentel1d906b22018-05-15 15:41:42 +010071config PCIE_DW_PLAT_EP
72 bool "Platform bus based DesignWare PCIe Controller - Endpoint mode"
73 depends on PCI && PCI_MSI_IRQ_DOMAIN
74 depends on PCI_ENDPOINT
75 select PCIE_DW_EP
76 select PCIE_DW_PLAT
77 help
78 Enables support for the PCIe controller in the Designware IP to
79 work in endpoint mode. There are two instances of PCIe controller
80 in Designware IP.
81 This controller can work either as EP or RC. In order to enable
82 host-specific features PCIE_DW_PLAT_HOST must be selected and in
83 order to enable device-specific features PCI_DW_PLAT_EP must be
84 selected.
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053085
86config PCI_EXYNOS
87 bool "Samsung Exynos PCIe controller"
Rob Herring51bc0852018-04-05 14:31:54 -050088 depends on SOC_EXYNOS5440 || COMPILE_TEST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053089 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +053090 select PCIE_DW_HOST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053091
92config PCI_IMX6
93 bool "Freescale i.MX6 PCIe controller"
Rob Herring51bc0852018-04-05 14:31:54 -050094 depends on SOC_IMX6Q || (ARM && COMPILE_TEST)
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053095 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +053096 select PCIE_DW_HOST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +053097
98config PCIE_SPEAR13XX
99 bool "STMicroelectronics SPEAr PCIe controller"
Rob Herring51bc0852018-04-05 14:31:54 -0500100 depends on ARCH_SPEAR13XX || COMPILE_TEST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530101 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +0530102 select PCIE_DW_HOST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530103 help
104 Say Y here if you want PCIe support on SPEAr13XX SoCs.
105
106config PCI_KEYSTONE
107 bool "TI Keystone PCIe controller"
Rob Herring51bc0852018-04-05 14:31:54 -0500108 depends on ARCH_KEYSTONE || (ARM && COMPILE_TEST)
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530109 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +0530110 select PCIE_DW_HOST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530111 help
112 Say Y here if you want to enable PCI controller support on Keystone
Bjorn Helgaas96291d52017-09-01 16:35:50 -0500113 SoCs. The PCI controller on Keystone is based on DesignWare hardware
114 and therefore the driver re-uses the DesignWare core functions to
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530115 implement the driver.
116
117config PCI_LAYERSCAPE
118 bool "Freescale Layerscape PCIe controller"
Rob Herring51bc0852018-04-05 14:31:54 -0500119 depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST)
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530120 depends on PCI_MSI_IRQ_DOMAIN
121 select MFD_SYSCON
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +0530122 select PCIE_DW_HOST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530123 help
124 Say Y here if you want PCIe controller support on Layerscape SoCs.
125
126config PCI_HISI
Rob Herring51bc0852018-04-05 14:31:54 -0500127 depends on OF && (ARM64 || COMPILE_TEST)
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530128 bool "HiSilicon Hip05 and Hip06 SoCs PCIe controllers"
129 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +0530130 select PCIE_DW_HOST
Arnd Bergmann6665f8a2017-04-03 16:17:11 -0500131 select PCI_HOST_COMMON
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530132 help
133 Say Y here if you want PCIe controller support on HiSilicon
134 Hip05 and Hip06 SoCs
135
136config PCIE_QCOM
137 bool "Qualcomm PCIe controller"
Rob Herring51bc0852018-04-05 14:31:54 -0500138 depends on OF && (ARCH_QCOM || COMPILE_TEST)
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530139 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +0530140 select PCIE_DW_HOST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530141 help
142 Say Y here to enable PCIe controller support on Qualcomm SoCs. The
Bjorn Helgaas96291d52017-09-01 16:35:50 -0500143 PCIe controller uses the DesignWare core plus Qualcomm-specific
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530144 hardware wrappers.
145
146config PCIE_ARMADA_8K
147 bool "Marvell Armada-8K PCIe controller"
Rob Herring51bc0852018-04-05 14:31:54 -0500148 depends on ARCH_MVEBU || COMPILE_TEST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530149 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +0530150 select PCIE_DW_HOST
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530151 help
152 Say Y here if you want to enable PCIe controller support on
153 Armada-8K SoCs. The PCIe controller on Armada-8K is based on
Bjorn Helgaas96291d52017-09-01 16:35:50 -0500154 DesignWare hardware and therefore the driver re-uses the
155 DesignWare core functions to implement the driver.
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530156
157config PCIE_ARTPEC6
Niklas Casselb5074ef2017-12-20 00:29:35 +0100158 bool
159
160config PCIE_ARTPEC6_HOST
161 bool "Axis ARTPEC-6 PCIe controller Host Mode"
Rob Herring51bc0852018-04-05 14:31:54 -0500162 depends on MACH_ARTPEC6 || COMPILE_TEST
Rob Herringa5aa35c2018-05-11 12:15:29 -0500163 depends on PCI_MSI_IRQ_DOMAIN
Kishon Vijay Abraham Ia0560202017-02-15 18:48:18 +0530164 select PCIE_DW_HOST
Niklas Casselb5074ef2017-12-20 00:29:35 +0100165 select PCIE_ARTPEC6
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530166 help
Niklas Casselb5074ef2017-12-20 00:29:35 +0100167 Enables support for the PCIe controller in the ARTPEC-6 SoC to work in
168 host mode. This uses the DesignWare core.
169
170config PCIE_ARTPEC6_EP
171 bool "Axis ARTPEC-6 PCIe controller Endpoint Mode"
Rob Herring51bc0852018-04-05 14:31:54 -0500172 depends on MACH_ARTPEC6 || COMPILE_TEST
Niklas Casselb5074ef2017-12-20 00:29:35 +0100173 depends on PCI_ENDPOINT
174 select PCIE_DW_EP
175 select PCIE_ARTPEC6
176 help
177 Enables support for the PCIe controller in the ARTPEC-6 SoC to work in
178 endpoint mode. This uses the DesignWare core.
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530179
Xiaowei Songfc5165d2017-06-19 18:23:48 +0800180config PCIE_KIRIN
Rob Herring51bc0852018-04-05 14:31:54 -0500181 depends on OF && (ARM64 || COMPILE_TEST)
Xiaowei Songfc5165d2017-06-19 18:23:48 +0800182 bool "HiSilicon Kirin series SoCs PCIe controllers"
Rob Herringd2fd7342018-03-07 09:42:37 -0600183 depends on PCI_MSI_IRQ_DOMAIN
Xiaowei Songfc5165d2017-06-19 18:23:48 +0800184 select PCIE_DW_HOST
185 help
186 Say Y here if you want PCIe controller support
187 on HiSilicon Kirin series SoCs.
188
Jianguo Sunbbd11bd2017-10-23 19:17:50 +0800189config PCIE_HISI_STB
190 bool "HiSilicon STB SoCs PCIe controllers"
Rob Herring51bc0852018-04-05 14:31:54 -0500191 depends on ARCH_HISI || COMPILE_TEST
Jianguo Sunbbd11bd2017-10-23 19:17:50 +0800192 depends on PCI_MSI_IRQ_DOMAIN
Jianguo Sunbbd11bd2017-10-23 19:17:50 +0800193 select PCIE_DW_HOST
194 help
195 Say Y here if you want PCIe controller support on HiSilicon STB SoCs
196
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530197endmenu