pci: add common Designware PCIe functions
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 25 Mar 2021 14:49:18 +0000 (15:49 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 15 Apr 2021 02:43:17 +0000 (10:43 +0800)
commitdfadb946f65b97c4607ccb8be64fca16672e9ea2
tree78e8f82508ab03d14c48993dc425ed70ff60e2da
parent21296b093e90d9dbe99b7b23bc9dcad79d824034
pci: add common Designware PCIe functions

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 to use these helpers.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Green Wan <green.wan@sifive.com>
[bmeng: remove the blank line at EOF of drivers/pci/pcie_dw_common.c]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/Kconfig
drivers/pci/Makefile
drivers/pci/pcie_dw_common.c [new file with mode: 0644]
drivers/pci/pcie_dw_common.h [new file with mode: 0644]