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