kernel: bump 4.14 to 4.14.41
[openwrt/staging/wigyori.git] / target / linux / ath79 / patches-4.14 / 0017-MIPS-ath79-add-support-for-qca956x-soc.patch
index 052d23c8ba750720fbf1d024b315af6a7f61cb9d..294fb32a17095967751322370de49874f328ea1b 100644 (file)
@@ -22,8 +22,6 @@ Signed-off-by: Weijie Gao <hackpascal@gmail.com>
  arch/mips/include/asm/mach-ath79/ath79.h | 22 ++++++++
  9 files changed, 245 insertions(+), 4 deletions(-)
 
-diff --git a/arch/mips/ath79/Kconfig b/arch/mips/ath79/Kconfig
-index b03f5c8b9d1e..ad56cdbc8abd 100644
 --- a/arch/mips/ath79/Kconfig
 +++ b/arch/mips/ath79/Kconfig
 @@ -119,7 +119,7 @@ config ATH79_DEV_USB
@@ -35,11 +33,9 @@ index b03f5c8b9d1e..ad56cdbc8abd 100644
        def_bool n
  
  endif
-diff --git a/arch/mips/ath79/clock.c b/arch/mips/ath79/clock.c
-index b9595b2d1b65..65701b45fb1b 100644
 --- a/arch/mips/ath79/clock.c
 +++ b/arch/mips/ath79/clock.c
-@@ -525,6 +525,100 @@ static void __init qca955x_clocks_init(void)
+@@ -525,6 +525,100 @@ static void __init qca955x_clocks_init(v
        clk_add_alias("uart", NULL, "ref", NULL);
  }
  
@@ -149,8 +145,6 @@ index b9595b2d1b65..65701b45fb1b 100644
        else
                BUG();
  }
-diff --git a/arch/mips/ath79/common.c b/arch/mips/ath79/common.c
-index a485a7c35b9b..fc3438150b3e 100644
 --- a/arch/mips/ath79/common.c
 +++ b/arch/mips/ath79/common.c
 @@ -107,6 +107,8 @@ void ath79_device_reset_set(u32 mask)
@@ -171,8 +165,6 @@ index a485a7c35b9b..fc3438150b3e 100644
        else
                panic("Reset register not defined for this SOC");
  
-diff --git a/arch/mips/ath79/dev-common.c b/arch/mips/ath79/dev-common.c
-index 99d8b88f1e6d..ac8bfe86b656 100644
 --- a/arch/mips/ath79/dev-common.c
 +++ b/arch/mips/ath79/dev-common.c
 @@ -86,7 +86,9 @@ void __init ath79_register_uart(void)
@@ -196,8 +188,6 @@ index 99d8b88f1e6d..ac8bfe86b656 100644
        } else {
                BUG();
        }
-diff --git a/arch/mips/ath79/early_printk.c b/arch/mips/ath79/early_printk.c
-index cc00839b7181..2024a0bb9144 100644
 --- a/arch/mips/ath79/early_printk.c
 +++ b/arch/mips/ath79/early_printk.c
 @@ -120,6 +120,8 @@ static void prom_putchar_init(void)
@@ -209,8 +199,6 @@ index cc00839b7181..2024a0bb9144 100644
                _prom_putchar = prom_putchar_ar71xx;
                break;
  
-diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c
-index 756b5aee3500..58d17ef6f58f 100644
 --- a/arch/mips/ath79/irq.c
 +++ b/arch/mips/ath79/irq.c
 @@ -156,6 +156,87 @@ static void qca955x_irq_init(void)
@@ -319,11 +307,9 @@ index 756b5aee3500..58d17ef6f58f 100644
 +      else if (soc_is_qca956x() || soc_is_tp9343())
 +              qca956x_irq_init();
  }
-diff --git a/arch/mips/ath79/pci.c b/arch/mips/ath79/pci.c
-index b816cb4a25ff..d905a67e1a07 100644
 --- a/arch/mips/ath79/pci.c
 +++ b/arch/mips/ath79/pci.c
-@@ -82,6 +82,9 @@ int pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin)
+@@ -82,6 +82,9 @@ int pcibios_map_irq(const struct pci_dev
                } else if (soc_is_qca955x()) {
                        ath79_pci_irq_map = qca955x_pci_irq_map;
                        ath79_pci_nr_irqs = ARRAY_SIZE(qca955x_pci_irq_map);
@@ -349,11 +335,9 @@ index b816cb4a25ff..d905a67e1a07 100644
        } else {
                /* No PCI support */
                return -ENODEV;
-diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
-index f782ae6c77d6..4c7a93f4039a 100644
 --- a/arch/mips/ath79/setup.c
 +++ b/arch/mips/ath79/setup.c
-@@ -176,6 +176,18 @@ static void __init ath79_detect_sys_type(void)
+@@ -176,6 +176,18 @@ static void __init ath79_detect_sys_type
                rev = id & QCA955X_REV_ID_REVISION_MASK;
                break;
  
@@ -372,7 +356,7 @@ index f782ae6c77d6..4c7a93f4039a 100644
        default:
                panic("ath79: unknown SoC, id:0x%08x", id);
        }
-@@ -183,9 +195,12 @@ static void __init ath79_detect_sys_type(void)
+@@ -183,9 +195,12 @@ static void __init ath79_detect_sys_type
        if (ver == 1)
                ath79_soc_rev = rev;
  
@@ -386,8 +370,6 @@ index f782ae6c77d6..4c7a93f4039a 100644
        else
                sprintf(ath79_sys_type, "Atheros AR%s rev %u", chip, rev);
        pr_info("SoC: %s\n", ath79_sys_type);
-diff --git a/arch/mips/include/asm/mach-ath79/ath79.h b/arch/mips/include/asm/mach-ath79/ath79.h
-index 98a7ccf3d358..73dcd63b8243 100644
 --- a/arch/mips/include/asm/mach-ath79/ath79.h
 +++ b/arch/mips/include/asm/mach-ath79/ath79.h
 @@ -35,6 +35,8 @@ enum ath79_soc_type {
@@ -426,6 +408,3 @@ index 98a7ccf3d358..73dcd63b8243 100644
  void ath79_ddr_wb_flush(unsigned int reg);
  void ath79_ddr_set_pci_windows(void);
  
--- 
-2.11.0
-