layerscape: add 64b/32b target for ls1012ardb device
[lede.git] / target / linux / layerscape / patches-4.4 / 8114-drivers-PCIE-enable-for-Linux.patch
1 From cfe7a6abd3d7e9ffeed8230847bbe2f680757305 Mon Sep 17 00:00:00 2001
2 From: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
3 Date: Sun, 24 Apr 2016 23:43:19 +0530
4 Subject: [PATCH 114/123] drivers: PCIE enable for Linux
5
6 [This patch from sdk release, just context adjustment]
7 Add support for PCIE for LS1012A in kernel
8
9 Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
10 Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
11 Integrated-by: Jiang Yutang <yutang.jiang@nxp.com>
12 ---
13  drivers/irqchip/irq-ls-scfg-msi.c |    1 +
14  drivers/pci/host/pci-layerscape.c |    7 +++++++
15  2 files changed, 8 insertions(+)
16
17 --- a/drivers/irqchip/irq-ls-scfg-msi.c
18 +++ b/drivers/irqchip/irq-ls-scfg-msi.c
19 @@ -219,6 +219,7 @@ static int ls_scfg_msi_remove(struct pla
20  }
21  
22  static const struct of_device_id ls_scfg_msi_id[] = {
23 +       { .compatible = "fsl,ls1012a-msi", },
24         { .compatible = "fsl,1s1021a-msi", },
25         { .compatible = "fsl,1s1043a-msi", },
26         {},
27 --- a/drivers/pci/host/pci-layerscape.c
28 +++ b/drivers/pci/host/pci-layerscape.c
29 @@ -192,6 +192,12 @@ static struct ls_pcie_drvdata ls1021_drv
30         .ops = &ls1021_pcie_host_ops,
31  };
32  
33 +static struct ls_pcie_drvdata ls1012_drvdata = {
34 +       .lut_offset = 0xC0000,
35 +       .ltssm_shift = 24,
36 +       .ops = &ls_pcie_host_ops,
37 +};
38 +
39  static struct ls_pcie_drvdata ls1043_drvdata = {
40         .lut_offset = 0x10000,
41         .ltssm_shift = 24,
42 @@ -205,6 +211,7 @@ static struct ls_pcie_drvdata ls2080_drv
43  };
44  
45  static const struct of_device_id ls_pcie_of_match[] = {
46 +       { .compatible = "fsl,ls1012a-pcie", .data = &ls1012_drvdata },
47         { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata },
48         { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata },
49         { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata },