PCI: dwc: dra7xx: Refactor Kconfig and Makefile handling for host/ep mode
Refactor the Kconfig and Makefile handling for host/ep mode, since the previous handling was a bit unorthodox and would have been a bit bloated once more DWC based controllers added support for ep mode. Signed-off-by: Niklas Cassel <niklas.cassel@axis.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
parent
6f6d787371
commit
b052835c63
|
@ -15,39 +15,38 @@ config PCIE_DW_EP
|
||||||
select PCIE_DW
|
select PCIE_DW
|
||||||
|
|
||||||
config PCI_DRA7XX
|
config PCI_DRA7XX
|
||||||
bool "TI DRA7xx PCIe controller"
|
bool
|
||||||
depends on SOC_DRA7XX || COMPILE_TEST
|
|
||||||
depends on (PCI && PCI_MSI_IRQ_DOMAIN) || PCI_ENDPOINT
|
|
||||||
depends on OF && HAS_IOMEM && TI_PIPE3
|
|
||||||
help
|
|
||||||
Enables support for the PCIe controller in the DRA7xx SoC. 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
|
|
||||||
PCI_DRA7XX_HOST must be selected and in order to enable device-
|
|
||||||
specific features PCI_DRA7XX_EP must be selected. This uses
|
|
||||||
the DesignWare core.
|
|
||||||
|
|
||||||
if PCI_DRA7XX
|
|
||||||
|
|
||||||
config PCI_DRA7XX_HOST
|
config PCI_DRA7XX_HOST
|
||||||
bool "PCI DRA7xx Host Mode"
|
bool "TI DRA7xx PCIe controller Host Mode"
|
||||||
depends on PCI
|
depends on SOC_DRA7XX || COMPILE_TEST
|
||||||
depends on PCI_MSI_IRQ_DOMAIN
|
depends on PCI && PCI_MSI_IRQ_DOMAIN
|
||||||
|
depends on OF && HAS_IOMEM && TI_PIPE3
|
||||||
select PCIE_DW_HOST
|
select PCIE_DW_HOST
|
||||||
|
select PCI_DRA7XX
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Enables support for the PCIe controller in the DRA7xx SoC to work in
|
Enables support for the PCIe controller in the DRA7xx SoC to work in
|
||||||
host mode.
|
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 PCI_DRA7XX_HOST must be selected and in order
|
||||||
|
to enable device-specific features PCI_DRA7XX_EP must be selected.
|
||||||
|
This uses the DesignWare core.
|
||||||
|
|
||||||
config PCI_DRA7XX_EP
|
config PCI_DRA7XX_EP
|
||||||
bool "PCI DRA7xx Endpoint Mode"
|
bool "TI DRA7xx PCIe controller Endpoint Mode"
|
||||||
|
depends on SOC_DRA7XX || COMPILE_TEST
|
||||||
depends on PCI_ENDPOINT
|
depends on PCI_ENDPOINT
|
||||||
|
depends on OF && HAS_IOMEM && TI_PIPE3
|
||||||
select PCIE_DW_EP
|
select PCIE_DW_EP
|
||||||
|
select PCI_DRA7XX
|
||||||
help
|
help
|
||||||
Enables support for the PCIe controller in the DRA7xx SoC to work in
|
Enables support for the PCIe controller in the DRA7xx SoC to work in
|
||||||
endpoint mode.
|
endpoint mode. There are two instances of PCIe controller in DRA7xx.
|
||||||
|
This controller can work either as EP or RC. In order to enable
|
||||||
endif
|
host-specific features PCI_DRA7XX_HOST must be selected and in order
|
||||||
|
to enable device-specific features PCI_DRA7XX_EP must be selected.
|
||||||
|
This uses the DesignWare core.
|
||||||
|
|
||||||
config PCIE_DW_PLAT
|
config PCIE_DW_PLAT
|
||||||
bool "Platform bus based DesignWare PCIe Controller"
|
bool "Platform bus based DesignWare PCIe Controller"
|
||||||
|
|
|
@ -3,9 +3,7 @@ obj-$(CONFIG_PCIE_DW) += pcie-designware.o
|
||||||
obj-$(CONFIG_PCIE_DW_HOST) += pcie-designware-host.o
|
obj-$(CONFIG_PCIE_DW_HOST) += pcie-designware-host.o
|
||||||
obj-$(CONFIG_PCIE_DW_EP) += pcie-designware-ep.o
|
obj-$(CONFIG_PCIE_DW_EP) += pcie-designware-ep.o
|
||||||
obj-$(CONFIG_PCIE_DW_PLAT) += pcie-designware-plat.o
|
obj-$(CONFIG_PCIE_DW_PLAT) += pcie-designware-plat.o
|
||||||
ifneq ($(filter y,$(CONFIG_PCI_DRA7XX_HOST) $(CONFIG_PCI_DRA7XX_EP)),)
|
obj-$(CONFIG_PCI_DRA7XX) += pci-dra7xx.o
|
||||||
obj-$(CONFIG_PCI_DRA7XX) += pci-dra7xx.o
|
|
||||||
endif
|
|
||||||
obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o
|
obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o
|
||||||
obj-$(CONFIG_PCI_IMX6) += pci-imx6.o
|
obj-$(CONFIG_PCI_IMX6) += pci-imx6.o
|
||||||
obj-$(CONFIG_PCIE_SPEAR13XX) += pcie-spear13xx.o
|
obj-$(CONFIG_PCIE_SPEAR13XX) += pcie-spear13xx.o
|
||||||
|
|
Loading…
Reference in New Issue