aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/patches-3.18/200-pci_designware_add-ability-for-custom-swizzle.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-03-29 05:48:56 +0000
committerLuka Perkov <luka@openwrt.org>2015-03-29 05:48:56 +0000
commit22c2544ec4eafebd4c1f966e1521b313d63ba72e (patch)
tree5df8578cd53545c13847ab28af2dc968a44bca17 /target/linux/imx6/patches-3.18/200-pci_designware_add-ability-for-custom-swizzle.patch
parent4b185f0ef52681921cd37095c9b5fd6bcda9a5d6 (diff)
downloadupstream-22c2544ec4eafebd4c1f966e1521b313d63ba72e.tar.gz
upstream-22c2544ec4eafebd4c1f966e1521b313d63ba72e.tar.bz2
upstream-22c2544ec4eafebd4c1f966e1521b313d63ba72e.zip
imx: add initial version of 3.18 support
This is build tested only. Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45125 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx6/patches-3.18/200-pci_designware_add-ability-for-custom-swizzle.patch')
-rw-r--r--target/linux/imx6/patches-3.18/200-pci_designware_add-ability-for-custom-swizzle.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/imx6/patches-3.18/200-pci_designware_add-ability-for-custom-swizzle.patch b/target/linux/imx6/patches-3.18/200-pci_designware_add-ability-for-custom-swizzle.patch
new file mode 100644
index 0000000000..38e5123507
--- /dev/null
+++ b/target/linux/imx6/patches-3.18/200-pci_designware_add-ability-for-custom-swizzle.patch
@@ -0,0 +1,33 @@
+commit e84634dc6c7f3f6af9b8ef1fb36f0d85c476ab95
+Author: Tim Harvey <tharvey@gateworks.com>
+Date: Thu Feb 27 01:02:23 2014 -0800
+
+ PCI: designware: add ability for custom swizzle
+
+ Add the ability for a platform driver to provide a platform-specific
+ swizzle function.
+
+ Signed-off-by: Tim Harvey <tharvey@gateworks.com>
+
+--- a/drivers/pci/host/pcie-designware.c
++++ b/drivers/pci/host/pcie-designware.c
+@@ -492,6 +492,9 @@ int __init dw_pcie_host_init(struct pcie
+ if (pp->ops->host_init)
+ pp->ops->host_init(pp);
+
++ if (pp->swizzle)
++ dw_pci.swizzle = pp->swizzle;
++
+ dw_pcie_wr_own_conf(pp, PCI_BASE_ADDRESS_0, 4, 0);
+
+ /* program correct class for RC */
+--- a/drivers/pci/host/pcie-designware.h
++++ b/drivers/pci/host/pcie-designware.h
+@@ -53,6 +53,7 @@ struct pcie_port {
+ struct irq_domain *irq_domain;
+ unsigned long msi_data;
+ DECLARE_BITMAP(msi_irq_in_use, MAX_MSI_IRQS);
++ u8 (*swizzle)(struct pci_dev *, u8 *);
+ };
+
+ struct pcie_host_ops {