Skip to content

pci: add common Designware PCIe functions and support Amlogic Meson PCIe controller

Neil Armstrong u-boot u-boot-amlogic 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pci: add common Designware PCIe functionsdrivers/pci/Kconfig drivers/pci/Makefile drivers/pci/pcie_dw_common.c +1 more+510 -02 replies
1/4pci: add common Designware PCIe functions+0 -00 replies
2/4pci: pcie_dw_ti: migrate to common Designware PCIe functionsdrivers/pci/Kconfig drivers/pci/pcie_dw_ti.c+38 -4070 replies
3/4pci: pcie_dw_rockchip: migrate to common Designware PCIe functionsdrivers/pci/Kconfig drivers/pci/pcie_dw_rockchip.c+30 -4440 replies
4/4pci: add Amlogic Meson Designware PCIe controllerdrivers/pci/Kconfig drivers/pci/Makefile drivers/pci/pcie_dw_meson.c+468 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFT 0/4] pci: add common Designware PCIe functions and support Amlogic Meson PCIe controller

With the introduction of pcie_dw_rockchip, and need to support the DW PCIe in the Amlogic AXG & G12 SoCs, most of the DW PCIe helpers would be duplicated.

This introduce a "common" DW PCIe helpers file with common code merged from the dw_ti and dw_rockchip drivers and adapted to fit with the upcoming dw_meson.

The following changes will switch the dw_ti and dw_rockchip, and introduce a new driver to support the Amlogic AXG & G12 SoCs using these new common helpers.

The dw_meson has been validated, but the dw_ti and dw_rockchip would need testing on hardware to validate nothing has been broken.

Neil Armstrong (4):
pci: add common Designware PCIe functions
pci: pcie_dw_ti: migrate to common Designware PCIe functions
pci: pcie_dw_rockchip: migrate to common Designware PCIe functions
pci: add Amlogic Meson Designware PCIe controller

 drivers/pci/Kconfig            |  15 +-
 drivers/pci/Makefile           |   2 +
 drivers/pci/pcie_dw_common.c   | 352 ++++++++++++++++++++++++
 drivers/pci/pcie_dw_common.h   | 153 +++++++++++
 drivers/pci/pcie_dw_meson.c    | 459 ++++++++++++++++++++++++++++++++
 drivers/pci/pcie_dw_rockchip.c | 472 ++-------------------------------
 drivers/pci/pcie_dw_ti.c       | 444 +++----------------------------
 7 files changed, 1046 insertions(+), 851 deletions(-)
 create mode 100644 drivers/pci/pcie_dw_common.c
 create mode 100644 drivers/pci/pcie_dw_common.h
 create mode 100644 drivers/pci/pcie_dw_meson.c
Signature · 1 line
2.25.1