blob: 47cd074aa14c05e57f5228f234e449240ccea525 [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
Suneel Garapati4cf56ec2019-10-19 17:10:20 -070043config PCI_REGION_MULTI_ENTRY
44 bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
Suneel Garapati4cf56ec2019-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 Schwierzecka45343a2021-07-15 20:53:56 +020051config PCI_MAP_SYSTEM_MEMORY
52 bool "Map local system memory from a virtual base address"
Daniel Schwierzecka45343a2021-07-15 20:53:56 +020053 depends on MIPS
Daniel Schwierzecka45343a2021-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 Garapatib8852dc2019-10-19 16:07:20 -070062config PCI_SRIOV
63 bool "Enable Single Root I/O Virtualization support for PCI"
Suneel Garapatib8852dc2019-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
Suneel Garapatia3fac3f2019-10-23 18:40:36 -070070config PCI_ARID
71 bool "Enable Alternate Routing-ID support for PCI"
Suneel Garapatia3fac3f2019-10-23 18:40:36 -070072 help
73 Say Y here if you want to enable Alternate Routing-ID capability
74 support on PCI devices. This helps to skip some devices in BDF
75 scan that are not present.
76
Tuomas Tynkkynen3675cb02017-09-19 23:18:06 +030077config PCIE_ECAM_GENERIC
78 bool "Generic ECAM-based PCI host controller support"
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"
Masami Hiramatsu3296d522021-06-04 18:44:06 +090085 select PCI_INIT_R
86 select PCI_REGION_MULTI_ENTRY
87 help
88 Say Y here if you want to enable support for Socionext
89 SynQuacer SoC's ECAM-based PCIe host controllers.
90 Note that this must be configured when boot because Linux driver
91 expects the PCIe RC has been configured in the bootloader.
92
liu haoe3aafef2019-10-31 07:51:08 +000093config PCI_PHYTIUM
94 bool "Phytium PCIe support"
liu haoe3aafef2019-10-31 07:51:08 +000095 help
96 Say Y here if you want to enable PCIe controller support on
97 Phytium SoCs.
98
Shadi Ammouri182ba1a2016-10-27 13:29:41 +020099config PCIE_DW_MVEBU
100 bool "Enable Armada-8K PCIe driver (DesignWare core)"
Shadi Ammouri182ba1a2016-10-27 13:29:41 +0200101 depends on ARMADA_8K
102 help
103 Say Y here if you want to enable PCIe controller support on
104 Armada-8K SoCs. The PCIe controller on Armada-8K is based on
105 DesignWare hardware.
106
Green Wan416395c2021-05-27 06:52:10 -0700107config PCIE_DW_SIFIVE
108 bool "Enable SiFive FU740 PCIe"
109 depends on CLK_SIFIVE_PRCI
110 depends on RESET_SIFIVE
111 depends on SIFIVE_GPIO
112 select PCIE_DW_COMMON
113 help
114 Say Y here if you want to enable PCIe controller support on
115 FU740.
116
Hou Zhiqiangb89e3d92019-04-24 22:33:02 +0800117config PCIE_FSL
118 bool "FSL PowerPC PCIe support"
Hou Zhiqiangb89e3d92019-04-24 22:33:02 +0800119 help
120 Say Y here if you want to enable PCIe controller support on FSL
121 PowerPC MPC85xx, MPC86xx, B series, P series and T series SoCs.
122 This driver does not support SRIO_PCIE_BOOT feature.
123
Heiko Schocherb61cbbd2019-10-14 11:29:39 +0200124config PCI_MPC85XX
125 bool "MPC85XX PowerPC PCI support"
Heiko Schocherb61cbbd2019-10-14 11:29:39 +0200126 help
127 Say Y here if you want to enable PCI controller support on FSL
128 PowerPC MPC85xx SoC.
129
Marek Vasut5f14f7d2018-01-18 14:35:35 +0100130config PCI_RCAR_GEN2
131 bool "Renesas RCar Gen2 PCIe driver"
Marek Vasut5f14f7d2018-01-18 14:35:35 +0100132 depends on RCAR_32
133 help
134 Say Y here if you want to enable PCIe controller support on
135 Renesas RCar Gen2 SoCs. The PCIe controller on RCar Gen2 is
136 also used to access EHCI USB controller on the SoC.
137
Marek Vasut776abed2018-10-16 12:49:19 +0200138config PCI_RCAR_GEN3
139 bool "Renesas RCar Gen3 PCIe driver"
Marek Vasut776abed2018-10-16 12:49:19 +0200140 depends on RCAR_GEN3
141 help
142 Say Y here if you want to enable PCIe controller support on
143 Renesas RCar Gen3 SoCs.
144
Simon Glass537849a2015-03-05 12:25:27 -0700145config PCI_SANDBOX
146 bool "Sandbox PCI support"
Simon Glass3232bdf2021-08-01 18:54:44 -0600147 depends on SANDBOX
Simon Glass537849a2015-03-05 12:25:27 -0700148 help
149 Support PCI on sandbox, as an emulated bus. This permits testing of
150 PCI feature such as bus scanning, device configuration and device
151 access. The available (emulated) devices are defined statically in
152 the device tree but the normal PCI scan technique is used to find
153 then.
154
Simon Glassfde7e182015-11-19 20:26:55 -0700155config PCI_TEGRA
156 bool "Tegra PCI support"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400157 depends on ARCH_TEGRA
Stephen Warrenbbc5b362016-08-05 16:10:34 -0600158 depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
Simon Glassfde7e182015-11-19 20:26:55 -0700159 help
160 Enable support for the PCIe controller found on some generations of
161 Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
162 3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
163 with a total of 5 lanes. Some boards require this for Ethernet
164 support to work (e.g. beaver, jetson-tk1).
165
Suneel Garapati638d7052019-10-19 17:28:01 -0700166config PCI_OCTEONTX
167 bool "OcteonTX PCI support"
168 depends on (ARCH_OCTEONTX || ARCH_OCTEONTX2)
169 help
170 Enable support for the OcteonTX/TX2 SoC family ECAM/PEM controllers.
171 These controllers provide PCI configuration access to all on-board
172 peripherals so it should only be disabled for testing purposes
173
Stefan Roeseddafdb92021-04-07 08:43:35 +0200174config PCIE_OCTEON
175 bool "MIPS Octeon PCIe support"
176 depends on ARCH_OCTEON
177 help
178 Enable support for the MIPS Octeon SoC family PCIe controllers.
179
Paul Burtona29e45a2016-09-08 07:47:31 +0100180config PCI_XILINX
181 bool "Xilinx AXI Bridge for PCI Express"
Paul Burtona29e45a2016-09-08 07:47:31 +0100182 help
183 Enable support for the Xilinx AXI bridge for PCI express, an IP block
184 which can be used on some generations of Xilinx FPGAs.
185
Minghuan Lian80afc632016-12-13 14:54:17 +0800186config PCIE_LAYERSCAPE
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800187 bool
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800188
189config PCIE_LAYERSCAPE_RC
190 bool "Layerscape PCIe Root Complex mode support"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800191 select PCIE_LAYERSCAPE
Minghuan Lian80afc632016-12-13 14:54:17 +0800192 help
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800193 Enable Layerscape PCIe Root Complex mode driver support. The Layerscape
194 SoC may have one or several PCIe controllers. Each controller can be
195 configured to Root Complex mode by clearing the corresponding bit of
196 RCW[HOST_AGT_PEX].
197
Laurentiu Tudor2a5bbb12020-09-10 12:42:19 +0300198config PCI_IOMMU_EXTRA_MAPPINGS
199 bool "Support for specifying extra IOMMU mappings for PCI"
200 depends on PCIE_LAYERSCAPE_RC
201 help
202 Enable support for specifying extra IOMMU mappings for PCI
203 controllers through a special env var called "pci_iommu_extra" or
204 through a device tree property named "pci-iommu-extra" placed in
205 the node describing the PCI controller.
206 The intent is to cover SR-IOV scenarios which need mappings for VFs
207 and PCI hot-plug scenarios. More documentation can be found under:
208 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra
209
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800210config PCIE_LAYERSCAPE_EP
211 bool "Layerscape PCIe Endpoint mode support"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800212 select PCIE_LAYERSCAPE
213 select PCI_ENDPOINT
214 help
215 Enable Layerscape PCIe Endpoint mode driver support. The Layerscape
216 SoC may have one or several PCIe controllers. Each controller can be
217 configured to Endpoint mode by setting the corresponding bit of
218 RCW[HOST_AGT_PEX].
Minghuan Lian80afc632016-12-13 14:54:17 +0800219
Hou Zhiqiang07ce19f2019-04-08 10:15:46 +0000220config PCIE_LAYERSCAPE_GEN4
221 bool "Layerscape Gen4 PCIe support"
Hou Zhiqiang07ce19f2019-04-08 10:15:46 +0000222 help
223 Support PCIe Gen4 on NXP Layerscape SoCs, which may have one or
224 several PCIe controllers. The PCIe controller can work in RC or
225 EP mode according to RCW[HOST_AGT_PEX] setting.
226
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000227config FSL_PCIE_COMPAT
228 string "PCIe compatible of Kernel DT"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800229 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000230 default "fsl,ls1012a-pcie" if ARCH_LS1012A
231 default "fsl,ls1028a-pcie" if ARCH_LS1028A
232 default "fsl,ls1043a-pcie" if ARCH_LS1043A
233 default "fsl,ls1046a-pcie" if ARCH_LS1046A
234 default "fsl,ls2080a-pcie" if ARCH_LS2080A
235 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiang18c62df2021-12-07 18:13:12 +0800236 default "fsl,ls2088a-pcie" if ARCH_LX2160A || ARCH_LX2162A
Pankaj Bansalba7c9662019-11-30 13:14:00 +0000237 default "fsl,ls1021a-pcie" if ARCH_LS1021A
238 help
239 This compatible is used to find pci controller node in Kernel DT
240 to complete fixup.
241
Pankaj Bansal63618e72019-11-30 13:14:10 +0000242config FSL_PCIE_EP_COMPAT
243 string "PCIe EP compatible of Kernel DT"
Hou Zhiqianged188aa2020-07-09 23:31:42 +0800244 depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
Pankaj Bansal63618e72019-11-30 13:14:10 +0000245 default "fsl,ls-pcie-ep"
246 help
247 This compatible is used to find pci controller ep node in Kernel DT
248 to complete fixup.
249
Ley Foon Tan7c458622018-04-20 21:55:45 +0800250config PCIE_INTEL_FPGA
251 bool "Intel FPGA PCIe support"
Ley Foon Tan7c458622018-04-20 21:55:45 +0800252 help
253 Say Y here if you want to enable PCIe controller support on Intel
254 FPGA, example Stratix 10.
255
Srinath Mannam48487042020-05-12 13:29:50 +0530256config PCIE_IPROC
257 bool "Iproc PCIe support"
Srinath Mannam48487042020-05-12 13:29:50 +0530258 help
259 Broadcom iProc PCIe controller driver.
260 Say Y here if you want to enable Broadcom iProc PCIe controller,
261
Stefan Roese94f453e2019-01-25 11:52:43 +0100262config PCI_MVEBU
Pali Rohár43640712022-01-13 14:28:04 +0100263 bool "Enable Kirkwood / Armada 370/XP/375/38x PCIe driver"
264 depends on (ARCH_KIRKWOOD || ARCH_MVEBU)
Stefan Roese94f453e2019-01-25 11:52:43 +0100265 select MISC
Pali Rohár94c30f92021-12-21 12:20:19 +0100266 select DM_RESET
Stefan Roese94f453e2019-01-25 11:52:43 +0100267 help
268 Say Y here if you want to enable PCIe controller support on
Pali Rohár43640712022-01-13 14:28:04 +0100269 Kirkwood and Armada 370/XP/375/38x SoCs.
Stefan Roese94f453e2019-01-25 11:52:43 +0100270
Neil Armstrongdfadb942021-03-25 15:49:18 +0100271config PCIE_DW_COMMON
272 bool
Neil Armstrongdfadb942021-03-25 15:49:18 +0100273
Sekhar Nori03c396b2019-08-01 19:12:57 +0530274config PCI_KEYSTONE
275 bool "TI Keystone PCIe controller"
Neil Armstrong1a031822021-03-25 15:49:19 +0100276 select PCIE_DW_COMMON
Sekhar Nori03c396b2019-08-01 19:12:57 +0530277 help
278 Say Y here if you want to enable PCI controller support on AM654 SoC.
279
Ryder Lee42d37452019-08-22 12:26:49 +0200280config PCIE_MEDIATEK
281 bool "MediaTek PCIe Gen2 controller"
Ryder Lee42d37452019-08-22 12:26:49 +0200282 depends on ARCH_MEDIATEK
283 help
284 Say Y here if you want to enable Gen2 PCIe controller,
285 which could be found on MT7623 SoC family.
286
Neil Armstrong2c32c702021-03-25 15:49:21 +0100287config PCIE_DW_MESON
288 bool "Amlogic Meson DesignWare based PCIe controller"
289 depends on ARCH_MESON
290 select PCIE_DW_COMMON
291 help
292 Say Y here if you want to enable DW PCIe controller support on
293 Amlogic SoCs.
294
Jagan Teki99d59062020-05-09 22:26:21 +0530295config PCIE_ROCKCHIP
296 bool "Enable Rockchip PCIe driver"
Michal Simeka261fdc2020-08-19 10:44:15 +0200297 depends on ARCH_ROCKCHIP
Jagan Tekice920e02020-07-09 23:41:02 +0530298 select PHY_ROCKCHIP_PCIE
Jagan Teki99d59062020-05-09 22:26:21 +0530299 default y if ROCKCHIP_RK3399
300 help
301 Say Y here if you want to enable PCIe controller support on
302 Rockchip SoCs.
303
Shawn Lin9ddc0782021-01-15 18:01:22 +0800304config PCIE_DW_ROCKCHIP
305 bool "Rockchip DesignWare based PCIe controller"
306 depends on ARCH_ROCKCHIP
Neil Armstrongc90f3d02021-03-25 15:49:20 +0100307 select PCIE_DW_COMMON
Shawn Lin9ddc0782021-01-15 18:01:22 +0800308 select PHY_ROCKCHIP_SNPS_PCIE3
309 help
310 Say Y here if you want to enable DW PCIe controller support on
311 Rockchip SoCs.
312
Sylwester Nawrocki7b1c3f62020-05-25 13:39:58 +0200313config PCI_BRCMSTB
314 bool "Broadcom STB PCIe controller"
Sylwester Nawrocki7b1c3f62020-05-25 13:39:58 +0200315 depends on ARCH_BCM283X
316 help
317 Say Y here if you want to enable support for PCIe controller
318 on Broadcom set-top-box (STB) SoCs.
319 This driver currently supports only BCM2711 SoC and RC mode
320 of the controller.
Kunihiko Hayashie22c2562021-07-06 19:01:09 +0900321
322config PCIE_UNIPHIER
323 bool "Socionext UniPhier PCIe driver"
Kunihiko Hayashie22c2562021-07-06 19:01:09 +0900324 depends on ARCH_UNIPHIER
325 select PHY_UNIPHIER_PCIE
326 help
327 Say Y here if you want to enable PCIe controller support on
328 UniPhier SoCs.
329
Tom Riniaf273822016-10-26 17:15:37 -0400330endif