You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
freifunkist-firmware/target/linux/layerscape/patches-4.4/8114-drivers-PCIE-enable-fo...

49 lines
1.7 KiB

From cfe7a6abd3d7e9ffeed8230847bbe2f680757305 Mon Sep 17 00:00:00 2001
From: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
Date: Sun, 24 Apr 2016 23:43:19 +0530
Subject: [PATCH 114/123] drivers: PCIE enable for Linux
[This patch from sdk release, just context adjustment]
Add support for PCIE for LS1012A in kernel
Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Integrated-by: Jiang Yutang <yutang.jiang@nxp.com>
---
drivers/irqchip/irq-ls-scfg-msi.c | 1 +
drivers/pci/host/pci-layerscape.c | 7 +++++++
2 files changed, 8 insertions(+)
--- a/drivers/irqchip/irq-ls-scfg-msi.c
+++ b/drivers/irqchip/irq-ls-scfg-msi.c
@@ -219,6 +219,7 @@ static int ls_scfg_msi_remove(struct pla
}
static const struct of_device_id ls_scfg_msi_id[] = {
+ { .compatible = "fsl,ls1012a-msi", },
{ .compatible = "fsl,1s1021a-msi", },
{ .compatible = "fsl,1s1043a-msi", },
{},
--- a/drivers/pci/host/pci-layerscape.c
+++ b/drivers/pci/host/pci-layerscape.c
@@ -192,6 +192,12 @@ static struct ls_pcie_drvdata ls1021_drv
.ops = &ls1021_pcie_host_ops,
};
+static struct ls_pcie_drvdata ls1012_drvdata = {
+ .lut_offset = 0xC0000,
+ .ltssm_shift = 24,
+ .ops = &ls_pcie_host_ops,
+};
+
static struct ls_pcie_drvdata ls1043_drvdata = {
.lut_offset = 0x10000,
.ltssm_shift = 24,
@@ -205,6 +211,7 @@ static struct ls_pcie_drvdata ls2080_drv
};
static const struct of_device_id ls_pcie_of_match[] = {
+ { .compatible = "fsl,ls1012a-pcie", .data = &ls1012_drvdata },
{ .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata },
{ .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata },
{ .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata },