PCI: xilinx-cpm: Add support for Versal CPM5 Root Port
authorBharat Kumar Gogada <bharat.kumar.gogada@xilinx.com>
Tue, 5 Jul 2022 10:56:46 +0000 (16:26 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 22 Jul 2022 19:21:06 +0000 (14:21 -0500)
commit51f1ffc00d95e3e6bb53af456d2716d2a07f2d99
treebab7678b00707b7f49e8a0fba057bd72e3078a44
parent49f40703ca91c8428dd35e7331ae6c098e61b100
PCI: xilinx-cpm: Add support for Versal CPM5 Root Port

The Xilinx Versal Premium series has CPM5 block which supports Root Port
functioning at Gen5 speed.

Xilinx Versal CPM5 has a few changes from the existing CPM block:

  - CPM5 has dedicated register space for control and status registers.

  - CPM5 legacy interrupt handling needs additional register bit to enable
    and handle legacy interrupts.

Add support for the new CPM5 features.

[bhelgaas: compare variant->version with CPM5 explicitly]
Link: https://lore.kernel.org/r/20220705105646.16980-3-bharat.kumar.gogada@xilinx.com
Signed-off-by: Bharat Kumar Gogada <bharat.kumar.gogada@xilinx.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-xilinx-cpm.c