-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI: cadence: Add EndPoint Controller driver for Cadence PCIe controller
This patch adds support to the Cadence PCIe controller in endpoint mode. Since pieces of source code are shared with the host driver (Root Complex mode), we create a new directory under drivers/pci dedicated to the Cadence PCIe controller. The common code is placed into drivers/pci/cadence/pcie-cadence.c and used by both the host and endpoint controller drivers. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@free-electrons.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
- Loading branch information
Cyrille Pitchen
authored and
Lorenzo Pieralisi
committed
Jan 31, 2018
1 parent
6618f4d
commit 37dddf1
Showing
11 changed files
with
826 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
menu "Cadence PCIe controllers support" | ||
|
||
config PCIE_CADENCE | ||
bool | ||
|
||
config PCIE_CADENCE_HOST | ||
bool "Cadence PCIe host controller" | ||
depends on OF | ||
depends on PCI | ||
select IRQ_DOMAIN | ||
select PCIE_CADENCE | ||
help | ||
Say Y here if you want to support the Cadence PCIe controller in host | ||
mode. This PCIe controller may be embedded into many different vendors | ||
SoCs. | ||
|
||
config PCIE_CADENCE_EP | ||
bool "Cadence PCIe endpoint controller" | ||
depends on OF | ||
depends on PCI_ENDPOINT | ||
select PCIE_CADENCE | ||
help | ||
Say Y here if you want to support the Cadence PCIe controller in | ||
endpoint mode. This PCIe controller may be embedded into many | ||
different vendors SoCs. | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
obj-$(CONFIG_PCIE_CADENCE) += pcie-cadence.o | ||
obj-$(CONFIG_PCIE_CADENCE_HOST) += pcie-cadence-host.o | ||
obj-$(CONFIG_PCIE_CADENCE_EP) += pcie-cadence-ep.o |
Oops, something went wrong.