Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0

menu "DesignWare PCI Core Support"
	depends on CONFIG_PCI

config CONFIG_PCIE_DW
	bool

config CONFIG_PCIE_DW_HOST
        bool
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
        select CONFIG_PCIE_DW

config CONFIG_PCIE_DW_EP
	bool
	depends on CONFIG_PCI_ENDPOINT
	select CONFIG_PCIE_DW

config CONFIG_PCI_DRA7XX
	bool

config CONFIG_PCI_DRA7XX_HOST
	bool "TI DRA7xx PCIe controller Host Mode"
	depends on CONFIG_SOC_DRA7XX || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	depends on CONFIG_OF && CONFIG_HAS_IOMEM && CONFIG_TI_PIPE3
	select CONFIG_PCIE_DW_HOST
	select CONFIG_PCI_DRA7XX
	default y
	help
	  Enables support for the PCIe controller in the DRA7xx SoC to work in
	  host mode. There are two instances of PCIe controller in DRA7xx.
	  This controller can work either as EP or RC. In order to enable
	  host-specific features CONFIG_PCI_DRA7XX_HOST must be selected and in order
	  to enable device-specific features CONFIG_PCI_DRA7XX_EP must be selected.
	  This uses the DesignWare core.

config CONFIG_PCI_DRA7XX_EP
	bool "TI DRA7xx PCIe controller Endpoint Mode"
	depends on CONFIG_SOC_DRA7XX || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_ENDPOINT
	depends on CONFIG_OF && CONFIG_HAS_IOMEM && CONFIG_TI_PIPE3
	select CONFIG_PCIE_DW_EP
	select CONFIG_PCI_DRA7XX
	help
	  Enables support for the PCIe controller in the DRA7xx SoC to work in
	  endpoint mode. There are two instances of PCIe controller in DRA7xx.
	  This controller can work either as EP or RC. In order to enable
	  host-specific features CONFIG_PCI_DRA7XX_HOST must be selected and in order
	  to enable device-specific features CONFIG_PCI_DRA7XX_EP must be selected.
	  This uses the DesignWare core.

config CONFIG_PCIE_DW_PLAT
	bool

config CONFIG_PCIE_DW_PLAT_HOST
	bool "Platform bus based DesignWare PCIe Controller - Host mode"
	depends on CONFIG_PCI && CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	select CONFIG_PCIE_DW_PLAT
	help
	  Enables support for the PCIe controller in the Designware IP to
	  work in host mode. There are two instances of PCIe controller in
	  Designware IP.
	  This controller can work either as EP or RC. In order to enable
	  host-specific features CONFIG_PCIE_DW_PLAT_HOST must be selected and in
	  order to enable device-specific features PCI_DW_PLAT_EP must be
	  selected.

config CONFIG_PCIE_DW_PLAT_EP
	bool "Platform bus based DesignWare PCIe Controller - Endpoint mode"
	depends on CONFIG_PCI && CONFIG_PCI_MSI_IRQ_DOMAIN
	depends on CONFIG_PCI_ENDPOINT
	select CONFIG_PCIE_DW_EP
	select CONFIG_PCIE_DW_PLAT
	help
	  Enables support for the PCIe controller in the Designware IP to
	  work in endpoint mode. There are two instances of PCIe controller
	  in Designware IP.
	  This controller can work either as EP or RC. In order to enable
	  host-specific features CONFIG_PCIE_DW_PLAT_HOST must be selected and in
	  order to enable device-specific features PCI_DW_PLAT_EP must be
	  selected.

config CONFIG_PCI_EXYNOS
	bool "Samsung Exynos PCIe controller"
	depends on CONFIG_SOC_EXYNOS5440 || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST

config CONFIG_PCI_IMX6
	bool "Freescale i.MX6/7/8 PCIe controller"
	depends on CONFIG_ARCH_MXC || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST

config CONFIG_PCIE_SPEAR13XX
	bool "STMicroelectronics SPEAr PCIe controller"
	depends on CONFIG_ARCH_SPEAR13XX || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here if you want PCIe support on SPEAr13XX SoCs.

config CONFIG_PCI_KEYSTONE
	bool

config CONFIG_PCI_KEYSTONE_HOST
	bool "PCI Keystone Host Mode"
	depends on CONFIG_ARCH_KEYSTONE || CONFIG_ARCH_K3 || ((CONFIG_ARM || CONFIG_ARM64) && CONFIG_COMPILE_TEST)
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	select CONFIG_PCI_KEYSTONE
	default y
	help
	  Enables support for the PCIe controller in the Keystone SoC to
	  work in host mode. The CONFIG_PCI controller on Keystone is based on
	  DesignWare hardware and therefore the driver re-uses the
	  DesignWare core functions to implement the driver.

config CONFIG_PCI_KEYSTONE_EP
	bool "PCI Keystone Endpoint Mode"
	depends on CONFIG_ARCH_KEYSTONE || CONFIG_ARCH_K3 || ((CONFIG_ARM || CONFIG_ARM64) && CONFIG_COMPILE_TEST)
	depends on CONFIG_PCI_ENDPOINT
	select CONFIG_PCIE_DW_EP
	select CONFIG_PCI_KEYSTONE
	help
	  Enables support for the PCIe controller in the Keystone SoC to
	  work in endpoint mode. The CONFIG_PCI controller on Keystone is based
	  on DesignWare hardware and therefore the driver re-uses the
	  DesignWare core functions to implement the driver.

config CONFIG_PCI_LAYERSCAPE
	bool "Freescale Layerscape PCIe controller - Host mode"
	depends on CONFIG_OF && (CONFIG_ARM || CONFIG_ARCH_LAYERSCAPE || CONFIG_COMPILE_TEST)
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_MFD_SYSCON
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here if you want to enable PCIe controller support on Layerscape
	  SoCs to work in Host mode.
	  This controller can work either as EP or RC. The RCW[HOST_AGT_PEX]
	  determines which PCIe controller works in EP mode and which PCIe
	  controller works in RC mode.

config CONFIG_PCI_LAYERSCAPE_EP
	bool "Freescale Layerscape PCIe controller - Endpoint mode"
	depends on CONFIG_OF && (CONFIG_ARM || CONFIG_ARCH_LAYERSCAPE || CONFIG_COMPILE_TEST)
	depends on CONFIG_PCI_ENDPOINT
	select CONFIG_PCIE_DW_EP
	help
	  Say Y here if you want to enable PCIe controller support on Layerscape
	  SoCs to work in Endpoint mode.
	  This controller can work either as EP or RC. The RCW[HOST_AGT_PEX]
	  determines which PCIe controller works in EP mode and which PCIe
	  controller works in RC mode.

config CONFIG_PCI_HISI
	depends on CONFIG_OF && (CONFIG_ARM64 || CONFIG_COMPILE_TEST)
	bool "HiSilicon Hip05 and Hip06 SoCs PCIe controllers"
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	select CONFIG_PCI_HOST_COMMON
	help
	  Say Y here if you want PCIe controller support on HiSilicon
	  Hip05 and Hip06 SoCs

config CONFIG_PCIE_QCOM
	bool "Qualcomm PCIe controller"
	depends on CONFIG_OF && (CONFIG_ARCH_QCOM || CONFIG_COMPILE_TEST)
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here to enable PCIe controller support on Qualcomm SoCs. The
	  PCIe controller uses the DesignWare core plus Qualcomm-specific
	  hardware wrappers.

config CONFIG_PCIE_ARMADA_8K
	bool "Marvell Armada-8K PCIe controller"
	depends on CONFIG_ARCH_MVEBU || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here if you want to enable PCIe controller support on
	  Armada-8K SoCs. The PCIe controller on Armada-8K is based on
	  DesignWare hardware and therefore the driver re-uses the
	  DesignWare core functions to implement the driver.

config CONFIG_PCIE_ARTPEC6
	bool

config CONFIG_PCIE_ARTPEC6_HOST
	bool "Axis ARTPEC-6 PCIe controller Host Mode"
	depends on CONFIG_MACH_ARTPEC6 || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	select CONFIG_PCIE_ARTPEC6
	help
	  Enables support for the PCIe controller in the ARTPEC-6 SoC to work in
	  host mode. This uses the DesignWare core.

config CONFIG_PCIE_ARTPEC6_EP
	bool "Axis ARTPEC-6 PCIe controller Endpoint Mode"
	depends on CONFIG_MACH_ARTPEC6 || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_ENDPOINT
	select CONFIG_PCIE_DW_EP
	select CONFIG_PCIE_ARTPEC6
	help
	  Enables support for the PCIe controller in the ARTPEC-6 SoC to work in
	  endpoint mode. This uses the DesignWare core.

config CONFIG_PCIE_KIRIN
	depends on CONFIG_OF && (CONFIG_ARM64 || CONFIG_COMPILE_TEST)
	bool "HiSilicon Kirin series SoCs PCIe controllers"
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here if you want PCIe controller support
	  on HiSilicon Kirin series SoCs.

config CONFIG_PCIE_HISI_STB
	bool "HiSilicon STB SoCs PCIe controllers"
	depends on CONFIG_ARCH_HISI || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
          Say Y here if you want PCIe controller support on HiSilicon STB SoCs

config CONFIG_PCI_MESON
	bool "MESON PCIe controller"
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here if you want to enable CONFIG_PCI controller support on Amlogic
	  SoCs. The CONFIG_PCI controller on Amlogic is based on DesignWare hardware
	  and therefore the driver re-uses the DesignWare core functions to
	  implement the driver.

config CONFIG_PCIE_TEGRA194
	tristate "NVIDIA Tegra194 (and later) PCIe controller"
	depends on CONFIG_ARCH_TEGRA_194_SOC || CONFIG_COMPILE_TEST
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	select CONFIG_PHY_TEGRA194_P2U
	help
	  Say Y here if you want support for DesignWare core based PCIe host
	  controller found in NVIDIA Tegra194 SoC.

config CONFIG_PCIE_UNIPHIER
	bool "Socionext UniPhier PCIe controllers"
	depends on CONFIG_ARCH_UNIPHIER || CONFIG_COMPILE_TEST
	depends on CONFIG_OF && CONFIG_HAS_IOMEM
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here if you want PCIe controller support on UniPhier SoCs.
	  This driver supports LD20 and PXs3 SoCs.

config CONFIG_PCIE_AL
	bool "Amazon Annapurna Labs PCIe controller"
	depends on CONFIG_OF && (CONFIG_ARM64 || CONFIG_COMPILE_TEST)
	depends on CONFIG_PCI_MSI_IRQ_DOMAIN
	select CONFIG_PCIE_DW_HOST
	help
	  Say Y here to enable support of the Amazon's Annapurna Labs PCIe
	  controller IP on Amazon SoCs. The PCIe controller uses the DesignWare
	  core plus Annapurna Labs proprietary hardware wrappers. This is
	  required only for DT-based platforms. CONFIG_ACPI platforms with the
	  Annapurna Labs PCIe controller don't need to enable this.

endmenu