[U-Boot] [PATCH v2 0/4] Add Cadence PCIe endpoint driver with new uclass
Ramon Fried
ramon.fried at gmail.com
Wed Apr 24 18:53:43 UTC 2019
This patchset adds support for new uclass, UCLASS_PCI_EP
allowing new set of PCI endpoint drivers.
Included in the patch is also a driver for Cadence PCIe endpoint.
Changes in V2:
- Removed "pci.h: add missing maskbit" as it was already merged
by Simon.
- Added PCI endpoint sandbox driver
- Added testing for sandbox driver
- Addressed issues raised by Simon in UCLASS_PCI_EP class implementation
Ramon Fried (4):
drivers: pci_ep: Introduce UCLASS_PCI_EP uclass
pci_ep: add Cadence PCIe endpoint driver
pci_ep: add pci_ep sandbox driver
test: pci_ep: add basic pci_ep tests
arch/sandbox/dts/test.dts | 4 +
configs/sandbox64_defconfig | 2 +
configs/sandbox_defconfig | 2 +
.../pci_endpoint/cdns,cdns-pcie-ep.txt | 18 +
drivers/Kconfig | 2 +
drivers/Makefile | 1 +
drivers/pci_endpoint/Kconfig | 32 ++
drivers/pci_endpoint/Makefile | 8 +
drivers/pci_endpoint/pci_ep-uclass.c | 189 +++++++++
drivers/pci_endpoint/pcie-cadence-ep.c | 177 ++++++++
drivers/pci_endpoint/pcie-cadence.h | 309 ++++++++++++++
drivers/pci_endpoint/sandbox-pci_ep.c | 176 ++++++++
include/dm/uclass-id.h | 1 +
include/pci_ep.h | 388 ++++++++++++++++++
test/dm/Makefile | 1 +
test/dm/pci_ep.c | 45 ++
16 files changed, 1355 insertions(+)
create mode 100644 doc/device-tree-bindings/pci_endpoint/cdns,cdns-pcie-ep.txt
create mode 100644 drivers/pci_endpoint/Kconfig
create mode 100644 drivers/pci_endpoint/Makefile
create mode 100644 drivers/pci_endpoint/pci_ep-uclass.c
create mode 100644 drivers/pci_endpoint/pcie-cadence-ep.c
create mode 100644 drivers/pci_endpoint/pcie-cadence.h
create mode 100644 drivers/pci_endpoint/sandbox-pci_ep.c
create mode 100644 include/pci_ep.h
create mode 100644 test/dm/pci_ep.c
--
2.21.0
More information about the U-Boot
mailing list