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