blob: 0ef5c2923378bdcd07a7bdb059249e992c0bec36 [file] [log] [blame]
Tom Rinif48e0252016-10-26 17:15:37 -04001menuconfig PCI
2 bool "PCI support"
Tom Rini5dec0752021-05-14 21:34:32 -04003 depends on DM
Bin Meng00a17fd2017-07-30 06:23:09 -07004 default y if PPC
Tom Rinif48e0252016-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 Glass3933d292021-08-01 18:54:44 -060010 This subsystem requires driver model.
Simon Glassb94dc892015-03-05 12:25:25 -070011
Tom Rini5dec0752021-05-14 21:34:32 -040012if PCI
13
Simon Glasseca7b0d2015-11-26 19:51:30 -070014config DM_PCI_COMPAT
15 bool "Enable compatible functions for PCI"
Simon Glasseca7b0d2015-11-26 19:51:30 -070016 help
17 Enable compatibility functions for PCI so that old code can be used
Simon Glass3933d292021-08-01 18:54:44 -060018 with CONFIG_PCI enabled. This should be used as an interim
Simon Glasseca7b0d2015-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 Rini50e6f1b2021-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 Dinga6bdc862018-03-26 15:57:29 +080028config PCI_AARDVARK
29 bool "Enable Aardvark PCIe driver"
Pali Rohár5c6edca2020-08-25 10:45:04 +020030 depends on DM_GPIO
Wilson Dinga6bdc862018-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 Meng2f49e2e2016-10-16 23:35:18 -070037config PCI_PNP
38 bool "Enable Plug & Play support for PCI"
Bin Meng2f49e2e2016-10-16 23:35:18 -070039 default y
40 help
41 Enable PCI memory and I/O space resource allocation and assignment.
42
Suneel Garapati3ac3aec2019-10-19 17:10:20 -070043config PCI_REGION_MULTI_ENTRY
44 bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
Suneel Garapati3ac3aec2019-10-19 17:10:20 -070045 help
46 Enable PCI memory regions to be of multiple entry. Multiple entry
47 here refers to allow more than one count of address ranges for MEMORY
48 region type. This helps to add support for SoC's like OcteonTX/TX2
49 where every peripheral is on the PCI bus.
50
Daniel Schwierzeckf59925e2021-07-15 20:53:56 +020051config PCI_MAP_SYSTEM_MEMORY
52 bool "Map local system memory from a virtual base address"
Daniel Schwierzeckf59925e2021-07-15 20:53:56 +020053 depends on MIPS
Daniel Schwierzeckf59925e2021-07-15 20:53:56 +020054 help
55 Say Y if base address of system memory is being used as a virtual address
56 instead of a physical address (e.g. on MIPS). The PCI core will then remap
57 the virtual memory base address to a physical address when adding the PCI
58 region of type PCI_REGION_SYS_MEMORY.
59 This should only be required on MIPS where CONFIG_SYS_SDRAM_BASE is still
60 being used as virtual address.
61
Suneel Garapati13822f72019-10-19 16:07:20 -070062config PCI_SRIOV
63 bool "Enable Single Root I/O Virtualization support for PCI"
Suneel Garapati13822f72019-10-19 16:07:20 -070064 help
65 Say Y here if you want to enable PCI Single Root I/O Virtualization
66 capability support. This helps to enumerate Virtual Function devices
67 if available on a PCI Physical Function device and probe for
68 applicable drivers.
69
Andrew Scull71e7e1a2022-04-21 16:11:16 +000070config PCI_ENHANCED_ALLOCATION
71 bool "Enable support for Enhanced Allocation of resources"
72 default y
73 help
74 Enable support for Enhanced Allocation which can be used by supported
75 devices in place of traditional BARS for allocation of resources.
76
Suneel Garapatia99a5eb2019-10-23 18:40:36 -070077config PCI_ARID
78 bool "Enable Alternate Routing-ID support for PCI"
Suneel Garapatia99a5eb2019-10-23 18:40:36 -070079 help
80 Say Y here if you want to enable Alternate Routing-ID capability
81 support on PCI devices. This helps to skip some devices in BDF
82 scan that are not present.
83
Tom Rini6fe72702022-06-20 08:07:48 -040084config PCI_SCAN_SHOW
85 bool "Show PCI devices during startup"
86 depends on PCIE_IMX
87
Tuomas Tynkkynena765f712017-09-19 23:18:06 +030088config PCIE_ECAM_GENERIC
89 bool "Generic ECAM-based PCI host controller support"
Tuomas Tynkkynena765f712017-09-19 23:18:06 +030090 help
91 Say Y here if you want to enable support for generic ECAM-based
92 PCIe host controllers, such as the one emulated by QEMU.
93
Masami Hiramatsu06850202021-06-04 18:44:06 +090094config PCIE_ECAM_SYNQUACER
95 bool "SynQuacer ECAM-based PCI host controller support"
Masami Hiramatsu06850202021-06-04 18:44:06 +090096 select PCI_INIT_R
97 select PCI_REGION_MULTI_ENTRY
98 help
99 Say Y here if you want to enable support for Socionext
100 SynQuacer SoC's ECAM-based PCIe host controllers.
101 Note that this must be configured when boot because Linux driver
102 expects the PCIe RC has been configured in the bootloader.
103
Tom Rinie9e57582022-06-20 08:07:49 -0400104config PCI_GT64120
105 bool "GT64120 PCI support"
106 depends on MIPS
107
liu hao1c4a2c42019-10-31 07:51:08 +0000108config PCI_PHYTIUM
109 bool "Phytium PCIe support"
liu hao1c4a2c42019-10-31 07:51:08 +0000110 help
111 Say Y here if you want to enable PCIe controller support on
112 Phytium SoCs.
113
Shadi Ammouri3b386452016-10-27 13:29:41 +0200114config PCIE_DW_MVEBU
115 bool "Enable Armada-8K PCIe driver (DesignWare core)"
Shadi Ammouri3b386452016-10-27 13:29:41 +0200116 depends on ARMADA_8K
117 help
118 Say Y here if you want to enable PCIe controller support on
119 Armada-8K SoCs. The PCIe controller on Armada-8K is based on
120 DesignWare hardware.
121
Green Wanba5919b2021-05-27 06:52:10 -0700122config PCIE_DW_SIFIVE
123 bool "Enable SiFive FU740 PCIe"
124 depends on CLK_SIFIVE_PRCI
125 depends on RESET_SIFIVE
126 depends on SIFIVE_GPIO
127 select PCIE_DW_COMMON
128 help
129 Say Y here if you want to enable PCIe controller support on
130 FU740.
131
Hou Zhiqiang25ff98c2019-04-24 22:33:02 +0800132config PCIE_FSL
133 bool "FSL PowerPC PCIe support"
Hou Zhiqiang25ff98c2019-04-24 22:33:02 +0800134 help
135 Say Y here if you want to enable PCIe controller support on FSL
136 PowerPC MPC85xx, MPC86xx, B series, P series and T series SoCs.
137 This driver does not support SRIO_PCIE_BOOT feature.
138
Heiko Schocherd647b462019-10-14 11:29:39 +0200139config PCI_MPC85XX
140 bool "MPC85XX PowerPC PCI support"
Heiko Schocherd647b462019-10-14 11:29:39 +0200141 help
142 Say Y here if you want to enable PCI controller support on FSL
143 PowerPC MPC85xx SoC.
144
Marek Vasut5012d1e2018-01-18 14:35:35 +0100145config PCI_RCAR_GEN2
146 bool "Renesas RCar Gen2 PCIe driver"
Marek Vasut5012d1e2018-01-18 14:35:35 +0100147 depends on RCAR_32
148 help
149 Say Y here if you want to enable PCIe controller support on
150 Renesas RCar Gen2 SoCs. The PCIe controller on RCar Gen2 is
151 also used to access EHCI USB controller on the SoC.
152
Marek Vasut879b4a32018-10-16 12:49:19 +0200153config PCI_RCAR_GEN3
154 bool "Renesas RCar Gen3 PCIe driver"
Marek Vasut879b4a32018-10-16 12:49:19 +0200155 depends on RCAR_GEN3
156 help
157 Say Y here if you want to enable PCIe controller support on
158 Renesas RCar Gen3 SoCs.
159
Simon Glass4d857552015-03-05 12:25:27 -0700160config PCI_SANDBOX
161 bool "Sandbox PCI support"
Simon Glass3933d292021-08-01 18:54:44 -0600162 depends on SANDBOX
Simon Glass4d857552015-03-05 12:25:27 -0700163 help
164 Support PCI on sandbox, as an emulated bus. This permits testing of
165 PCI feature such as bus scanning, device configuration and device
166 access. The available (emulated) devices are defined statically in
167 the device tree but the normal PCI scan technique is used to find
168 then.
169
Simon Glassc78e3272015-11-19 20:26:55 -0700170config PCI_TEGRA
171 bool "Tegra PCI support"
Trevor Woerner513f6402020-05-06 08:02:41 -0400172 depends on ARCH_TEGRA
Stephen Warren86f6a942016-08-05 16:10:34 -0600173 depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
Simon Glassc78e3272015-11-19 20:26:55 -0700174 help
175 Enable support for the PCIe controller found on some generations of
176 Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
177 3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
178 with a total of 5 lanes. Some boards require this for Ethernet
179 support to work (e.g. beaver, jetson-tk1).
180
Suneel Garapati4c7d28c2019-10-19 17:28:01 -0700181config PCI_OCTEONTX
182 bool "OcteonTX PCI support"
183 depends on (ARCH_OCTEONTX || ARCH_OCTEONTX2)
184 help
185 Enable support for the OcteonTX/TX2 SoC family ECAM/PEM controllers.
186 These controllers provide PCI configuration access to all on-board
187 peripherals so it should only be disabled for testing purposes
188
Stefan Roese098c7732021-04-07 08:43:35 +0200189config PCIE_OCTEON
190 bool "MIPS Octeon PCIe support"
191 depends on ARCH_OCTEON
192 help
193 Enable support for the MIPS Octeon SoC family PCIe controllers.
194
Paul Burtonc893f212016-09-08 07:47:31 +0100195config PCI_XILINX
196 bool "Xilinx AXI Bridge for PCI Express"
Paul Burtonc893f212016-09-08 07:47:31 +0100197 help
198 Enable support for the Xilinx AXI bridge for PCI express, an IP block
199 which can be used on some generations of Xilinx FPGAs.
200
Minghuan Lianc1067842016-12-13 14:54:17 +0800201config PCIE_LAYERSCAPE
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800202 bool
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800203
204config PCIE_LAYERSCAPE_RC
205 bool "Layerscape PCIe Root Complex mode support"
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800206 select PCIE_LAYERSCAPE
207 help
208 Enable Layerscape PCIe Root Complex mode driver support. The Layerscape
209 SoC may have one or several PCIe controllers. Each controller can be
210 configured to Root Complex mode by clearing the corresponding bit of
211 RCW[HOST_AGT_PEX].
212
Laurentiu Tudor7fd23502020-09-10 12:42:19 +0300213config PCI_IOMMU_EXTRA_MAPPINGS
214 bool "Support for specifying extra IOMMU mappings for PCI"
215 depends on PCIE_LAYERSCAPE_RC
216 help
217 Enable support for specifying extra IOMMU mappings for PCI
218 controllers through a special env var called "pci_iommu_extra" or
219 through a device tree property named "pci-iommu-extra" placed in
220 the node describing the PCI controller.
221 The intent is to cover SR-IOV scenarios which need mappings for VFs
222 and PCI hot-plug scenarios. More documentation can be found under:
223 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra
224
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800225config PCIE_LAYERSCAPE_EP
226 bool "Layerscape PCIe Endpoint mode support"
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800227 select PCIE_LAYERSCAPE
228 select PCI_ENDPOINT
Minghuan Lianc1067842016-12-13 14:54:17 +0800229 help
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800230 Enable Layerscape PCIe Endpoint mode driver support. The Layerscape
231 SoC may have one or several PCIe controllers. Each controller can be
232 configured to Endpoint mode by setting the corresponding bit of
233 RCW[HOST_AGT_PEX].
Minghuan Lianc1067842016-12-13 14:54:17 +0800234
Hou Zhiqiange5d79c42019-04-08 10:15:46 +0000235config PCIE_LAYERSCAPE_GEN4
236 bool "Layerscape Gen4 PCIe support"
Hou Zhiqiange5d79c42019-04-08 10:15:46 +0000237 help
238 Support PCIe Gen4 on NXP Layerscape SoCs, which may have one or
239 several PCIe controllers. The PCIe controller can work in RC or
240 EP mode according to RCW[HOST_AGT_PEX] setting.
241
Pankaj Bansal4c656782019-11-30 13:14:00 +0000242config FSL_PCIE_COMPAT
243 string "PCIe compatible of Kernel DT"
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800244 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Pankaj Bansal4c656782019-11-30 13:14:00 +0000245 default "fsl,ls1012a-pcie" if ARCH_LS1012A
246 default "fsl,ls1028a-pcie" if ARCH_LS1028A
247 default "fsl,ls1043a-pcie" if ARCH_LS1043A
248 default "fsl,ls1046a-pcie" if ARCH_LS1046A
249 default "fsl,ls2080a-pcie" if ARCH_LS2080A
250 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiang14de76e2021-12-07 18:13:12 +0800251 default "fsl,ls2088a-pcie" if ARCH_LX2160A || ARCH_LX2162A
Pankaj Bansal4c656782019-11-30 13:14:00 +0000252 default "fsl,ls1021a-pcie" if ARCH_LS1021A
253 help
254 This compatible is used to find pci controller node in Kernel DT
255 to complete fixup.
256
Pankaj Bansal64d85a22019-11-30 13:14:10 +0000257config FSL_PCIE_EP_COMPAT
258 string "PCIe EP compatible of Kernel DT"
Hou Zhiqiang02f1f062020-07-09 23:31:42 +0800259 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Pankaj Bansal64d85a22019-11-30 13:14:10 +0000260 default "fsl,ls-pcie-ep"
261 help
262 This compatible is used to find pci controller ep node in Kernel DT
263 to complete fixup.
264
Tom Rini2c7b8ec2022-06-20 08:07:46 -0400265config PCIE_IMX
266 bool "i.MX PCIe support"
267 depends on ARCH_MX6
268
Ley Foon Tandc05e632018-04-20 21:55:45 +0800269config PCIE_INTEL_FPGA
270 bool "Intel FPGA PCIe support"
Ley Foon Tandc05e632018-04-20 21:55:45 +0800271 help
272 Say Y here if you want to enable PCIe controller support on Intel
273 FPGA, example Stratix 10.
274
Srinath Mannamd90ba422020-05-12 13:29:50 +0530275config PCIE_IPROC
276 bool "Iproc PCIe support"
Srinath Mannamd90ba422020-05-12 13:29:50 +0530277 help
278 Broadcom iProc PCIe controller driver.
279 Say Y here if you want to enable Broadcom iProc PCIe controller,
280
Stefan Roese3179ec62019-01-25 11:52:43 +0100281config PCI_MVEBU
Pali Roháred9bcb92022-01-13 14:28:04 +0100282 bool "Enable Kirkwood / Armada 370/XP/375/38x PCIe driver"
283 depends on (ARCH_KIRKWOOD || ARCH_MVEBU)
Stefan Roese3179ec62019-01-25 11:52:43 +0100284 select MISC
Pali Rohár5fc93e22021-12-21 12:20:19 +0100285 select DM_RESET
Stefan Roese3179ec62019-01-25 11:52:43 +0100286 help
287 Say Y here if you want to enable PCIe controller support on
Pali Roháred9bcb92022-01-13 14:28:04 +0100288 Kirkwood and Armada 370/XP/375/38x SoCs.
Stefan Roese3179ec62019-01-25 11:52:43 +0100289
Neil Armstrongb46caff2021-03-25 15:49:18 +0100290config PCIE_DW_COMMON
291 bool
Neil Armstrongb46caff2021-03-25 15:49:18 +0100292
Sekhar Nori18db23d2019-08-01 19:12:57 +0530293config PCI_KEYSTONE
294 bool "TI Keystone PCIe controller"
Neil Armstrongc0c39ce2021-03-25 15:49:19 +0100295 select PCIE_DW_COMMON
Sekhar Nori18db23d2019-08-01 19:12:57 +0530296 help
297 Say Y here if you want to enable PCI controller support on AM654 SoC.
298
developerad767732019-08-22 12:26:49 +0200299config PCIE_MEDIATEK
300 bool "MediaTek PCIe Gen2 controller"
developerad767732019-08-22 12:26:49 +0200301 depends on ARCH_MEDIATEK
302 help
303 Say Y here if you want to enable Gen2 PCIe controller,
304 which could be found on MT7623 SoC family.
305
Neil Armstrong06e006b2021-03-25 15:49:21 +0100306config PCIE_DW_MESON
307 bool "Amlogic Meson DesignWare based PCIe controller"
308 depends on ARCH_MESON
309 select PCIE_DW_COMMON
310 help
311 Say Y here if you want to enable DW PCIe controller support on
312 Amlogic SoCs.
313
Jagan Teki02262472020-05-09 22:26:21 +0530314config PCIE_ROCKCHIP
315 bool "Enable Rockchip PCIe driver"
Michal Simek7f6d2942020-08-19 10:44:15 +0200316 depends on ARCH_ROCKCHIP
Jagan Teki427603b2020-07-09 23:41:02 +0530317 select PHY_ROCKCHIP_PCIE
Jagan Teki02262472020-05-09 22:26:21 +0530318 default y if ROCKCHIP_RK3399
319 help
320 Say Y here if you want to enable PCIe controller support on
321 Rockchip SoCs.
322
Shawn Linc0649da2021-01-15 18:01:22 +0800323config PCIE_DW_ROCKCHIP
324 bool "Rockchip DesignWare based PCIe controller"
325 depends on ARCH_ROCKCHIP
Neil Armstrongcf214c62021-03-25 15:49:20 +0100326 select PCIE_DW_COMMON
Shawn Linc0649da2021-01-15 18:01:22 +0800327 select PHY_ROCKCHIP_SNPS_PCIE3
328 help
329 Say Y here if you want to enable DW PCIe controller support on
330 Rockchip SoCs.
331
Sylwester Nawrocki88f51f72020-05-25 13:39:58 +0200332config PCI_BRCMSTB
333 bool "Broadcom STB PCIe controller"
Sylwester Nawrocki88f51f72020-05-25 13:39:58 +0200334 depends on ARCH_BCM283X
335 help
336 Say Y here if you want to enable support for PCIe controller
337 on Broadcom set-top-box (STB) SoCs.
338 This driver currently supports only BCM2711 SoC and RC mode
339 of the controller.
Kunihiko Hayashi741a1f92021-07-06 19:01:09 +0900340
341config PCIE_UNIPHIER
342 bool "Socionext UniPhier PCIe driver"
Kunihiko Hayashi741a1f92021-07-06 19:01:09 +0900343 depends on ARCH_UNIPHIER
344 select PHY_UNIPHIER_PCIE
345 help
346 Say Y here if you want to enable PCIe controller support on
347 UniPhier SoCs.
348
Tom Rinif48e0252016-10-26 17:15:37 -0400349endif