[PATCH RFT 1/4] pci: add common Designware PCIe functions

Bin Meng bmeng.cn at gmail.com
Mon Mar 22 10:41:15 CET 2021


+Green Wan for SiFive FU740 PCIe which is another variant of DW PCIe

On Mon, Mar 22, 2021 at 5:18 PM Neil Armstrong <narmstrong at baylibre.com> wrote:
>
> 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 at baylibre.com>
> ---
>  drivers/pci/Kconfig          |   4 +
>  drivers/pci/Makefile         |   1 +
>  drivers/pci/pcie_dw_common.c | 352 +++++++++++++++++++++++++++++++++++
>  drivers/pci/pcie_dw_common.h | 153 +++++++++++++++
>  4 files changed, 510 insertions(+)
>  create mode 100644 drivers/pci/pcie_dw_common.c
>  create mode 100644 drivers/pci/pcie_dw_common.h
>

Regards,
Bin


More information about the U-Boot mailing list