Merge tag 'v2021.10-rc4' into next
[platform/kernel/u-boot.git] / drivers / pci / Kconfig
1 menuconfig 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
12 if PCI
13
14 config 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
22 config PCI_AARDVARK
23         bool "Enable Aardvark PCIe driver"
24         depends on DM_PCI
25         depends on DM_GPIO
26         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
32 config PCI_PNP
33         bool "Enable Plug & Play support for PCI"
34         default y
35         help
36           Enable PCI memory and I/O space resource allocation and assignment.
37
38 config PCI_REGION_MULTI_ENTRY
39         bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
40         depends on PCI || DM_PCI
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
47 config PCI_MAP_SYSTEM_MEMORY
48         bool "Map local system memory from a virtual base address"
49         depends on MIPS
50         help
51           Say Y if base address of system memory is being used as a virtual address
52           instead of a physical address (e.g. on MIPS). The PCI core will then remap
53           the virtual memory base address to a physical address when adding the PCI
54           region of type PCI_REGION_SYS_MEMORY.
55           This should only be required on MIPS where CONFIG_SYS_SDRAM_BASE is still
56           being used as virtual address.
57
58 config PCI_SRIOV
59         bool "Enable Single Root I/O Virtualization support for PCI"
60         depends on PCI || DM_PCI
61         help
62           Say Y here if you want to enable PCI Single Root I/O Virtualization
63           capability support. This helps to enumerate Virtual Function devices
64           if available on a PCI Physical Function device and probe for
65           applicable drivers.
66
67 config PCI_ARID
68         bool "Enable Alternate Routing-ID support for PCI"
69         depends on PCI || DM_PCI
70         help
71           Say Y here if you want to enable Alternate Routing-ID capability
72           support on PCI devices. This helps to skip some devices in BDF
73           scan that are not present.
74
75 config PCIE_ECAM_GENERIC
76         bool "Generic ECAM-based PCI host controller support"
77         depends on DM_PCI
78         help
79           Say Y here if you want to enable support for generic ECAM-based
80           PCIe host controllers, such as the one emulated by QEMU.
81
82 config PCIE_ECAM_SYNQUACER
83         bool "SynQuacer ECAM-based PCI host controller support"
84         depends on DM_PCI
85         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
93 config PCI_PHYTIUM
94         bool "Phytium PCIe support"
95         help
96           Say Y here if you want to enable PCIe controller support on
97           Phytium SoCs.
98
99 config PCIE_DW_MVEBU
100         bool "Enable Armada-8K PCIe driver (DesignWare core)"
101         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
107 config 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
117 config PCIE_FSL
118         bool "FSL PowerPC PCIe support"
119         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
124 config PCI_MPC85XX
125         bool "MPC85XX PowerPC PCI support"
126         help
127           Say Y here if you want to enable PCI controller support on FSL
128           PowerPC MPC85xx SoC.
129
130 config PCI_RCAR_GEN2
131         bool "Renesas RCar Gen2 PCIe driver"
132         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
138 config PCI_RCAR_GEN3
139         bool "Renesas RCar Gen3 PCIe driver"
140         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
145 config PCI_SANDBOX
146         bool "Sandbox PCI support"
147         depends on SANDBOX
148         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
155 config PCI_TEGRA
156         bool "Tegra PCI support"
157         depends on ARCH_TEGRA
158         depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
159         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
166 config 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
174 config 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
180 config PCI_XILINX
181         bool "Xilinx AXI Bridge for PCI Express"
182         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
186 config PCIE_LAYERSCAPE
187         bool
188
189 config PCIE_LAYERSCAPE_RC
190         bool "Layerscape PCIe Root Complex mode support"
191         select PCIE_LAYERSCAPE
192         help
193           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
198 config 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
210 config PCIE_LAYERSCAPE_EP
211         bool "Layerscape PCIe Endpoint mode support"
212         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].
219
220 config PCIE_LAYERSCAPE_GEN4
221         bool "Layerscape Gen4 PCIe support"
222         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
227 config FSL_PCIE_COMPAT
228         string "PCIe compatible of Kernel DT"
229         depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
230         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
236         default "fsl,lx2160a-pcie" if ARCH_LX2160A
237         default "fsl,ls2088a-pcie" if ARCH_LX2162A
238         default "fsl,ls1021a-pcie" if ARCH_LS1021A
239         help
240           This compatible is used to find pci controller node in Kernel DT
241           to complete fixup.
242
243 config FSL_PCIE_EP_COMPAT
244         string "PCIe EP compatible of Kernel DT"
245         depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
246         default "fsl,lx2160a-pcie-ep" if ARCH_LX2160A
247         default "fsl,ls-pcie-ep"
248         help
249           This compatible is used to find pci controller ep node in Kernel DT
250           to complete fixup.
251
252 config PCIE_INTEL_FPGA
253         bool "Intel FPGA PCIe support"
254         help
255           Say Y here if you want to enable PCIe controller support on Intel
256           FPGA, example Stratix 10.
257
258 config PCIE_IPROC
259         bool "Iproc PCIe support"
260         help
261           Broadcom iProc PCIe controller driver.
262           Say Y here if you want to enable Broadcom iProc PCIe controller,
263
264 config PCI_MVEBU
265         bool "Enable Armada XP/38x PCIe driver"
266         depends on ARCH_MVEBU
267         select MISC
268         help
269           Say Y here if you want to enable PCIe controller support on
270           Armada XP/38x SoCs.
271
272 config PCIE_DW_COMMON
273         bool
274
275 config PCI_KEYSTONE
276         bool "TI Keystone PCIe controller"
277         select PCIE_DW_COMMON
278         help
279           Say Y here if you want to enable PCI controller support on AM654 SoC.
280
281 config PCIE_MEDIATEK
282         bool "MediaTek PCIe Gen2 controller"
283         depends on ARCH_MEDIATEK
284         help
285           Say Y here if you want to enable Gen2 PCIe controller,
286           which could be found on MT7623 SoC family.
287
288 config PCIE_DW_MESON
289         bool "Amlogic Meson DesignWare based PCIe controller"
290         depends on ARCH_MESON
291         select PCIE_DW_COMMON
292         help
293           Say Y here if you want to enable DW PCIe controller support on
294           Amlogic SoCs.
295
296 config PCIE_ROCKCHIP
297         bool "Enable Rockchip PCIe driver"
298         depends on ARCH_ROCKCHIP
299         select PHY_ROCKCHIP_PCIE
300         default y if ROCKCHIP_RK3399
301         help
302           Say Y here if you want to enable PCIe controller support on
303           Rockchip SoCs.
304
305 config PCIE_DW_ROCKCHIP
306         bool "Rockchip DesignWare based PCIe controller"
307         depends on ARCH_ROCKCHIP
308         select PCIE_DW_COMMON
309         select PHY_ROCKCHIP_SNPS_PCIE3
310         help
311           Say Y here if you want to enable DW PCIe controller support on
312           Rockchip SoCs.
313
314 config PCI_BRCMSTB
315         bool "Broadcom STB PCIe controller"
316         depends on ARCH_BCM283X
317         help
318           Say Y here if you want to enable support for PCIe controller
319           on Broadcom set-top-box (STB) SoCs.
320           This driver currently supports only BCM2711 SoC and RC mode
321           of the controller.
322
323 config PCIE_UNIPHIER
324         bool "Socionext UniPhier PCIe driver"
325         depends on ARCH_UNIPHIER
326         select PHY_UNIPHIER_PCIE
327         help
328           Say Y here if you want to enable PCIe controller support on
329           UniPhier SoCs.
330
331 endif