PCI: cadence: Refactor driver to use as a core library
Cadence PCIe host and endpoint IP may be embedded into a variety of SoCs/platforms. Let's extract the platform related APIs/Structures in the current driver to a separate file (pcie-cadence-plat.c), such that the common functionality can be used by future platforms. Signed-off-by:Tom Joseph <tjoseph@cadence.com> Signed-off-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by:
Andrew Murray <andrew.murray@arm.com>
Showing
- drivers/pci/controller/Kconfig 23 additions, 8 deletionsdrivers/pci/controller/Kconfig
- drivers/pci/controller/Makefile 1 addition, 0 deletionsdrivers/pci/controller/Makefile
- drivers/pci/controller/pcie-cadence-ep.c 5 additions, 91 deletionsdrivers/pci/controller/pcie-cadence-ep.c
- drivers/pci/controller/pcie-cadence-host.c 7 additions, 88 deletionsdrivers/pci/controller/pcie-cadence-host.c
- drivers/pci/controller/pcie-cadence-plat.c 174 additions, 0 deletionsdrivers/pci/controller/pcie-cadence-plat.c
- drivers/pci/controller/pcie-cadence.h 77 additions, 0 deletionsdrivers/pci/controller/pcie-cadence.h
Loading
Please register or sign in to comment