OSDN Git Service

PCI: layerscape: Add the bar_fixed_64bit property to the endpoint driver
authorXiaowei Bao <xiaowei.bao@nxp.com>
Wed, 14 Aug 2019 02:03:29 +0000 (10:03 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 14 Aug 2019 09:48:10 +0000 (10:48 +0100)
The layerscape PCIe controller have 4 BARs.

 BAR0 and BAR1 are 32bit, BAR2 and BAR4 are 64bit and that's a
fixed hardware configuration.

Set the bar_fixed_64bit variable accordingly.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/controller/dwc/pci-layerscape-ep.c

index be61d96..ca9aa45 100644 (file)
@@ -44,6 +44,7 @@ static const struct pci_epc_features ls_pcie_epc_features = {
        .linkup_notifier = false,
        .msi_capable = true,
        .msix_capable = false,
+       .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4),
 };
 
 static const struct pci_epc_features*