From patchwork Mon Jan 6 12:05:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wasim Khan X-Patchwork-Id: 239149 List-Id: U-Boot discussion From: wasim.khan at nxp.com (Wasim Khan) Date: Mon, 6 Jan 2020 12:05:55 +0000 Subject: [PATCH v4 0/4] Enablement of PCIe controller for lx2160a rev2 Message-ID: <1578312338-15545-1-git-send-email-wasim.khan@nxp.com> lx2160a rev1 PCIe controller uses pcie_layerscape_gen4 driver and lx2160a rev2 PCIe controller uses pcie_layerscape driver. This patch set enables support for lx2160a rev2 and uses pcie_layerscape or pcie_layerscape_gen4 driver based on SoC. Also organize the device tree fixup in common, layerscape and layerscape_gen4 specific code. Some patches from this patch series are already accepted. Changes in v4: 1-Fixup compilation warnings faced with pcie_layerscape_fixup_common.c file 2-Updated NXP copyright 3-remove num-lanes fixup Changes in v3: 1-Updated patch subject and description based on Priyanka Jain review comments 2-fix compilation errors with lx2160aqds_tfa_SECURE_BOOT_defconfig and lx2160ardb_tfa_SECURE_BOOT_defconfig 3-Enabled CONFIG_OF_BOARD_FIXUP for lx2160aqds_tfa_SECURE_BOOT_defconfig and lx2160ardb_tfa_SECURE_BOOT_defconfig Changes in v2: Updated patch subject and description based on Priyanka Jain Wasim Khan (4): pci: layerscape: Common device tree fixup for NXP SoCs pci: layerscape: Move streamId allocation to common device tree fixup pci: layerscape: device tree fixup based on SoC and configs: lx2160a: enable CONFIG_OF_BOARD_FIXUP for SECURE_BOOT defconfig configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 2 + configs/lx2160aqds_tfa_defconfig | 1 + configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 2 + configs/lx2160ardb_tfa_defconfig | 1 + drivers/pci/Makefile | 5 +- drivers/pci/pcie_layerscape_fixup.c | 23 ++--- drivers/pci/pcie_layerscape_fixup_common.c | 124 +++++++++++++++++++++++++++ drivers/pci/pcie_layerscape_fixup_common.h | 22 +++++ drivers/pci/pcie_layerscape_gen4_fixup.c | 24 ++---- 9 files changed, 170 insertions(+), 34 deletions(-) create mode 100644 drivers/pci/pcie_layerscape_fixup_common.c create mode 100644 drivers/pci/pcie_layerscape_fixup_common.h