blob: a0bf44d38a9faa335b9af8c3954b4f646b64b65a [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
Tom Rini7856cd52021-12-12 22:12:32 -050022config SYS_PCI_64BIT
23 bool "Enable 64-bit PCI resources"
24 default y if PPC
25 help
26 Enable 64-bit PCI resource access.
27
Wilson Dinge51f2b12018-03-26 15:57:29 +080028config PCI_AARDVARK
29 bool "Enable Aardvark PCIe driver"
Pali Rohár835d9692020-08-25 10:45:04 +020030 depends on DM_GPIO
Wilson Dinge51f2b12018-03-26 15:57:29 +080031 depends on ARMADA_3700
32 help
33 Say Y here if you want to enable PCIe controller support on
34 Armada37x0 SoCs. The PCIe controller on Armada37x0 is based on
35 Aardvark hardware.
36
Bin Mengc4762152016-10-16 23:35:18 -070037config PCI_PNP
38 bool "Enable Plug & Play support for PCI"
Bin Mengc4762152016-10-16 23:35:18 -070039 default y
40 help
41 Enable PCI memory and I/O space resource allocation and assignment.
42
Mayuresh Chitale32f5e9e2023-06-03 19:32:55 +053043config SPL_PCI_PNP
Heinrich Schuchardt8d2c3112023-07-24 21:27:26 +020044 bool "Enable Plug & Play support for PCI in SPL"
45 depends on SPL_PCI
Mayuresh Chitale32f5e9e2023-06-03 19:32:55 +053046 help
47 Enable PCI memory and I/O space resource allocation and assignment.
Simon Glassdb3820a2023-07-15 21:38:55 -060048
Mayuresh Chitale32f5e9e2023-06-03 19:32:55 +053049 This is required to auto configure the enumerated devices.
50
Simon Glassdb3820a2023-07-15 21:38:55 -060051 This is normally not done in SPL, but can be enabled if devices must
52 be set up in the SPL phase. Often it is enough to manually configure
53 one device, so this option can be disabled.
54
Suneel Garapati4cf56ec2019-10-19 17:10:20 -070055config PCI_REGION_MULTI_ENTRY
56 bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
Suneel Garapati4cf56ec2019-10-19 17:10:20 -070057 help
58 Enable PCI memory regions to be of multiple entry. Multiple entry
59 here refers to allow more than one count of address ranges for MEMORY
60 region type. This helps to add support for SoC's like OcteonTX/TX2
61 where every peripheral is on the PCI bus.
62
Tom Rinie58eebb2022-06-20 08:07:50 -040063config PCI_CONFIG_HOST_BRIDGE
64 bool "Configure PCI host bridges"
65 default y if X86
66
Daniel Schwierzecka45343a2021-07-15 20:53:56 +020067config PCI_MAP_SYSTEM_MEMORY
68 bool "Map local system memory from a virtual base address"
Daniel Schwierzecka45343a2021-07-15 20:53:56 +020069 depends on MIPS
Daniel Schwierzecka45343a2021-07-15 20:53:56 +020070 help
71 Say Y if base address of system memory is being used as a virtual address
72 instead of a physical address (e.g. on MIPS). The PCI core will then remap
73 the virtual memory base address to a physical address when adding the PCI
74 region of type PCI_REGION_SYS_MEMORY.
Tom Riniaa6e94d2022-11-16 13:10:37 -050075 This should only be required on MIPS where CFG_SYS_SDRAM_BASE is still
Daniel Schwierzecka45343a2021-07-15 20:53:56 +020076 being used as virtual address.
77
Suneel Garapatib8852dc2019-10-19 16:07:20 -070078config PCI_SRIOV
79 bool "Enable Single Root I/O Virtualization support for PCI"
Suneel Garapatib8852dc2019-10-19 16:07:20 -070080 help
81 Say Y here if you want to enable PCI Single Root I/O Virtualization
82 capability support. This helps to enumerate Virtual Function devices
83 if available on a PCI Physical Function device and probe for
84 applicable drivers.
85
Andrew Scull3b920182022-04-21 16:11:16 +000086config PCI_ENHANCED_ALLOCATION
87 bool "Enable support for Enhanced Allocation of resources"
88 default y
89 help
90 Enable support for Enhanced Allocation which can be used by supported
91 devices in place of traditional BARS for allocation of resources.
92
Suneel Garapatia3fac3f2019-10-23 18:40:36 -070093config PCI_ARID
94 bool "Enable Alternate Routing-ID support for PCI"
Suneel Garapatia3fac3f2019-10-23 18:40:36 -070095 help
96 Say Y here if you want to enable Alternate Routing-ID capability
97 support on PCI devices. This helps to skip some devices in BDF
98 scan that are not present.
99
Tom Rinif27bca42022-06-20 08:07:48 -0400100config PCI_SCAN_SHOW
101 bool "Show PCI devices during startup"
102 depends on PCIE_IMX
103
Tuomas Tynkkynen3675cb02017-09-19 23:18:06 +0300104config PCIE_ECAM_GENERIC
105 bool "Generic ECAM-based PCI host controller support"
Tuomas Tynkkynen3675cb02017-09-19 23:18:06 +0300106 help
107 Say Y here if you want to enable support for generic ECAM-based
108 PCIe host controllers, such as the one emulated by QEMU.
109
Masami Hiramatsu3296d522021-06-04 18:44:06 +0900110config PCIE_ECAM_SYNQUACER
111 bool "SynQuacer ECAM-based PCI host controller support"
Masami Hiramatsu3296d522021-06-04 18:44:06 +0900112 select PCI_INIT_R
113 select PCI_REGION_MULTI_ENTRY
114 help
115 Say Y here if you want to enable support for Socionext
116 SynQuacer SoC's ECAM-based PCIe host controllers.
117 Note that this must be configured when boot because Linux driver
118 expects the PCIe RC has been configured in the bootloader.
119
Mark Kettenisbdebb002023-01-21 20:27:58 +0100120config PCIE_APPLE
121 bool "Enable Apple PCIe driver"
122 depends on ARCH_APPLE
123 imply PCI_INIT_R
124 default y
125 help
126 Say Y here if you want to enable PCIe controller support on
127 Apple SoCs.
128
Tom Rinibf2c48f2022-06-20 08:07:49 -0400129config PCI_GT64120
130 bool "GT64120 PCI support"
131 depends on MIPS
132
liu haoe3aafef2019-10-31 07:51:08 +0000133config PCI_PHYTIUM
134 bool "Phytium PCIe support"
liu haoe3aafef2019-10-31 07:51:08 +0000135 help
136 Say Y here if you want to enable PCIe controller support on
137 Phytium SoCs.
138
Shadi Ammouri182ba1a2016-10-27 13:29:41 +0200139config PCIE_DW_MVEBU
140 bool "Enable Armada-8K PCIe driver (DesignWare core)"
Shadi Ammouri182ba1a2016-10-27 13:29:41 +0200141 depends on ARMADA_8K
142 help
143 Say Y here if you want to enable PCIe controller support on
144 Armada-8K SoCs. The PCIe controller on Armada-8K is based on
145 DesignWare hardware.
146
Green Wan416395c2021-05-27 06:52:10 -0700147config PCIE_DW_SIFIVE
148 bool "Enable SiFive FU740 PCIe"
149 depends on CLK_SIFIVE_PRCI
150 depends on RESET_SIFIVE
151 depends on SIFIVE_GPIO
152 select PCIE_DW_COMMON
153 help
154 Say Y here if you want to enable PCIe controller support on
155 FU740.
156
Tom Rini6bb74fe2022-06-20 08:07:56 -0400157config SYS_FSL_PCI_VER_3_X
158 bool
159
Hou Zhiqiangb89e3d92019-04-24 22:33:02 +0800160config PCIE_FSL
161 bool "FSL PowerPC PCIe support"
Tom Rini6bb74fe2022-06-20 08:07:56 -0400162 select SYS_FSL_PCI_VER_3_X if ARCH_T2080 || ARCH_T4240
Hou Zhiqiangb89e3d92019-04-24 22:33:02 +0800163 help
164 Say Y here if you want to enable PCIe controller support on FSL
165 PowerPC MPC85xx, MPC86xx, B series, P series and T series SoCs.
166 This driver does not support SRIO_PCIE_BOOT feature.
167
Heiko Schocherb61cbbd2019-10-14 11:29:39 +0200168config PCI_MPC85XX
169 bool "MPC85XX PowerPC PCI support"
Heiko Schocherb61cbbd2019-10-14 11:29:39 +0200170 help
171 Say Y here if you want to enable PCI controller support on FSL
172 PowerPC MPC85xx SoC.
173
Tom Rini363397a2022-06-20 08:07:55 -0400174config PCI_MSC01
175 bool "MSC01 PCI support"
176 depends on TARGET_MALTA
177
Marek Vasut5f14f7d2018-01-18 14:35:35 +0100178config PCI_RCAR_GEN2
179 bool "Renesas RCar Gen2 PCIe driver"
Marek Vasut5f14f7d2018-01-18 14:35:35 +0100180 depends on RCAR_32
181 help
182 Say Y here if you want to enable PCIe controller support on
183 Renesas RCar Gen2 SoCs. The PCIe controller on RCar Gen2 is
184 also used to access EHCI USB controller on the SoC.
185
Marek Vasut776abed2018-10-16 12:49:19 +0200186config PCI_RCAR_GEN3
187 bool "Renesas RCar Gen3 PCIe driver"
Marek Vasut776abed2018-10-16 12:49:19 +0200188 depends on RCAR_GEN3
189 help
190 Say Y here if you want to enable PCIe controller support on
191 Renesas RCar Gen3 SoCs.
192
Simon Glass537849a2015-03-05 12:25:27 -0700193config PCI_SANDBOX
194 bool "Sandbox PCI support"
Simon Glass3232bdf2021-08-01 18:54:44 -0600195 depends on SANDBOX
Simon Glass537849a2015-03-05 12:25:27 -0700196 help
197 Support PCI on sandbox, as an emulated bus. This permits testing of
198 PCI feature such as bus scanning, device configuration and device
199 access. The available (emulated) devices are defined statically in
200 the device tree but the normal PCI scan technique is used to find
201 then.
202
Tom Rini31a8f552022-06-20 08:07:53 -0400203config SH7751_PCI
204 bool "SH7751 PCI controller support"
205 depends on SH
206 help
207 SuperH PCI Bridge Configuration
208
Simon Glassfde7e182015-11-19 20:26:55 -0700209config PCI_TEGRA
210 bool "Tegra PCI support"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400211 depends on ARCH_TEGRA
Stephen Warrenbbc5b362016-08-05 16:10:34 -0600212 depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
Simon Glassfde7e182015-11-19 20:26:55 -0700213 help
214 Enable support for the PCIe controller found on some generations of
215 Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
216 3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
217 with a total of 5 lanes. Some boards require this for Ethernet
218 support to work (e.g. beaver, jetson-tk1).
219
Suneel Garapati638d7052019-10-19 17:28:01 -0700220config PCI_OCTEONTX
221 bool "OcteonTX PCI support"
222 depends on (ARCH_OCTEONTX || ARCH_OCTEONTX2)
223 help
224 Enable support for the OcteonTX/TX2 SoC family ECAM/PEM controllers.
225 These controllers provide PCI configuration access to all on-board
226 peripherals so it should only be disabled for testing purposes
227
Stefan Roeseddafdb92021-04-07 08:43:35 +0200228config PCIE_OCTEON
229 bool "MIPS Octeon PCIe support"
230 depends on ARCH_OCTEON
231 help
232 Enable support for the MIPS Octeon SoC family PCIe controllers.
233
Paul Burtona29e45a2016-09-08 07:47:31 +0100234config PCI_XILINX
235 bool "Xilinx AXI Bridge for PCI Express"
Paul Burtona29e45a2016-09-08 07:47:31 +0100236 help
237 Enable support for the Xilinx AXI bridge for PCI express, an IP block
238 which can be used on some generations of Xilinx FPGAs.
239
Minghuan Lian80afc632016-12-13 14:54:17 +0800240config PCIE_LAYERSCAPE
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800241 bool
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800242
243config PCIE_LAYERSCAPE_RC
244 bool "Layerscape PCIe Root Complex mode support"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800245 select PCIE_LAYERSCAPE
Minghuan Lian80afc632016-12-13 14:54:17 +0800246 help
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800247 Enable Layerscape PCIe Root Complex mode driver support. The Layerscape
248 SoC may have one or several PCIe controllers. Each controller can be
249 configured to Root Complex mode by clearing the corresponding bit of
250 RCW[HOST_AGT_PEX].
251
Laurentiu Tudor2a5bbb12020-09-10 12:42:19 +0300252config PCI_IOMMU_EXTRA_MAPPINGS
253 bool "Support for specifying extra IOMMU mappings for PCI"
254 depends on PCIE_LAYERSCAPE_RC
255 help
256 Enable support for specifying extra IOMMU mappings for PCI
257 controllers through a special env var called "pci_iommu_extra" or
258 through a device tree property named "pci-iommu-extra" placed in
259 the node describing the PCI controller.
260 The intent is to cover SR-IOV scenarios which need mappings for VFs
261 and PCI hot-plug scenarios. More documentation can be found under:
262 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra
263
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800264config PCIE_LAYERSCAPE_EP
265 bool "Layerscape PCIe Endpoint mode support"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800266 select PCIE_LAYERSCAPE
267 select PCI_ENDPOINT
268 help
269 Enable Layerscape PCIe Endpoint mode driver support. The Layerscape
270 SoC may have one or several PCIe controllers. Each controller can be
271 configured to Endpoint mode by setting the corresponding bit of
272 RCW[HOST_AGT_PEX].
Minghuan Lian80afc632016-12-13 14:54:17 +0800273
Hou Zhiqiang07ce19f2019-04-08 10:15:46 +0000274config PCIE_LAYERSCAPE_GEN4
275 bool "Layerscape Gen4 PCIe support"
Hou Zhiqiang07ce19f2019-04-08 10:15:46 +0000276 help
277 Support PCIe Gen4 on NXP Layerscape SoCs, which may have one or
278 several PCIe controllers. The PCIe controller can work in RC or
279 EP mode according to RCW[HOST_AGT_PEX] setting.
280
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000281config FSL_PCIE_COMPAT
282 string "PCIe compatible of Kernel DT"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800283 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000284 default "fsl,ls1012a-pcie" if ARCH_LS1012A
285 default "fsl,ls1028a-pcie" if ARCH_LS1028A
286 default "fsl,ls1043a-pcie" if ARCH_LS1043A
287 default "fsl,ls1046a-pcie" if ARCH_LS1046A
288 default "fsl,ls2080a-pcie" if ARCH_LS2080A
289 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiang18c62df2021-12-07 18:13:12 +0800290 default "fsl,ls2088a-pcie" if ARCH_LX2160A || ARCH_LX2162A
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000291 default "fsl,ls1021a-pcie" if ARCH_LS1021A
292 help
293 This compatible is used to find pci controller node in Kernel DT
294 to complete fixup.
295
Pankaj Bansal63618e72019-11-30 13:14:10 +0000296config FSL_PCIE_EP_COMPAT
297 string "PCIe EP compatible of Kernel DT"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800298 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Pankaj Bansal63618e72019-11-30 13:14:10 +0000299 default "fsl,ls-pcie-ep"
300 help
301 This compatible is used to find pci controller ep node in Kernel DT
302 to complete fixup.
303
Tom Rini4547a1b2022-06-20 08:07:46 -0400304config PCIE_IMX
305 bool "i.MX PCIe support"
306 depends on ARCH_MX6
307
Ley Foon Tan7c458622018-04-20 21:55:45 +0800308config PCIE_INTEL_FPGA
309 bool "Intel FPGA PCIe support"
Ley Foon Tan7c458622018-04-20 21:55:45 +0800310 help
311 Say Y here if you want to enable PCIe controller support on Intel
312 FPGA, example Stratix 10.
313
Srinath Mannam48487042020-05-12 13:29:50 +0530314config PCIE_IPROC
315 bool "Iproc PCIe support"
Srinath Mannam48487042020-05-12 13:29:50 +0530316 help
317 Broadcom iProc PCIe controller driver.
318 Say Y here if you want to enable Broadcom iProc PCIe controller,
319
Stefan Roese94f453e2019-01-25 11:52:43 +0100320config PCI_MVEBU
Pali Rohár43640712022-01-13 14:28:04 +0100321 bool "Enable Kirkwood / Armada 370/XP/375/38x PCIe driver"
322 depends on (ARCH_KIRKWOOD || ARCH_MVEBU)
Stefan Roese94f453e2019-01-25 11:52:43 +0100323 select MISC
Pali Rohár94c30f92021-12-21 12:20:19 +0100324 select DM_RESET
Pali Rohárca3756c2022-08-05 16:03:41 +0200325 select DM_GPIO
Stefan Roese94f453e2019-01-25 11:52:43 +0100326 help
327 Say Y here if you want to enable PCIe controller support on
Pali Rohár43640712022-01-13 14:28:04 +0100328 Kirkwood and Armada 370/XP/375/38x SoCs.
Stefan Roese94f453e2019-01-25 11:52:43 +0100329
Neil Armstrongdfadb942021-03-25 15:49:18 +0100330config PCIE_DW_COMMON
331 bool
Neil Armstrongdfadb942021-03-25 15:49:18 +0100332
Sekhar Nori03c396b2019-08-01 19:12:57 +0530333config PCI_KEYSTONE
334 bool "TI Keystone PCIe controller"
Neil Armstrong1a031822021-03-25 15:49:19 +0100335 select PCIE_DW_COMMON
Sekhar Nori03c396b2019-08-01 19:12:57 +0530336 help
337 Say Y here if you want to enable PCI controller support on AM654 SoC.
338
Ryder Lee42d37452019-08-22 12:26:49 +0200339config PCIE_MEDIATEK
340 bool "MediaTek PCIe Gen2 controller"
Ryder Lee42d37452019-08-22 12:26:49 +0200341 depends on ARCH_MEDIATEK
342 help
343 Say Y here if you want to enable Gen2 PCIe controller,
344 which could be found on MT7623 SoC family.
345
Neil Armstrong2c32c702021-03-25 15:49:21 +0100346config PCIE_DW_MESON
347 bool "Amlogic Meson DesignWare based PCIe controller"
348 depends on ARCH_MESON
349 select PCIE_DW_COMMON
350 help
351 Say Y here if you want to enable DW PCIe controller support on
352 Amlogic SoCs.
353
Jagan Teki99d59062020-05-09 22:26:21 +0530354config PCIE_ROCKCHIP
355 bool "Enable Rockchip PCIe driver"
Michal Simeka261fdc2020-08-19 10:44:15 +0200356 depends on ARCH_ROCKCHIP
Jagan Tekice920e02020-07-09 23:41:02 +0530357 select PHY_ROCKCHIP_PCIE
Jagan Teki99d59062020-05-09 22:26:21 +0530358 default y if ROCKCHIP_RK3399
359 help
360 Say Y here if you want to enable PCIe controller support on
361 Rockchip SoCs.
362
Shawn Lin9ddc0782021-01-15 18:01:22 +0800363config PCIE_DW_ROCKCHIP
364 bool "Rockchip DesignWare based PCIe controller"
365 depends on ARCH_ROCKCHIP
Neil Armstrongc90f3d02021-03-25 15:49:20 +0100366 select PCIE_DW_COMMON
Shawn Lin9ddc0782021-01-15 18:01:22 +0800367 select PHY_ROCKCHIP_SNPS_PCIE3
368 help
369 Say Y here if you want to enable DW PCIe controller support on
370 Rockchip SoCs.
371
Sylwester Nawrocki7b1c3f62020-05-25 13:39:58 +0200372config PCI_BRCMSTB
373 bool "Broadcom STB PCIe controller"
Sylwester Nawrocki7b1c3f62020-05-25 13:39:58 +0200374 depends on ARCH_BCM283X
375 help
376 Say Y here if you want to enable support for PCIe controller
377 on Broadcom set-top-box (STB) SoCs.
378 This driver currently supports only BCM2711 SoC and RC mode
379 of the controller.
Kunihiko Hayashie22c2562021-07-06 19:01:09 +0900380
381config PCIE_UNIPHIER
382 bool "Socionext UniPhier PCIe driver"
Kunihiko Hayashie22c2562021-07-06 19:01:09 +0900383 depends on ARCH_UNIPHIER
384 select PHY_UNIPHIER_PCIE
385 help
386 Say Y here if you want to enable PCIe controller support on
387 UniPhier SoCs.
388
Stefan Roese2f5ad772023-05-25 11:49:18 +0200389config PCIE_XILINX_NWL
390 bool "Xilinx NWL PCIe controller"
391 depends on ARCH_ZYNQMP
392 help
393 Say 'Y' here if you want support for Xilinx / AMD NWL PCIe
394 controller as Root Port.
395
Mason Huo7870a052023-07-25 17:46:48 +0800396config PCIE_PLDA_COMMON
397 bool
398
399config PCIE_STARFIVE_JH7110
400 bool "Enable Starfive JH7110 PCIe driver"
401 select PCIE_PLDA_COMMON
402 imply STARFIVE_JH7110
403 imply CLK_JH7110
404 imply RESET_JH7110
405 help
406 Say Y here if you want to enable PLDA XpressRich PCIe controller
407 support on StarFive JH7110 SoC.
408
Tom Riniaf273822016-10-26 17:15:37 -0400409endif