xref: /openbmc/u-boot/drivers/pci/Kconfig (revision 5f14f7d783f1a3a2e8085738a31b82580addf7b9)
1af27382eSTom Rinimenuconfig PCI
2af27382eSTom Rini	bool "PCI support"
36bf89de7SBin Meng	default y if PPC
4af27382eSTom Rini	help
5af27382eSTom Rini	  Enable support for PCI (Peripheral Interconnect Bus), a type of bus
6af27382eSTom Rini	  used on some devices to allow the CPU to communicate with its
7af27382eSTom Rini	  peripherals.
8af27382eSTom Rini
9af27382eSTom Riniif PCI
10ff3e077bSSimon Glass
11ff3e077bSSimon Glassconfig DM_PCI
12e090fdbaSMarcel Ziswiler	bool "Enable driver model for PCI"
13ff3e077bSSimon Glass	depends on DM
14ff3e077bSSimon Glass	help
15ff3e077bSSimon Glass	  Use driver model for PCI. Driver model is the new method for
16ff3e077bSSimon Glass	  orgnising devices in U-Boot. For PCI, driver model keeps track of
17ff3e077bSSimon Glass	  available PCI devices, allows scanning of PCI buses and provides
18ff3e077bSSimon Glass	  device configuration support.
19ff3e077bSSimon Glass
203ba5f74aSSimon Glassconfig DM_PCI_COMPAT
213ba5f74aSSimon Glass	bool "Enable compatible functions for PCI"
223ba5f74aSSimon Glass	depends on DM_PCI
233ba5f74aSSimon Glass	help
243ba5f74aSSimon Glass	  Enable compatibility functions for PCI so that old code can be used
253ba5f74aSSimon Glass	  with CONFIG_DM_PCI enabled. This should be used as an interim
263ba5f74aSSimon Glass	  measure when porting a board to use driver model for PCI. Once the
273ba5f74aSSimon Glass	  board is fully supported, this option should be disabled.
283ba5f74aSSimon Glass
29c4762157SBin Mengconfig PCI_PNP
30c4762157SBin Meng	bool "Enable Plug & Play support for PCI"
31c4762157SBin Meng	depends on PCI || DM_PCI
32c4762157SBin Meng	default y
33c4762157SBin Meng	help
34c4762157SBin Meng	  Enable PCI memory and I/O space resource allocation and assignment.
35c4762157SBin Meng
363675cb04STuomas Tynkkynenconfig PCIE_ECAM_GENERIC
373675cb04STuomas Tynkkynen	bool "Generic ECAM-based PCI host controller support"
383675cb04STuomas Tynkkynen	default n
393675cb04STuomas Tynkkynen	depends on DM_PCI
403675cb04STuomas Tynkkynen	help
413675cb04STuomas Tynkkynen	  Say Y here if you want to enable support for generic ECAM-based
423675cb04STuomas Tynkkynen	  PCIe host controllers, such as the one emulated by QEMU.
433675cb04STuomas Tynkkynen
44182ba1a7SShadi Ammouriconfig PCIE_DW_MVEBU
45182ba1a7SShadi Ammouri	bool "Enable Armada-8K PCIe driver (DesignWare core)"
46182ba1a7SShadi Ammouri	depends on DM_PCI
47182ba1a7SShadi Ammouri	depends on ARMADA_8K
48182ba1a7SShadi Ammouri	help
49182ba1a7SShadi Ammouri	  Say Y here if you want to enable PCIe controller support on
50182ba1a7SShadi Ammouri	  Armada-8K SoCs. The PCIe controller on Armada-8K is based on
51182ba1a7SShadi Ammouri	  DesignWare hardware.
52182ba1a7SShadi Ammouri
53*5f14f7d7SMarek Vasutconfig PCI_RCAR_GEN2
54*5f14f7d7SMarek Vasut	bool "Renesas RCar Gen2 PCIe driver"
55*5f14f7d7SMarek Vasut	depends on DM_PCI
56*5f14f7d7SMarek Vasut	depends on RCAR_32
57*5f14f7d7SMarek Vasut	help
58*5f14f7d7SMarek Vasut	  Say Y here if you want to enable PCIe controller support on
59*5f14f7d7SMarek Vasut	  Renesas RCar Gen2 SoCs. The PCIe controller on RCar Gen2 is
60*5f14f7d7SMarek Vasut	  also used to access EHCI USB controller on the SoC.
61*5f14f7d7SMarek Vasut
62537849aaSSimon Glassconfig PCI_SANDBOX
63537849aaSSimon Glass	bool "Sandbox PCI support"
64537849aaSSimon Glass	depends on SANDBOX && DM_PCI
65537849aaSSimon Glass	help
66537849aaSSimon Glass	  Support PCI on sandbox, as an emulated bus. This permits testing of
67537849aaSSimon Glass	  PCI feature such as bus scanning, device configuration and device
68537849aaSSimon Glass	  access. The available (emulated) devices are defined statically in
69537849aaSSimon Glass	  the device tree but the normal PCI scan technique is used to find
70537849aaSSimon Glass	  then.
71537849aaSSimon Glass
72fde7e189SSimon Glassconfig PCI_TEGRA
73fde7e189SSimon Glass	bool "Tegra PCI support"
74fde7e189SSimon Glass	depends on TEGRA
75bbc5b36bSStephen Warren	depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
76fde7e189SSimon Glass	help
77fde7e189SSimon Glass	  Enable support for the PCIe controller found on some generations of
78fde7e189SSimon Glass	  Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
79fde7e189SSimon Glass	  3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
80fde7e189SSimon Glass	  with a total of 5 lanes. Some boards require this for Ethernet
81fde7e189SSimon Glass	  support to work (e.g. beaver, jetson-tk1).
82fde7e189SSimon Glass
83a29e45a9SPaul Burtonconfig PCI_XILINX
84a29e45a9SPaul Burton	bool "Xilinx AXI Bridge for PCI Express"
85a29e45a9SPaul Burton	depends on DM_PCI
86a29e45a9SPaul Burton	help
87a29e45a9SPaul Burton	  Enable support for the Xilinx AXI bridge for PCI express, an IP block
88a29e45a9SPaul Burton	  which can be used on some generations of Xilinx FPGAs.
89a29e45a9SPaul Burton
9080afc63fSMinghuan Lianconfig PCIE_LAYERSCAPE
9180afc63fSMinghuan Lian	bool "Layerscape PCIe support"
9280afc63fSMinghuan Lian	depends on DM_PCI
9380afc63fSMinghuan Lian	help
9480afc63fSMinghuan Lian	  Support Layerscape PCIe. The Layerscape SoC may have one or several
9580afc63fSMinghuan Lian	  PCIe controllers. The PCIe may works in RC or EP mode according to
9680afc63fSMinghuan Lian	  RCW[HOST_AGT_PEX] setting.
9780afc63fSMinghuan Lian
98af27382eSTom Riniendif
99