]> Git Repo - J-u-boot.git/blobdiff - drivers/pci/Kconfig
pci: Require DM_PCI
[J-u-boot.git] / drivers / pci / Kconfig
index 6d8c22aacf25937fee18acb115c4f6ae4a5591a2..2ef4d46797e07ef3ee97fc76459a9202d090f33b 100644 (file)
@@ -1,22 +1,23 @@
 menuconfig PCI
        bool "PCI support"
+       depends on DM
        default y if PPC
+       select DM_PCI
        help
          Enable support for PCI (Peripheral Interconnect Bus), a type of bus
          used on some devices to allow the CPU to communicate with its
          peripherals.
 
-if PCI
-
 config DM_PCI
-       bool "Enable driver model for PCI"
-       depends on DM
+       bool
        help
          Use driver model for PCI. Driver model is the new method for
          orgnising devices in U-Boot. For PCI, driver model keeps track of
          available PCI devices, allows scanning of PCI buses and provides
          device configuration support.
 
+if PCI
+
 config DM_PCI_COMPAT
        bool "Enable compatible functions for PCI"
        depends on DM_PCI
@@ -30,6 +31,7 @@ config PCI_AARDVARK
        bool "Enable Aardvark PCIe driver"
        default n
        depends on DM_PCI
+       depends on DM_GPIO
        depends on ARMADA_3700
        help
          Say Y here if you want to enable PCIe controller support on
@@ -43,6 +45,48 @@ config PCI_PNP
        help
          Enable PCI memory and I/O space resource allocation and assignment.
 
+config PCI_REGION_MULTI_ENTRY
+       bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
+       depends on PCI || DM_PCI
+       default n
+       help
+         Enable PCI memory regions to be of multiple entry. Multiple entry
+         here refers to allow more than one count of address ranges for MEMORY
+         region type. This helps to add support for SoC's like OcteonTX/TX2
+         where every peripheral is on the PCI bus.
+
+config PCI_MAP_SYSTEM_MEMORY
+       bool "Map local system memory from a virtual base address"
+       depends on PCI || DM_PCI
+       depends on MIPS
+       default n
+       help
+         Say Y if base address of system memory is being used as a virtual address
+         instead of a physical address (e.g. on MIPS). The PCI core will then remap
+         the virtual memory base address to a physical address when adding the PCI
+         region of type PCI_REGION_SYS_MEMORY.
+         This should only be required on MIPS where CONFIG_SYS_SDRAM_BASE is still
+         being used as virtual address.
+
+config PCI_SRIOV
+       bool "Enable Single Root I/O Virtualization support for PCI"
+       depends on PCI || DM_PCI
+       default n
+       help
+         Say Y here if you want to enable PCI Single Root I/O Virtualization
+         capability support. This helps to enumerate Virtual Function devices
+         if available on a PCI Physical Function device and probe for
+         applicable drivers.
+
+config PCI_ARID
+        bool "Enable Alternate Routing-ID support for PCI"
+        depends on PCI || DM_PCI
+        default n
+        help
+          Say Y here if you want to enable Alternate Routing-ID capability
+          support on PCI devices. This helps to skip some devices in BDF
+          scan that are not present.
+
 config PCIE_ECAM_GENERIC
        bool "Generic ECAM-based PCI host controller support"
        default n
@@ -51,6 +95,18 @@ config PCIE_ECAM_GENERIC
          Say Y here if you want to enable support for generic ECAM-based
          PCIe host controllers, such as the one emulated by QEMU.
 
+config PCIE_ECAM_SYNQUACER
+       bool "SynQuacer ECAM-based PCI host controller support"
+       default n
+       depends on DM_PCI
+       select PCI_INIT_R
+       select PCI_REGION_MULTI_ENTRY
+       help
+         Say Y here if you want to enable support for Socionext
+         SynQuacer SoC's ECAM-based PCIe host controllers.
+         Note that this must be configured when boot because Linux driver
+         expects the PCIe RC has been configured in the bootloader.
+
 config PCI_PHYTIUM
        bool "Phytium PCIe support"
        depends on DM_PCI
@@ -67,6 +123,16 @@ config PCIE_DW_MVEBU
          Armada-8K SoCs. The PCIe controller on Armada-8K is based on
          DesignWare hardware.
 
+config PCIE_DW_SIFIVE
+       bool "Enable SiFive FU740 PCIe"
+       depends on CLK_SIFIVE_PRCI
+       depends on RESET_SIFIVE
+       depends on SIFIVE_GPIO
+       select PCIE_DW_COMMON
+       help
+         Say Y here if you want to enable PCIe controller support on
+         FU740.
+
 config PCIE_FSL
        bool "FSL PowerPC PCIe support"
        depends on DM_PCI
@@ -120,6 +186,20 @@ config PCI_TEGRA
          with a total of 5 lanes. Some boards require this for Ethernet
          support to work (e.g. beaver, jetson-tk1).
 
+config PCI_OCTEONTX
+       bool "OcteonTX PCI support"
+       depends on (ARCH_OCTEONTX || ARCH_OCTEONTX2)
+       help
+         Enable support for the OcteonTX/TX2 SoC family ECAM/PEM controllers.
+         These controllers provide PCI configuration access to all on-board
+         peripherals so it should only be disabled for testing purposes
+
+config PCIE_OCTEON
+       bool "MIPS Octeon PCIe support"
+       depends on ARCH_OCTEON
+       help
+         Enable support for the MIPS Octeon SoC family PCIe controllers.
+
 config PCI_XILINX
        bool "Xilinx AXI Bridge for PCI Express"
        depends on DM_PCI
@@ -128,12 +208,41 @@ config PCI_XILINX
          which can be used on some generations of Xilinx FPGAs.
 
 config PCIE_LAYERSCAPE
-       bool "Layerscape PCIe support"
+       bool
+       default n
+
+config PCIE_LAYERSCAPE_RC
+       bool "Layerscape PCIe Root Complex mode support"
+       depends on DM_PCI
+       select PCIE_LAYERSCAPE
+       help
+         Enable Layerscape PCIe Root Complex mode driver support. The Layerscape
+         SoC may have one or several PCIe controllers. Each controller can be
+         configured to Root Complex mode by clearing the corresponding bit of
+         RCW[HOST_AGT_PEX].
+
+config PCI_IOMMU_EXTRA_MAPPINGS
+       bool "Support for specifying extra IOMMU mappings for PCI"
+       depends on PCIE_LAYERSCAPE_RC
+       help
+         Enable support for specifying extra IOMMU mappings for PCI
+         controllers through a special env var called "pci_iommu_extra" or
+         through a device tree property named "pci-iommu-extra" placed in
+         the node describing the PCI controller.
+         The intent is to cover SR-IOV scenarios which need mappings for VFs
+         and PCI hot-plug scenarios. More documentation can be found under:
+           arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra
+
+config PCIE_LAYERSCAPE_EP
+       bool "Layerscape PCIe Endpoint mode support"
        depends on DM_PCI
+       select PCIE_LAYERSCAPE
+       select PCI_ENDPOINT
        help
-         Support Layerscape PCIe. The Layerscape SoC may have one or several
-         PCIe controllers. The PCIe may works in RC or EP mode according to
-         RCW[HOST_AGT_PEX] setting.
+         Enable Layerscape PCIe Endpoint mode driver support. The Layerscape
+         SoC may have one or several PCIe controllers. Each controller can be
+         configured to Endpoint mode by setting the corresponding bit of
+         RCW[HOST_AGT_PEX].
 
 config PCIE_LAYERSCAPE_GEN4
        bool "Layerscape Gen4 PCIe support"
@@ -145,7 +254,7 @@ config PCIE_LAYERSCAPE_GEN4
 
 config FSL_PCIE_COMPAT
        string "PCIe compatible of Kernel DT"
-       depends on PCIE_LAYERSCAPE || PCIE_LAYERSCAPE_GEN4
+       depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
        default "fsl,ls1012a-pcie" if ARCH_LS1012A
        default "fsl,ls1028a-pcie" if ARCH_LS1028A
        default "fsl,ls1043a-pcie" if ARCH_LS1043A
@@ -153,6 +262,7 @@ config FSL_PCIE_COMPAT
        default "fsl,ls2080a-pcie" if ARCH_LS2080A
        default "fsl,ls1088a-pcie" if ARCH_LS1088A
        default "fsl,lx2160a-pcie" if ARCH_LX2160A
+       default "fsl,ls2088a-pcie" if ARCH_LX2162A
        default "fsl,ls1021a-pcie" if ARCH_LS1021A
        help
          This compatible is used to find pci controller node in Kernel DT
@@ -160,7 +270,7 @@ config FSL_PCIE_COMPAT
 
 config FSL_PCIE_EP_COMPAT
        string "PCIe EP compatible of Kernel DT"
-       depends on PCIE_LAYERSCAPE || PCIE_LAYERSCAPE_GEN4
+       depends on PCIE_LAYERSCAPE_RC || PCIE_LAYERSCAPE_GEN4
        default "fsl,lx2160a-pcie-ep" if ARCH_LX2160A
        default "fsl,ls-pcie-ep"
        help
@@ -174,6 +284,13 @@ config PCIE_INTEL_FPGA
          Say Y here if you want to enable PCIe controller support on Intel
          FPGA, example Stratix 10.
 
+config PCIE_IPROC
+       bool "Iproc PCIe support"
+       depends on DM_PCI
+       help
+         Broadcom iProc PCIe controller driver.
+         Say Y here if you want to enable Broadcom iProc PCIe controller,
+
 config PCI_MVEBU
        bool "Enable Armada XP/38x PCIe driver"
        depends on ARCH_MVEBU
@@ -183,9 +300,13 @@ config PCI_MVEBU
          Say Y here if you want to enable PCIe controller support on
          Armada XP/38x SoCs.
 
+config PCIE_DW_COMMON
+       bool
+       select DM_PCI
+
 config PCI_KEYSTONE
        bool "TI Keystone PCIe controller"
-       depends on DM_PCI
+       select PCIE_DW_COMMON
        help
          Say Y here if you want to enable PCI controller support on AM654 SoC.
 
@@ -197,12 +318,50 @@ config PCIE_MEDIATEK
          Say Y here if you want to enable Gen2 PCIe controller,
          which could be found on MT7623 SoC family.
 
+config PCIE_DW_MESON
+       bool "Amlogic Meson DesignWare based PCIe controller"
+       depends on ARCH_MESON
+       select PCIE_DW_COMMON
+       help
+         Say Y here if you want to enable DW PCIe controller support on
+         Amlogic SoCs.
+
 config PCIE_ROCKCHIP
        bool "Enable Rockchip PCIe driver"
+       depends on ARCH_ROCKCHIP
        select DM_PCI
+       select PHY_ROCKCHIP_PCIE
        default y if ROCKCHIP_RK3399
        help
          Say Y here if you want to enable PCIe controller support on
          Rockchip SoCs.
 
+config PCIE_DW_ROCKCHIP
+       bool "Rockchip DesignWare based PCIe controller"
+       depends on ARCH_ROCKCHIP
+       select PCIE_DW_COMMON
+       select PHY_ROCKCHIP_SNPS_PCIE3
+       help
+         Say Y here if you want to enable DW PCIe controller support on
+         Rockchip SoCs.
+
+config PCI_BRCMSTB
+       bool "Broadcom STB PCIe controller"
+       depends on DM_PCI
+       depends on ARCH_BCM283X
+       help
+         Say Y here if you want to enable support for PCIe controller
+         on Broadcom set-top-box (STB) SoCs.
+         This driver currently supports only BCM2711 SoC and RC mode
+         of the controller.
+
+config PCIE_UNIPHIER
+       bool "Socionext UniPhier PCIe driver"
+       depends on DM_PCI
+       depends on ARCH_UNIPHIER
+       select PHY_UNIPHIER_PCIE
+       help
+         Say Y here if you want to enable PCIe controller support on
+         UniPhier SoCs.
+
 endif
This page took 0.037917 seconds and 4 git commands to generate.