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