Skip to contentSkip to conversation

hw: xilinx-pcie: Add support for Xilinx AXI PCIe Controller

PATCH Superseded Yongbok Kim 1 participant 1 message Feb 8, 2017 Arm/Zynq architecture

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 7/8 hw: xilinx-pcie: Add support for Xilinx AXI PCIe Controller

From: Paul Burton <[email protected]>

Add support for emulating the Xilinx AXI Root Port Bridge for PCI Express as described by Xilinx' PG055 document. This is a PCIe controller that can be used with certain series of Xilinx FPGAs, and is used on the MIPS Boston board which will make use of this code.

[[email protected]:
removed returning on !level,
updated IRQ connection with GPIO logic,
moved xilinx_pcie_init() to boston.c
replaced stw_le_p() with pci_set_word()
and other cosmetic changes]

---
 hw/pci-host/Makefile.objs         |   1 +
 hw/pci-host/xilinx-pcie.c         | 328 ++++++++++++++++++++++++++++++++++++++
 include/hw/pci-host/xilinx-pcie.h |  68 ++++++++
 3 files changed, 397 insertions(+)
 create mode 100644 hw/pci-host/xilinx-pcie.c
 create mode 100644 include/hw/pci-host/xilinx-pcie.h
hw/pci-host/Makefile.objs +1 -0
index 45f1f0e..9c7909c 100644
@@ -16,3 +16,4 @@ common-obj-$(CONFIG_FULONG) += bonito.o
 common-obj-$(CONFIG_PCI_PIIX) += piix.o
 common-obj-$(CONFIG_PCI_Q35) += q35.o
 common-obj-$(CONFIG_PCI_GENERIC) += gpex.o
+common-obj-$(CONFIG_PCI_XILINX) += xilinx-pcie.o
hw/pci-host/xilinx-pcie.c new file +328 -0

328 lines not on this page · raw message

include/hw/pci-host/xilinx-pcie.h new file +68 -0

68 lines not on this page · raw message

Signature · 1 line
2.7.4