[source] ramips: enable PCIe on MT7688

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 3 11:46:44 PDT 2017


dangole pushed a commit to source.git, branch master:
https://git.lede-project.org/bfa2e945de59760575cde66e93c49084da354806

commit bfa2e945de59760575cde66e93c49084da354806
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Jun 3 20:24:11 2017 +0200

    ramips: enable PCIe on MT7688
    
    Submitted upstream as well, see
    patchwork https://patchwork.linux-mips.org/patch/16223/
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 .../0009-PCI-MIPS-adds-mt7620a-pcie-driver.patch   |  3 +-
 .../0009-PCI-MIPS-enable-PCIe-on-MT7688.patch      | 33 ++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/patches-4.4/0009-PCI-MIPS-adds-mt7620a-pcie-driver.patch b/target/linux/ramips/patches-4.4/0009-PCI-MIPS-adds-mt7620a-pcie-driver.patch
index 96bf9d0..d6ed53c 100644
--- a/target/linux/ramips/patches-4.4/0009-PCI-MIPS-adds-mt7620a-pcie-driver.patch
+++ b/target/linux/ramips/patches-4.4/0009-PCI-MIPS-adds-mt7620a-pcie-driver.patch
@@ -24,7 +24,7 @@ Signed-off-by: John Crispin <blogic at openwrt.org>
  obj-$(CONFIG_SOC_RT3883)	+= pci-rt3883.o
 --- /dev/null
 +++ b/arch/mips/pci/pci-mt7620.c
-@@ -0,0 +1,396 @@
+@@ -0,0 +1,397 @@
 +/*
 + *  Ralink MT7620A SoC PCI support
 + *
@@ -319,6 +319,7 @@ Signed-off-by: John Crispin <blogic at openwrt.org>
 +		break;
 +
 +	case MT762X_SOC_MT7628AN:
++	case MT762X_SOC_MT7688:
 +		if (mt7628_pci_hw_init(pdev))
 +			return -1;
 +		break;
diff --git a/target/linux/ramips/patches-4.9/0009-PCI-MIPS-enable-PCIe-on-MT7688.patch b/target/linux/ramips/patches-4.9/0009-PCI-MIPS-enable-PCIe-on-MT7688.patch
new file mode 100644
index 0000000..05a4834
--- /dev/null
+++ b/target/linux/ramips/patches-4.9/0009-PCI-MIPS-enable-PCIe-on-MT7688.patch
@@ -0,0 +1,33 @@
+From 7768798964eb0e4f95eaecffb93b5d0ca28a38af Mon Sep 17 00:00:00 2001
+From: Daniel Golle <daniel at makrotopia.org>
+Date: Sat, 3 Jun 2017 20:00:03 +0200
+Subject: [PATCH] MIPS: pci-mt7620: enabled PCIe on MT7688
+To: linux-mips at linux-mips.org,
+    John Crispin <john at phrozen.org>
+Cc: Wei Yongjun <yongjun_wei at trendmicro.com.cn>,
+    Ralf Baechle <ralf at linux-mips.org>,
+    linux-mediatek at lists.infradead.org
+
+Use PCIe support for MT7628AN also on MT7688.
+Tested on WRTNODE2R.
+
+Signed-off-by: Daniel Golle <daniel at makrotopia.org>
+---
+ arch/mips/pci/pci-mt7620.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/mips/pci/pci-mt7620.c b/arch/mips/pci/pci-mt7620.c
+index 628c5132b3d8..cd8e2b87efd5 100644
+--- a/arch/mips/pci/pci-mt7620.c
++++ b/arch/mips/pci/pci-mt7620.c
+@@ -316,6 +316,7 @@ static int mt7620_pci_probe(struct platform_device *pdev)
+ 		break;
+ 
+ 	case MT762X_SOC_MT7628AN:
++	case MT762X_SOC_MT7688:
+ 		if (mt7628_pci_hw_init(pdev))
+ 			return -1;
+ 		break;
+-- 
+2.13.0
+



More information about the lede-commits mailing list