Skip to content

Commit 0412ee0

Browse files
hhhui-LAvenger-285714
authored andcommitted
pci: phytium: Add PCIe endpoint controller support
Add PCIe endpoint controller driver for Phytium Pd2008 SoC. Signed-off-by: Li Guohui <[email protected]> Signed-off-by: Yang Xun <[email protected]> Signed-off-by: Chen Baozi <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]>
1 parent c927ed4 commit 0412ee0

File tree

5 files changed

+649
-0
lines changed

5 files changed

+649
-0
lines changed

drivers/pci/controller/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,16 @@ config PCIE_MT7621
215215
help
216216
This selects a driver for the MediaTek MT7621 PCIe Controller.
217217

218+
config PCIE_PHYTIUM_EP
219+
tristate "Phytium PCIe endpoint controller"
220+
depends on OF
221+
depends on PCI_ENDPOINT
222+
help
223+
Say Y here if you want to support Phytium PCIe controller in
224+
endpoint mode on Phytium SoC. The controller can act as Root Port
225+
or End Point with different phytium firmware. But End Point mode only support
226+
one physical function.
227+
218228
config PCIE_MICROCHIP_HOST
219229
tristate "Microchip AXI PCIe controller"
220230
depends on PCI_MSI && OF

drivers/pci/controller/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ obj-$(CONFIG_PCI_LOONGSON) += pci-loongson.o
3939
obj-$(CONFIG_PCIE_HISI_ERR) += pcie-hisi-error.o
4040
obj-$(CONFIG_PCIE_APPLE) += pcie-apple.o
4141
obj-$(CONFIG_PCIE_MT7621) += pcie-mt7621.o
42+
obj-$(CONFIG_PCIE_PHYTIUM_EP) += pcie-phytium-ep.o
4243

4344
# pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW
4445
obj-y += dwc/

0 commit comments

Comments
 (0)