8114-drivers-PCIE-enable-for-Linux.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. [This patch from sdk release, just context adjustment]
  6. Add support for PCIE for LS1012A in kernel
  7. Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
  8. Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
  9. Integrated-by: Jiang Yutang <yutang.jiang@nxp.com>
  10. ---
  11. drivers/irqchip/irq-ls-scfg-msi.c | 1 +
  12. drivers/pci/host/pci-layerscape.c | 7 +++++++
  13. 2 files changed, 8 insertions(+)
  14. --- a/drivers/irqchip/irq-ls-scfg-msi.c
  15. +++ b/drivers/irqchip/irq-ls-scfg-msi.c
  16. @@ -219,6 +219,7 @@ static int ls_scfg_msi_remove(struct pla
  17. }
  18. static const struct of_device_id ls_scfg_msi_id[] = {
  19. + { .compatible = "fsl,ls1012a-msi", },
  20. { .compatible = "fsl,1s1021a-msi", },
  21. { .compatible = "fsl,1s1043a-msi", },
  22. {},
  23. --- a/drivers/pci/host/pci-layerscape.c
  24. +++ b/drivers/pci/host/pci-layerscape.c
  25. @@ -192,6 +192,12 @@ static struct ls_pcie_drvdata ls1021_drv
  26. .ops = &ls1021_pcie_host_ops,
  27. };
  28. +static struct ls_pcie_drvdata ls1012_drvdata = {
  29. + .lut_offset = 0xC0000,
  30. + .ltssm_shift = 24,
  31. + .ops = &ls_pcie_host_ops,
  32. +};
  33. +
  34. static struct ls_pcie_drvdata ls1043_drvdata = {
  35. .lut_offset = 0x10000,
  36. .ltssm_shift = 24,
  37. @@ -205,6 +211,7 @@ static struct ls_pcie_drvdata ls2080_drv
  38. };
  39. static const struct of_device_id ls_pcie_of_match[] = {
  40. + { .compatible = "fsl,ls1012a-pcie", .data = &ls1012_drvdata },
  41. { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata },
  42. { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata },
  43. { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata },