]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
PCI: layerscape: Add support for ls2088a
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 4 Aug 2017 06:41:33 +0000 (14:41 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 22:17:39 +0000 (17:17 -0500)
The ls2088a PCIe controller's register addresses are different from
ls2080a, so add a match entry to identify ls2088a PCIe.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Minghuan Lian <minghuan.Lian@nxp.com>
Documentation/devicetree/bindings/pci/layerscape-pci.txt
drivers/pci/dwc/pci-layerscape.c

index ee1c72d5162ea191ca9a83fd8dcd7baac21312fa..2057b0000c72c7ae5fcfc8b0155930fac92302b3 100644 (file)
@@ -15,6 +15,7 @@ Required properties:
 - compatible: should contain the platform identifier such as:
         "fsl,ls1021a-pcie", "snps,dw-pcie"
         "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", "snps,dw-pcie"
+        "fsl,ls2088a-pcie"
         "fsl,ls1046a-pcie"
 - reg: base addresses and lengths of the PCIe controller
 - interrupts: A list of interrupt outputs of the controller. Must contain an
index 3f53826b127e397b4134f7a115f24e420c22e9c0..780eab9beb1e670a58fd1e103a1877bd98b0b4a0 100644 (file)
@@ -244,12 +244,21 @@ static struct ls_pcie_drvdata ls2080_drvdata = {
        .dw_pcie_ops = &dw_ls_pcie_ops,
 };
 
+static struct ls_pcie_drvdata ls2088_drvdata = {
+       .lut_offset = 0x80000,
+       .ltssm_shift = 0,
+       .lut_dbg = 0x407fc,
+       .ops = &ls_pcie_host_ops,
+       .dw_pcie_ops = &dw_ls_pcie_ops,
+};
+
 static const struct of_device_id ls_pcie_of_match[] = {
        { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata },
        { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata },
        { .compatible = "fsl,ls1046a-pcie", .data = &ls1046_drvdata },
        { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata },
        { .compatible = "fsl,ls2085a-pcie", .data = &ls2080_drvdata },
+       { .compatible = "fsl,ls2088a-pcie", .data = &ls2088_drvdata },
        { },
 };