blob: e4123ba820f9e32506c3623b410791832778ae25 [file] [log] [blame]
Tom Riniaf273822016-10-26 17:15:37 -04001menuconfig PCI
2 bool "PCI support"
Tom Riniac9fa572021-05-14 21:34:32 -04003 depends on DM
Bin Meng6bf89de2017-07-30 06:23:09 -07004 default y if PPC
Tom Riniaf273822016-10-26 17:15:37 -04005 help
6 Enable support for PCI (Peripheral Interconnect Bus), a type of bus
7 used on some devices to allow the CPU to communicate with its
8 peripherals.
9
Simon Glass3232bdf2021-08-01 18:54:44 -060010 This subsystem requires driver model.
Simon Glassff3e0772015-03-05 12:25:25 -070011
Tom Riniac9fa572021-05-14 21:34:32 -040012if PCI
13
Simon Glass3ba5f742015-11-26 19:51:30 -070014config DM_PCI_COMPAT
15 bool "Enable compatible functions for PCI"
Simon Glass3ba5f742015-11-26 19:51:30 -070016 help
17 Enable compatibility functions for PCI so that old code can be used
Simon Glass3232bdf2021-08-01 18:54:44 -060018 with CONFIG_PCI enabled. This should be used as an interim
Simon Glass3ba5f742015-11-26 19:51:30 -070019 measure when porting a board to use driver model for PCI. Once the
20 board is fully supported, this option should be disabled.
21
Wilson Dinge51f2b12018-03-26 15:57:29 +080022config PCI_AARDVARK
23 bool "Enable Aardvark PCIe driver"
24 default n
Pali Rohár835d9692020-08-25 10:45:04 +020025 depends on DM_GPIO
Wilson Dinge51f2b12018-03-26 15:57:29 +080026 depends on ARMADA_3700
27 help
28 Say Y here if you want to enable PCIe controller support on
29 Armada37x0 SoCs. The PCIe controller on Armada37x0 is based on
30 Aardvark hardware.
31
Bin Mengc4762152016-10-16 23:35:18 -070032config PCI_PNP
33 bool "Enable Plug & Play support for PCI"
Bin Mengc4762152016-10-16 23:35:18 -070034 default y
35 help
36 Enable PCI memory and I/O space resource allocation and assignment.
37
Suneel Garapati4cf56ec2019-10-19 17:10:20 -070038config PCI_REGION_MULTI_ENTRY
39 bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
Suneel Garapati4cf56ec2019-10-19 17:10:20 -070040 default n
41 help
42 Enable PCI memory regions to be of multiple entry. Multiple entry
43 here refers to allow more than one count of address ranges for MEMORY
44 region type. This helps to add support for SoC's like OcteonTX/TX2
45 where every peripheral is on the PCI bus.
46
Daniel Schwierzecka45343a2021-07-15 20:53:56 +020047config PCI_MAP_SYSTEM_MEMORY
48 bool "Map local system memory from a virtual base address"
Daniel Schwierzecka45343a2021-07-15 20:53:56 +020049 depends on MIPS
50 default n
51 help
52 Say Y if base address of system memory is being used as a virtual address
53 instead of a physical address (e.g. on MIPS). The PCI core will then remap
54 the virtual memory base address to a physical address when adding the PCI
55 region of type PCI_REGION_SYS_MEMORY.
56 This should only be required on MIPS where CONFIG_SYS_SDRAM_BASE is still
57 being used as virtual address.
58
Suneel Garapatib8852dc2019-10-19 16:07:20 -070059config PCI_SRIOV
60 bool "Enable Single Root I/O Virtualization support for PCI"
Suneel Garapatib8852dc2019-10-19 16:07:20 -070061 default n
62 help
63 Say Y here if you want to enable PCI Single Root I/O Virtualization
64 capability support. This helps to enumerate Virtual Function devices
65 if available on a PCI Physical Function device and probe for
66 applicable drivers.
67
Suneel Garapatia3fac3f2019-10-23 18:40:36 -070068config PCI_ARID
69 bool "Enable Alternate Routing-ID support for PCI"
Suneel Garapatia3fac3f2019-10-23 18:40:36 -070070 default n
71 help
72 Say Y here if you want to enable Alternate Routing-ID capability
73 support on PCI devices. This helps to skip some devices in BDF
74 scan that are not present.
75
Tuomas Tynkkynen3675cb02017-09-19 23:18:06 +030076config PCIE_ECAM_GENERIC
77 bool "Generic ECAM-based PCI host controller support"
78 default n
Tuomas Tynkkynen3675cb02017-09-19 23:18:06 +030079 help
80 Say Y here if you want to enable support for generic ECAM-based
81 PCIe host controllers, such as the one emulated by QEMU.
82
Masami Hiramatsu3296d522021-06-04 18:44:06 +090083config PCIE_ECAM_SYNQUACER
84 bool "SynQuacer ECAM-based PCI host controller support"
85 default n
Masami Hiramatsu3296d522021-06-04 18:44:06 +090086 select PCI_INIT_R
87 select PCI_REGION_MULTI_ENTRY
88 help
89 Say Y here if you want to enable support for Socionext
90 SynQuacer SoC's ECAM-based PCIe host controllers.
91 Note that this must be configured when boot because Linux driver
92 expects the PCIe RC has been configured in the bootloader.
93
liu haoe3aafef2019-10-31 07:51:08 +000094config PCI_PHYTIUM
95 bool "Phytium PCIe support"
liu haoe3aafef2019-10-31 07:51:08 +000096 help
97 Say Y here if you want to enable PCIe controller support on
98 Phytium SoCs.
99
Shadi Ammouri182ba1a2016-10-27 13:29:41 +0200100config PCIE_DW_MVEBU
101 bool "Enable Armada-8K PCIe driver (DesignWare core)"
Shadi Ammouri182ba1a2016-10-27 13:29:41 +0200102 depends on ARMADA_8K
103 help
104 Say Y here if you want to enable PCIe controller support on
105 Armada-8K SoCs. The PCIe controller on Armada-8K is based on
106 DesignWare hardware.
107
Green Wan416395c2021-05-27 06:52:10 -0700108config PCIE_DW_SIFIVE
109 bool "Enable SiFive FU740 PCIe"
110 depends on CLK_SIFIVE_PRCI
111 depends on RESET_SIFIVE
112 depends on SIFIVE_GPIO
113 select PCIE_DW_COMMON
114 help
115 Say Y here if you want to enable PCIe controller support on
116 FU740.
117
Hou Zhiqiangb89e3d92019-04-24 22:33:02 +0800118config PCIE_FSL
119 bool "FSL PowerPC PCIe support"
Hou Zhiqiangb89e3d92019-04-24 22:33:02 +0800120 help
121 Say Y here if you want to enable PCIe controller support on FSL
122 PowerPC MPC85xx, MPC86xx, B series, P series and T series SoCs.
123 This driver does not support SRIO_PCIE_BOOT feature.
124
Heiko Schocherb61cbbd2019-10-14 11:29:39 +0200125config PCI_MPC85XX
126 bool "MPC85XX PowerPC PCI support"
Heiko Schocherb61cbbd2019-10-14 11:29:39 +0200127 help
128 Say Y here if you want to enable PCI controller support on FSL
129 PowerPC MPC85xx SoC.
130
Marek Vasut5f14f7d2018-01-18 14:35:35 +0100131config PCI_RCAR_GEN2
132 bool "Renesas RCar Gen2 PCIe driver"
Marek Vasut5f14f7d2018-01-18 14:35:35 +0100133 depends on RCAR_32
134 help
135 Say Y here if you want to enable PCIe controller support on
136 Renesas RCar Gen2 SoCs. The PCIe controller on RCar Gen2 is
137 also used to access EHCI USB controller on the SoC.
138
Marek Vasut776abed2018-10-16 12:49:19 +0200139config PCI_RCAR_GEN3
140 bool "Renesas RCar Gen3 PCIe driver"
Marek Vasut776abed2018-10-16 12:49:19 +0200141 depends on RCAR_GEN3
142 help
143 Say Y here if you want to enable PCIe controller support on
144 Renesas RCar Gen3 SoCs.
145
Simon Glass537849a2015-03-05 12:25:27 -0700146config PCI_SANDBOX
147 bool "Sandbox PCI support"
Simon Glass3232bdf2021-08-01 18:54:44 -0600148 depends on SANDBOX
Simon Glass537849a2015-03-05 12:25:27 -0700149 help
150 Support PCI on sandbox, as an emulated bus. This permits testing of
151 PCI feature such as bus scanning, device configuration and device
152 access. The available (emulated) devices are defined statically in
153 the device tree but the normal PCI scan technique is used to find
154 then.
155
Simon Glassfde7e182015-11-19 20:26:55 -0700156config PCI_TEGRA
157 bool "Tegra PCI support"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400158 depends on ARCH_TEGRA
Stephen Warrenbbc5b362016-08-05 16:10:34 -0600159 depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
Simon Glassfde7e182015-11-19 20:26:55 -0700160 help
161 Enable support for the PCIe controller found on some generations of
162 Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
163 3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
164 with a total of 5 lanes. Some boards require this for Ethernet
165 support to work (e.g. beaver, jetson-tk1).
166
Suneel Garapati638d7052019-10-19 17:28:01 -0700167config PCI_OCTEONTX
168 bool "OcteonTX PCI support"
169 depends on (ARCH_OCTEONTX || ARCH_OCTEONTX2)
170 help
171 Enable support for the OcteonTX/TX2 SoC family ECAM/PEM controllers.
172 These controllers provide PCI configuration access to all on-board
173 peripherals so it should only be disabled for testing purposes
174
Stefan Roeseddafdb92021-04-07 08:43:35 +0200175config PCIE_OCTEON
176 bool "MIPS Octeon PCIe support"
177 depends on ARCH_OCTEON
178 help
179 Enable support for the MIPS Octeon SoC family PCIe controllers.
180
Paul Burtona29e45a2016-09-08 07:47:31 +0100181config PCI_XILINX
182 bool "Xilinx AXI Bridge for PCI Express"
Paul Burtona29e45a2016-09-08 07:47:31 +0100183 help
184 Enable support for the Xilinx AXI bridge for PCI express, an IP block
185 which can be used on some generations of Xilinx FPGAs.
186
Minghuan Lian80afc632016-12-13 14:54:17 +0800187config PCIE_LAYERSCAPE
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800188 bool
189 default n
190
191config PCIE_LAYERSCAPE_RC
192 bool "Layerscape PCIe Root Complex mode support"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800193 select PCIE_LAYERSCAPE
Minghuan Lian80afc632016-12-13 14:54:17 +0800194 help
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800195 Enable Layerscape PCIe Root Complex mode driver support. The Layerscape
196 SoC may have one or several PCIe controllers. Each controller can be
197 configured to Root Complex mode by clearing the corresponding bit of
198 RCW[HOST_AGT_PEX].
199
Laurentiu Tudor2a5bbb12020-09-10 12:42:19 +0300200config PCI_IOMMU_EXTRA_MAPPINGS
201 bool "Support for specifying extra IOMMU mappings for PCI"
202 depends on PCIE_LAYERSCAPE_RC
203 help
204 Enable support for specifying extra IOMMU mappings for PCI
205 controllers through a special env var called "pci_iommu_extra" or
206 through a device tree property named "pci-iommu-extra" placed in
207 the node describing the PCI controller.
208 The intent is to cover SR-IOV scenarios which need mappings for VFs
209 and PCI hot-plug scenarios. More documentation can be found under:
210 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra
211
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800212config PCIE_LAYERSCAPE_EP
213 bool "Layerscape PCIe Endpoint mode support"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800214 select PCIE_LAYERSCAPE
215 select PCI_ENDPOINT
216 help
217 Enable Layerscape PCIe Endpoint mode driver support. The Layerscape
218 SoC may have one or several PCIe controllers. Each controller can be
219 configured to Endpoint mode by setting the corresponding bit of
220 RCW[HOST_AGT_PEX].
Minghuan Lian80afc632016-12-13 14:54:17 +0800221
Hou Zhiqiang07ce19f2019-04-08 10:15:46 +0000222config PCIE_LAYERSCAPE_GEN4
223 bool "Layerscape Gen4 PCIe support"
Hou Zhiqiang07ce19f2019-04-08 10:15:46 +0000224 help
225 Support PCIe Gen4 on NXP Layerscape SoCs, which may have one or
226 several PCIe controllers. The PCIe controller can work in RC or
227 EP mode according to RCW[HOST_AGT_PEX] setting.
228
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000229config FSL_PCIE_COMPAT
230 string "PCIe compatible of Kernel DT"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800231 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000232 default "fsl,ls1012a-pcie" if ARCH_LS1012A
233 default "fsl,ls1028a-pcie" if ARCH_LS1028A
234 default "fsl,ls1043a-pcie" if ARCH_LS1043A
235 default "fsl,ls1046a-pcie" if ARCH_LS1046A
236 default "fsl,ls2080a-pcie" if ARCH_LS2080A
237 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiangd1676672021-01-29 13:22:02 +0800238 default "fsl,lx2160a-pcie" if ARCH_LX2160A
239 default "fsl,ls2088a-pcie" if ARCH_LX2162A
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000240 default "fsl,ls1021a-pcie" if ARCH_LS1021A
241 help
242 This compatible is used to find pci controller node in Kernel DT
243 to complete fixup.
244
Pankaj Bansal63618e72019-11-30 13:14:10 +0000245config FSL_PCIE_EP_COMPAT
246 string "PCIe EP compatible of Kernel DT"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800247 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Hou Zhiqiangd1676672021-01-29 13:22:02 +0800248 default "fsl,lx2160a-pcie-ep" if ARCH_LX2160A
Pankaj Bansal63618e72019-11-30 13:14:10 +0000249 default "fsl,ls-pcie-ep"
250 help
251 This compatible is used to find pci controller ep node in Kernel DT
252 to complete fixup.
253
Ley Foon Tan7c458622018-04-20 21:55:45 +0800254config PCIE_INTEL_FPGA
255 bool "Intel FPGA PCIe support"
Ley Foon Tan7c458622018-04-20 21:55:45 +0800256 help
257 Say Y here if you want to enable PCIe controller support on Intel
258 FPGA, example Stratix 10.
259
Srinath Mannam48487042020-05-12 13:29:50 +0530260config PCIE_IPROC
261 bool "Iproc PCIe support"
Srinath Mannam48487042020-05-12 13:29:50 +0530262 help
263 Broadcom iProc PCIe controller driver.
264 Say Y here if you want to enable Broadcom iProc PCIe controller,
265
Stefan Roese94f453e2019-01-25 11:52:43 +0100266config PCI_MVEBU
267 bool "Enable Armada XP/38x PCIe driver"
268 depends on ARCH_MVEBU
Stefan Roese94f453e2019-01-25 11:52:43 +0100269 select MISC
270 help
271 Say Y here if you want to enable PCIe controller support on
272 Armada XP/38x SoCs.
273
Neil Armstrongdfadb942021-03-25 15:49:18 +0100274config PCIE_DW_COMMON
275 bool
Neil Armstrongdfadb942021-03-25 15:49:18 +0100276
Sekhar Nori03c396b2019-08-01 19:12:57 +0530277config PCI_KEYSTONE
278 bool "TI Keystone PCIe controller"
Neil Armstrong1a031822021-03-25 15:49:19 +0100279 select PCIE_DW_COMMON
Sekhar Nori03c396b2019-08-01 19:12:57 +0530280 help
281 Say Y here if you want to enable PCI controller support on AM654 SoC.
282
Ryder Lee42d37452019-08-22 12:26:49 +0200283config PCIE_MEDIATEK
284 bool "MediaTek PCIe Gen2 controller"
Ryder Lee42d37452019-08-22 12:26:49 +0200285 depends on ARCH_MEDIATEK
286 help
287 Say Y here if you want to enable Gen2 PCIe controller,
288 which could be found on MT7623 SoC family.
289
Neil Armstrong2c32c702021-03-25 15:49:21 +0100290config PCIE_DW_MESON
291 bool "Amlogic Meson DesignWare based PCIe controller"
292 depends on ARCH_MESON
293 select PCIE_DW_COMMON
294 help
295 Say Y here if you want to enable DW PCIe controller support on
296 Amlogic SoCs.
297
Jagan Teki99d59062020-05-09 22:26:21 +0530298config PCIE_ROCKCHIP
299 bool "Enable Rockchip PCIe driver"
Michal Simeka261fdc2020-08-19 10:44:15 +0200300 depends on ARCH_ROCKCHIP
Jagan Tekice920e02020-07-09 23:41:02 +0530301 select PHY_ROCKCHIP_PCIE
Jagan Teki99d59062020-05-09 22:26:21 +0530302 default y if ROCKCHIP_RK3399
303 help
304 Say Y here if you want to enable PCIe controller support on
305 Rockchip SoCs.
306
Shawn Lin9ddc0782021-01-15 18:01:22 +0800307config PCIE_DW_ROCKCHIP
308 bool "Rockchip DesignWare based PCIe controller"
309 depends on ARCH_ROCKCHIP
Neil Armstrongc90f3d02021-03-25 15:49:20 +0100310 select PCIE_DW_COMMON
Shawn Lin9ddc0782021-01-15 18:01:22 +0800311 select PHY_ROCKCHIP_SNPS_PCIE3
312 help
313 Say Y here if you want to enable DW PCIe controller support on
314 Rockchip SoCs.
315
Sylwester Nawrocki7b1c3f62020-05-25 13:39:58 +0200316config PCI_BRCMSTB
317 bool "Broadcom STB PCIe controller"
Sylwester Nawrocki7b1c3f62020-05-25 13:39:58 +0200318 depends on ARCH_BCM283X
319 help
320 Say Y here if you want to enable support for PCIe controller
321 on Broadcom set-top-box (STB) SoCs.
322 This driver currently supports only BCM2711 SoC and RC mode
323 of the controller.
Kunihiko Hayashie22c2562021-07-06 19:01:09 +0900324
325config PCIE_UNIPHIER
326 bool "Socionext UniPhier PCIe driver"
Kunihiko Hayashie22c2562021-07-06 19:01:09 +0900327 depends on ARCH_UNIPHIER
328 select PHY_UNIPHIER_PCIE
329 help
330 Say Y here if you want to enable PCIe controller support on
331 UniPhier SoCs.
332
Tom Riniaf273822016-10-26 17:15:37 -0400333endif