xref: /openbmc/u-boot/drivers/pci/Kconfig (revision bbc5b36b2519d5aaa267a2bffba4b3e44dc8f51c)
1ff3e077bSSimon Glassmenu "PCI"
2ff3e077bSSimon Glass
3ff3e077bSSimon Glassconfig DM_PCI
4ff3e077bSSimon Glass	bool "Enable driver mode for PCI"
5ff3e077bSSimon Glass	depends on DM
6ff3e077bSSimon Glass	help
7ff3e077bSSimon Glass	  Use driver model for PCI. Driver model is the new method for
8ff3e077bSSimon Glass	  orgnising devices in U-Boot. For PCI, driver model keeps track of
9ff3e077bSSimon Glass	  available PCI devices, allows scanning of PCI buses and provides
10ff3e077bSSimon Glass	  device configuration support.
11ff3e077bSSimon Glass
123ba5f74aSSimon Glassconfig DM_PCI_COMPAT
133ba5f74aSSimon Glass	bool "Enable compatible functions for PCI"
143ba5f74aSSimon Glass	depends on DM_PCI
153ba5f74aSSimon Glass	help
163ba5f74aSSimon Glass	  Enable compatibility functions for PCI so that old code can be used
173ba5f74aSSimon Glass	  with CONFIG_DM_PCI enabled. This should be used as an interim
183ba5f74aSSimon Glass	  measure when porting a board to use driver model for PCI. Once the
193ba5f74aSSimon Glass	  board is fully supported, this option should be disabled.
203ba5f74aSSimon Glass
21537849aaSSimon Glassconfig PCI_SANDBOX
22537849aaSSimon Glass	bool "Sandbox PCI support"
23537849aaSSimon Glass	depends on SANDBOX && DM_PCI
24537849aaSSimon Glass	help
25537849aaSSimon Glass	  Support PCI on sandbox, as an emulated bus. This permits testing of
26537849aaSSimon Glass	  PCI feature such as bus scanning, device configuration and device
27537849aaSSimon Glass	  access. The available (emulated) devices are defined statically in
28537849aaSSimon Glass	  the device tree but the normal PCI scan technique is used to find
29537849aaSSimon Glass	  then.
30537849aaSSimon Glass
31fde7e189SSimon Glassconfig PCI_TEGRA
32fde7e189SSimon Glass	bool "Tegra PCI support"
33fde7e189SSimon Glass	depends on TEGRA
34*bbc5b36bSStephen Warren	depends on (TEGRA186 && POWER_DOMAIN) || (!TEGRA186)
35fde7e189SSimon Glass	help
36fde7e189SSimon Glass	  Enable support for the PCIe controller found on some generations of
37fde7e189SSimon Glass	  Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has
38fde7e189SSimon Glass	  3 root ports with a total of 6 lanes and Tegra124 has 2 root ports
39fde7e189SSimon Glass	  with a total of 5 lanes. Some boards require this for Ethernet
40fde7e189SSimon Glass	  support to work (e.g. beaver, jetson-tk1).
41fde7e189SSimon Glass
42ff3e077bSSimon Glassendmenu
43