xref: /openbmc/u-boot/drivers/pci/Kconfig (revision 6bf89de7e1189a61522dd1f8880d8d2be8d3ba57)
1af27382eSTom Rinimenuconfig PCI
2af27382eSTom Rini	bool "PCI support"
3*6bf89de7SBin 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
36182ba1a7SShadi Ammouriconfig PCIE_DW_MVEBU
37182ba1a7SShadi Ammouri	bool "Enable Armada-8K PCIe driver (DesignWare core)"
38182ba1a7SShadi Ammouri	default n
39182ba1a7SShadi Ammouri	depends on DM_PCI
40182ba1a7SShadi Ammouri	depends on ARMADA_8K
41182ba1a7SShadi Ammouri	help
42182ba1a7SShadi Ammouri	  Say Y here if you want to enable PCIe controller support on
43182ba1a7SShadi Ammouri	  Armada-8K SoCs. The PCIe controller on Armada-8K is based on
44182ba1a7SShadi Ammouri	  DesignWare hardware.
45182ba1a7SShadi Ammouri
46537849aaSSimon Glassconfig PCI_SANDBOX
47537849aaSSimon Glass	bool "Sandbox PCI support"
48537849aaSSimon Glass	depends on SANDBOX && DM_PCI
49537849aaSSimon Glass	help
50537849aaSSimon Glass	  Support PCI on sandbox, as an emulated bus. This permits testing of
51537849aaSSimon Glass	  PCI feature such as bus scanning, device configuration and device
52537849aaSSimon Glass	  access. The available (emulated) devices are defined statically in
53537849aaSSimon Glass	  the device tree but the normal PCI scan technique is used to find
54537849aaSSimon Glass	  then.
55537849aaSSimon Glass
56fde7e189SSimon Glassconfig PCI_TEGRA
57fde7e189SSimon Glass	bool "Tegra PCI support"
58fde7e189SSimon Glass	depends on TEGRA
59bbc5b36bSStephen Warren	depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
60fde7e189SSimon Glass	help
61fde7e189SSimon Glass	  Enable support for the PCIe controller found on some generations of
62fde7e189SSimon Glass	  Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
63fde7e189SSimon Glass	  3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
64fde7e189SSimon Glass	  with a total of 5 lanes. Some boards require this for Ethernet
65fde7e189SSimon Glass	  support to work (e.g. beaver, jetson-tk1).
66fde7e189SSimon Glass
67a29e45a9SPaul Burtonconfig PCI_XILINX
68a29e45a9SPaul Burton	bool "Xilinx AXI Bridge for PCI Express"
69a29e45a9SPaul Burton	depends on DM_PCI
70a29e45a9SPaul Burton	help
71a29e45a9SPaul Burton	  Enable support for the Xilinx AXI bridge for PCI express, an IP block
72a29e45a9SPaul Burton	  which can be used on some generations of Xilinx FPGAs.
73a29e45a9SPaul Burton
7480afc63fSMinghuan Lianconfig PCIE_LAYERSCAPE
7580afc63fSMinghuan Lian	bool "Layerscape PCIe support"
7680afc63fSMinghuan Lian	depends on DM_PCI
7780afc63fSMinghuan Lian	help
7880afc63fSMinghuan Lian	  Support Layerscape PCIe. The Layerscape SoC may have one or several
7980afc63fSMinghuan Lian	  PCIe controllers. The PCIe may works in RC or EP mode according to
8080afc63fSMinghuan Lian	  RCW[HOST_AGT_PEX] setting.
8180afc63fSMinghuan Lian
82af27382eSTom Riniendif
83