1menuconfig PCI
2	bool "PCI support"
3	depends on DM
4	default y if PPC
5	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
10	  This subsystem requires driver model.
11
12if PCI
13
14config DM_PCI_COMPAT
15	bool "Enable compatible functions for PCI"
16	help
17	  Enable compatibility functions for PCI so that old code can be used
18	  with CONFIG_PCI enabled. This should be used as an interim
19	  measure when porting a board to use driver model for PCI. Once the
20	  board is fully supported, this option should be disabled.
21
22config PCI_AARDVARK
23	bool "Enable Aardvark PCIe driver"
24	depends on DM_GPIO
25	depends on ARMADA_3700
26	help
27	  Say Y here if you want to enable PCIe controller support on
28	  Armada37x0 SoCs. The PCIe controller on Armada37x0 is based on
29	  Aardvark hardware.
30
31config PCI_PNP
32	bool "Enable Plug & Play support for PCI"
33	default y
34	help
35	  Enable PCI memory and I/O space resource allocation and assignment.
36
37config PCI_REGION_MULTI_ENTRY
38	bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
39	help
40	  Enable PCI memory regions to be of multiple entry. Multiple entry
41	  here refers to allow more than one count of address ranges for MEMORY
42	  region type. This helps to add support for SoC's like OcteonTX/TX2
43	  where every peripheral is on the PCI bus.
44
45config PCI_MAP_SYSTEM_MEMORY
46	bool "Map local system memory from a virtual base address"
47	depends on MIPS
48	help
49	  Say Y if base address of system memory is being used as a virtual address
50	  instead of a physical address (e.g. on MIPS). The PCI core will then remap
51	  the virtual memory base address to a physical address when adding the PCI
52	  region of type PCI_REGION_SYS_MEMORY.
53	  This should only be required on MIPS where CONFIG_SYS_SDRAM_BASE is still
54	  being used as virtual address.
55
56config PCI_SRIOV
57	bool "Enable Single Root I/O Virtualization support for PCI"
58	help
59	  Say Y here if you want to enable PCI Single Root I/O Virtualization
60	  capability support. This helps to enumerate Virtual Function devices
61	  if available on a PCI Physical Function device and probe for
62	  applicable drivers.
63
64config PCI_ARID
65        bool "Enable Alternate Routing-ID support for PCI"
66        help
67          Say Y here if you want to enable Alternate Routing-ID capability
68          support on PCI devices. This helps to skip some devices in BDF
69          scan that are not present.
70
71config PCIE_ECAM_GENERIC
72	bool "Generic ECAM-based PCI host controller support"
73	help
74	  Say Y here if you want to enable support for generic ECAM-based
75	  PCIe host controllers, such as the one emulated by QEMU.
76
77config PCIE_ECAM_SYNQUACER
78	bool "SynQuacer ECAM-based PCI host controller support"
79	select PCI_INIT_R
80	select PCI_REGION_MULTI_ENTRY
81	help
82	  Say Y here if you want to enable support for Socionext
83	  SynQuacer SoC's ECAM-based PCIe host controllers.
84	  Note that this must be configured when boot because Linux driver
85	  expects the PCIe RC has been configured in the bootloader.
86
87config PCI_PHYTIUM
88	bool "Phytium PCIe support"
89	help
90	  Say Y here if you want to enable PCIe controller support on
91	  Phytium SoCs.
92
93config PCIE_DW_MVEBU
94	bool "Enable Armada-8K PCIe driver (DesignWare core)"
95	depends on ARMADA_8K
96	help
97	  Say Y here if you want to enable PCIe controller support on
98	  Armada-8K SoCs. The PCIe controller on Armada-8K is based on
99	  DesignWare hardware.
100
101config PCIE_DW_SIFIVE
102	bool "Enable SiFive FU740 PCIe"
103	depends on CLK_SIFIVE_PRCI
104	depends on RESET_SIFIVE
105	depends on SIFIVE_GPIO
106	select PCIE_DW_COMMON
107	help
108	  Say Y here if you want to enable PCIe controller support on
109	  FU740.
110
111config PCIE_FSL
112	bool "FSL PowerPC PCIe support"
113	help
114	  Say Y here if you want to enable PCIe controller support on FSL
115	  PowerPC MPC85xx, MPC86xx, B series, P series and T series SoCs.
116	  This driver does not support SRIO_PCIE_BOOT feature.
117
118config PCI_MPC85XX
119	bool "MPC85XX PowerPC PCI support"
120	help
121	  Say Y here if you want to enable PCI controller support on FSL
122	  PowerPC MPC85xx SoC.
123
124config PCI_RCAR_GEN2
125	bool "Renesas RCar Gen2 PCIe driver"
126	depends on RCAR_32
127	help
128	  Say Y here if you want to enable PCIe controller support on
129	  Renesas RCar Gen2 SoCs. The PCIe controller on RCar Gen2 is
130	  also used to access EHCI USB controller on the SoC.
131
132config PCI_RCAR_GEN3
133	bool "Renesas RCar Gen3 PCIe driver"
134	depends on RCAR_GEN3
135	help
136	  Say Y here if you want to enable PCIe controller support on
137	  Renesas RCar Gen3 SoCs.
138
139config PCI_SANDBOX
140	bool "Sandbox PCI support"
141	depends on SANDBOX
142	help
143	  Support PCI on sandbox, as an emulated bus. This permits testing of
144	  PCI feature such as bus scanning, device configuration and device
145	  access. The available (emulated) devices are defined statically in
146	  the device tree but the normal PCI scan technique is used to find
147	  then.
148
149config PCI_TEGRA
150	bool "Tegra PCI support"
151	depends on ARCH_TEGRA
152	depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
153	help
154	  Enable support for the PCIe controller found on some generations of
155	  Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
156	  3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
157	  with a total of 5 lanes. Some boards require this for Ethernet
158	  support to work (e.g. beaver, jetson-tk1).
159
160config PCI_OCTEONTX
161	bool "OcteonTX PCI support"
162	depends on (ARCH_OCTEONTX || ARCH_OCTEONTX2)
163	help
164	  Enable support for the OcteonTX/TX2 SoC family ECAM/PEM controllers.
165	  These controllers provide PCI configuration access to all on-board
166	  peripherals so it should only be disabled for testing purposes
167
168config PCIE_OCTEON
169	bool "MIPS Octeon PCIe support"
170	depends on ARCH_OCTEON
171	help
172	  Enable support for the MIPS Octeon SoC family PCIe controllers.
173
174config PCI_XILINX
175	bool "Xilinx AXI Bridge for PCI Express"
176	help
177	  Enable support for the Xilinx AXI bridge for PCI express, an IP block
178	  which can be used on some generations of Xilinx FPGAs.
179
180config PCIE_LAYERSCAPE
181	bool
182
183config PCIE_LAYERSCAPE_RC
184	bool "Layerscape PCIe Root Complex mode support"
185	select PCIE_LAYERSCAPE
186	help
187	  Enable Layerscape PCIe Root Complex mode driver support. The Layerscape
188	  SoC may have one or several PCIe controllers. Each controller can be
189	  configured to Root Complex mode by clearing the corresponding bit of
190	  RCW[HOST_AGT_PEX].
191
192config PCI_IOMMU_EXTRA_MAPPINGS
193	bool "Support for specifying extra IOMMU mappings for PCI"
194	depends on PCIE_LAYERSCAPE_RC
195	help
196	  Enable support for specifying extra IOMMU mappings for PCI
197	  controllers through a special env var called "pci_iommu_extra" or
198	  through a device tree property named "pci-iommu-extra" placed in
199	  the node describing the PCI controller.
200	  The intent is to cover SR-IOV scenarios which need mappings for VFs
201	  and PCI hot-plug scenarios. More documentation can be found under:
202	    arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra
203
204config PCIE_LAYERSCAPE_EP
205	bool "Layerscape PCIe Endpoint mode support"
206	select PCIE_LAYERSCAPE
207	select PCI_ENDPOINT
208	help
209	  Enable Layerscape PCIe Endpoint mode driver support. The Layerscape
210	  SoC may have one or several PCIe controllers. Each controller can be
211	  configured to Endpoint mode by setting the corresponding bit of
212	  RCW[HOST_AGT_PEX].
213
214config PCIE_LAYERSCAPE_GEN4
215	bool "Layerscape Gen4 PCIe support"
216	help
217	  Support PCIe Gen4 on NXP Layerscape SoCs, which may have one or
218	  several PCIe controllers. The PCIe controller can work in RC or
219	  EP mode according to RCW[HOST_AGT_PEX] setting.
220
221config FSL_PCIE_COMPAT
222	string "PCIe compatible of Kernel DT"
223	depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
224	default "fsl,ls1012a-pcie" if ARCH_LS1012A
225	default "fsl,ls1028a-pcie" if ARCH_LS1028A
226	default "fsl,ls1043a-pcie" if ARCH_LS1043A
227	default "fsl,ls1046a-pcie" if ARCH_LS1046A
228	default "fsl,ls2080a-pcie" if ARCH_LS2080A
229	default "fsl,ls1088a-pcie" if ARCH_LS1088A
230	default "fsl,lx2160a-pcie" if ARCH_LX2160A
231	default "fsl,ls2088a-pcie" if ARCH_LX2162A
232	default "fsl,ls1021a-pcie" if ARCH_LS1021A
233	help
234	  This compatible is used to find pci controller node in Kernel DT
235	  to complete fixup.
236
237config FSL_PCIE_EP_COMPAT
238	string "PCIe EP compatible of Kernel DT"
239	depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
240	default "fsl,lx2160a-pcie-ep" if ARCH_LX2160A
241	default "fsl,ls-pcie-ep"
242	help
243	  This compatible is used to find pci controller ep node in Kernel DT
244	  to complete fixup.
245
246config PCIE_INTEL_FPGA
247	bool "Intel FPGA PCIe support"
248	help
249	  Say Y here if you want to enable PCIe controller support on Intel
250	  FPGA, example Stratix 10.
251
252config PCIE_IPROC
253	bool "Iproc PCIe support"
254	help
255	  Broadcom iProc PCIe controller driver.
256	  Say Y here if you want to enable Broadcom iProc PCIe controller,
257
258config PCI_MVEBU
259	bool "Enable Armada XP/38x PCIe driver"
260	depends on ARCH_MVEBU
261	select MISC
262	help
263	  Say Y here if you want to enable PCIe controller support on
264	  Armada XP/38x SoCs.
265
266config PCIE_DW_COMMON
267	bool
268
269config PCI_KEYSTONE
270	bool "TI Keystone PCIe controller"
271	select PCIE_DW_COMMON
272	help
273	  Say Y here if you want to enable PCI controller support on AM654 SoC.
274
275config PCIE_MEDIATEK
276	bool "MediaTek PCIe Gen2 controller"
277	depends on ARCH_MEDIATEK
278	help
279	  Say Y here if you want to enable Gen2 PCIe controller,
280	  which could be found on MT7623 SoC family.
281
282config PCIE_DW_MESON
283	bool "Amlogic Meson DesignWare based PCIe controller"
284	depends on ARCH_MESON
285	select PCIE_DW_COMMON
286	help
287	  Say Y here if you want to enable DW PCIe controller support on
288	  Amlogic SoCs.
289
290config PCIE_ROCKCHIP
291	bool "Enable Rockchip PCIe driver"
292	depends on ARCH_ROCKCHIP
293	select PHY_ROCKCHIP_PCIE
294	default y if ROCKCHIP_RK3399
295	help
296	  Say Y here if you want to enable PCIe controller support on
297	  Rockchip SoCs.
298
299config PCIE_DW_ROCKCHIP
300	bool "Rockchip DesignWare based PCIe controller"
301	depends on ARCH_ROCKCHIP
302	select PCIE_DW_COMMON
303	select PHY_ROCKCHIP_SNPS_PCIE3
304	help
305	  Say Y here if you want to enable DW PCIe controller support on
306	  Rockchip SoCs.
307
308config PCI_BRCMSTB
309	bool "Broadcom STB PCIe controller"
310	depends on ARCH_BCM283X
311	help
312	  Say Y here if you want to enable support for PCIe controller
313	  on Broadcom set-top-box (STB) SoCs.
314	  This driver currently supports only BCM2711 SoC and RC mode
315	  of the controller.
316
317config PCIE_UNIPHIER
318	bool "Socionext UniPhier PCIe driver"
319	depends on ARCH_UNIPHIER
320	select PHY_UNIPHIER_PCIE
321	help
322	  Say Y here if you want to enable PCIe controller support on
323	  UniPhier SoCs.
324
325endif
326