[RFC PATCH 0/3] drivers: pci: refactor pcie_sifive to use pcie_dw_common

Green Wan green.wan at sifive.com
Tue Mar 30 09:36:11 CEST 2021


pcie_dw_common.c is recently posted for designware-based PCIe drivers.

https://lists.denx.de/pipermail/u-boot/2021-March/445536.html

Use this patch set to refactor SiFive PCIe driver to use common code in
pcie_dw_common.c.

Several changes are listed:

  - Move common iomem base address into 'struct pcie_dw'
  - remove unnecessary/unused functions after code merge
  - rename perstn-gpios to reset-gpios
  - rename pcie_sifive.c to pcie_dw_sifive.c

Green Wan (3):
  arch: riscv: dts: change perstn-gpios to reset-gpios of FU740
  drivers: pci: refactor SiFive pcie to use designware common code
  drivers: pci: rename pcie_sifive to pcie_dw_pcie

 arch/riscv/dts/fu740-c000.dtsi     |   2 +-
 configs/sifive_unmatched_defconfig |   1 +
 drivers/pci/Kconfig                |   1 +
 drivers/pci/Makefile               |   2 +-
 drivers/pci/pcie_dw_sifive.c       | 508 ++++++++++++++++++
 drivers/pci/pcie_sifive.c          | 797 -----------------------------
 drivers/pci/pcie_sifive.h          | 374 --------------
 7 files changed, 512 insertions(+), 1173 deletions(-)
 create mode 100644 drivers/pci/pcie_dw_sifive.c
 delete mode 100644 drivers/pci/pcie_sifive.c
 delete mode 100644 drivers/pci/pcie_sifive.h

-- 
2.31.0



More information about the U-Boot mailing list