]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ar71xx: rename/refresh patch
authorFelix Fietkau <nbd@openwrt.org>
Fri, 26 Dec 2014 12:36:22 +0000 (12:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 26 Dec 2014 12:36:22 +0000 (12:36 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43775

target/linux/ar71xx/patches-3.14/735-MIPS-ath79-add-support-for-QCA956x-SoC.patch [moved from target/linux/ar71xx/patches-3.14/734-MIPS-ath79-add-support-for-QCA956x-SoC.patch with 92% similarity]

similarity index 92%
rename from target/linux/ar71xx/patches-3.14/734-MIPS-ath79-add-support-for-QCA956x-SoC.patch
rename to target/linux/ar71xx/patches-3.14/735-MIPS-ath79-add-support-for-QCA956x-SoC.patch
index 6bbc43bca8fa1107f192fdfa4f4e055c7ddea894..78265f32ac90e800be4ce25e4fd1599db3b9e6b8 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/clock.c
 +++ b/arch/mips/ath79/clock.c
-@@ -520,6 +520,100 @@
+@@ -520,6 +520,100 @@ static void __init qca955x_clocks_init(v
        clk_add_alias("uart", NULL, "ref", NULL);
  }
  
  void __init ath79_clocks_init(void)
  {
        if (soc_is_ar71xx())
-@@ -536,6 +630,8 @@
+@@ -536,6 +630,8 @@ void __init ath79_clocks_init(void)
                qca953x_clocks_init();
        else if (soc_is_qca955x())
                qca955x_clocks_init();
  }
 --- a/arch/mips/ath79/common.c
 +++ b/arch/mips/ath79/common.c
-@@ -77,6 +77,8 @@
+@@ -77,6 +77,8 @@ void ath79_device_reset_set(u32 mask)
                reg = QCA953X_RESET_REG_RESET_MODULE;
        else if (soc_is_qca955x())
                reg = QCA955X_RESET_REG_RESET_MODULE;
        else
                panic("Reset register not defined for this SOC");
  
-@@ -107,6 +109,8 @@
+@@ -107,6 +109,8 @@ void ath79_device_reset_clear(u32 mask)
                reg = QCA953X_RESET_REG_RESET_MODULE;
        else if (soc_is_qca955x())
                reg = QCA955X_RESET_REG_RESET_MODULE;
  
 --- a/arch/mips/ath79/dev-common.c
 +++ b/arch/mips/ath79/dev-common.c
-@@ -94,7 +94,8 @@
+@@ -94,7 +94,8 @@ void __init ath79_register_uart(void)
            soc_is_ar913x() ||
            soc_is_ar934x() ||
            soc_is_qca953x() ||
        } else if (soc_is_ar933x()) {
 --- a/arch/mips/ath79/dev-eth.c
 +++ b/arch/mips/ath79/dev-eth.c
-@@ -198,6 +198,8 @@
+@@ -198,6 +198,8 @@ void __init ath79_register_mdio(unsigned
        case ATH79_SOC_AR9330:
        case ATH79_SOC_AR9331:
        case ATH79_SOC_QCA9533:
                mdio_dev = &ath79_mdio1_device;
                mdio_data = &ath79_mdio1_data;
                break;
-@@ -256,6 +258,8 @@
+@@ -256,6 +258,8 @@ void __init ath79_register_mdio(unsigned
                break;
  
        case ATH79_SOC_QCA9533:
                mdio_data->builtin_switch = 1;
                break;
  
-@@ -571,6 +575,8 @@
+@@ -571,6 +575,8 @@ static void __init ath79_init_eth_pll_da
        case ATH79_SOC_QCA9533:
        case ATH79_SOC_QCA9556:
        case ATH79_SOC_QCA9558:
                pll_10 = AR934X_PLL_VAL_10;
                pll_100 = AR934X_PLL_VAL_100;
                pll_1000 = AR934X_PLL_VAL_1000;
-@@ -627,6 +633,8 @@
+@@ -627,6 +633,8 @@ static int __init ath79_setup_phy_if_mod
                case ATH79_SOC_AR9330:
                case ATH79_SOC_AR9331:
                case ATH79_SOC_QCA9533:
                        pdata->phy_if_mode = PHY_INTERFACE_MODE_MII;
                        break;
  
-@@ -688,6 +696,8 @@
+@@ -688,6 +696,8 @@ static int __init ath79_setup_phy_if_mod
                case ATH79_SOC_AR9330:
                case ATH79_SOC_AR9331:
                case ATH79_SOC_QCA9533:
                        pdata->phy_if_mode = PHY_INTERFACE_MODE_GMII;
                        break;
  
-@@ -992,6 +1002,8 @@
+@@ -992,6 +1002,8 @@ void __init ath79_register_eth(unsigned 
                break;
  
        case ATH79_SOC_QCA9533:
                if (id == 0) {
                        pdata->reset_bit = AR933X_RESET_GE0_MAC |
                                           AR933X_RESET_GE0_MDIO;
-@@ -1097,6 +1109,8 @@
+@@ -1097,6 +1109,8 @@ void __init ath79_register_eth(unsigned 
                case ATH79_SOC_AR9330:
                case ATH79_SOC_AR9331:
                case ATH79_SOC_QCA9533:
  
 --- a/arch/mips/ath79/dev-usb.c
 +++ b/arch/mips/ath79/dev-usb.c
-@@ -272,6 +272,19 @@
+@@ -272,6 +272,19 @@ static void __init qca955x_usb_setup(voi
                           &ath79_ehci_pdata_v2, sizeof(ath79_ehci_pdata_v2));
  }
  
  void __init ath79_register_usb(void)
  {
        if (soc_is_ar71xx())
-@@ -288,6 +301,8 @@
+@@ -288,6 +301,8 @@ void __init ath79_register_usb(void)
                ar934x_usb_setup();
        else if (soc_is_qca955x())
                qca955x_usb_setup();
  }
 --- a/arch/mips/ath79/dev-wmac.c
 +++ b/arch/mips/ath79/dev-wmac.c
-@@ -189,6 +189,24 @@
+@@ -189,6 +189,24 @@ static void qca955x_wmac_setup(void)
                ath79_wmac_data.is_clk_25mhz = true;
  }
  
  static bool __init
  ar93xx_wmac_otp_read_word(void __iomem *base, int addr, u32 *data)
  {
-@@ -392,6 +410,8 @@
+@@ -392,6 +410,8 @@ void __init ath79_register_wmac(u8 *cal_
                qca953x_wmac_setup();
        else if (soc_is_qca955x())
                qca955x_wmac_setup();
  
 --- a/arch/mips/ath79/early_printk.c
 +++ b/arch/mips/ath79/early_printk.c
-@@ -117,6 +117,8 @@
+@@ -117,6 +117,8 @@ static void prom_putchar_init(void)
        case REV_ID_MAJOR_QCA9533:
        case REV_ID_MAJOR_QCA9556:
        case REV_ID_MAJOR_QCA9558:
  
 --- a/arch/mips/ath79/gpio.c
 +++ b/arch/mips/ath79/gpio.c
-@@ -148,7 +148,8 @@
+@@ -148,7 +148,8 @@ static void __iomem *ath79_gpio_get_func
            soc_is_ar913x() ||
            soc_is_ar933x())
                reg = AR71XX_GPIO_REG_FUNC;
                reg = AR934X_GPIO_REG_FUNC;
        else
                BUG();
-@@ -228,12 +229,15 @@
+@@ -228,12 +229,15 @@ void __init ath79_gpio_init(void)
                ath79_gpio_count = QCA953X_GPIO_COUNT;
        else if (soc_is_qca955x())
                ath79_gpio_count = QCA955X_GPIO_COUNT;
        }
 --- a/arch/mips/ath79/irq.c
 +++ b/arch/mips/ath79/irq.c
-@@ -107,7 +107,8 @@
+@@ -107,7 +107,8 @@ static void __init ath79_misc_irq_init(v
                 soc_is_ar933x() ||
                 soc_is_ar934x() ||
                 soc_is_qca953x() ||
                ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack;
        else
                BUG();
-@@ -236,6 +237,99 @@
+@@ -236,6 +237,99 @@ static void qca955x_irq_init(void)
        irq_set_chained_handler(ATH79_CPU_IRQ(3), qca955x_ip3_irq_dispatch);
  }
  
  asmlinkage void plat_irq_dispatch(void)
  {
        unsigned long pending;
-@@ -359,6 +453,9 @@
+@@ -359,6 +453,9 @@ void __init arch_init_irq(void)
        } else if (soc_is_qca955x()) {
                ath79_ip2_handler = ath79_default_ip2_handler;
                ath79_ip3_handler = ath79_default_ip3_handler;
        } else {
                BUG();
        }
-@@ -371,4 +468,6 @@
+@@ -371,4 +468,6 @@ void __init arch_init_irq(void)
                ar934x_ip2_irq_init();
        else if (soc_is_qca955x())
                qca955x_irq_init();
  }
 --- a/arch/mips/ath79/Kconfig
 +++ b/arch/mips/ath79/Kconfig
-@@ -1155,6 +1155,12 @@
+@@ -1165,6 +1165,12 @@ config SOC_QCA955X
        select PCI_AR724X if PCI
        def_bool n
  
  config ATH79_DEV_M25P80
        select ATH79_DEV_SPI
        def_bool n
-@@ -1192,7 +1198,7 @@
+@@ -1202,7 +1208,7 @@ config ATH79_DEV_USB
        def_bool n
  
  config ATH79_DEV_WMAC
  config ATH79_NVRAM
 --- a/arch/mips/ath79/pci.c
 +++ b/arch/mips/ath79/pci.c
-@@ -68,6 +68,21 @@
+@@ -68,6 +68,21 @@ static const struct ath79_pci_irq qca955
        },
  };
  
  int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin)
  {
        int irq = -1;
-@@ -86,6 +101,9 @@
+@@ -86,6 +101,9 @@ int __init pcibios_map_irq(const struct 
                } else if (soc_is_qca955x()) {
                        ath79_pci_irq_map = qca955x_pci_irq_map;
                        ath79_pci_nr_irqs = ARRAY_SIZE(qca955x_pci_irq_map);
                } else {
                        pr_crit("pci %s: invalid irq map\n",
                                pci_name((struct pci_dev *) dev));
-@@ -303,6 +321,15 @@
+@@ -303,6 +321,15 @@ int __init ath79_register_pci(void)
                                                 QCA955X_PCI_MEM_SIZE,
                                                 1,
                                                 ATH79_IP3_IRQ(2));
                return -ENODEV;
 --- a/arch/mips/ath79/setup.c
 +++ b/arch/mips/ath79/setup.c
-@@ -170,15 +170,30 @@
+@@ -170,15 +170,30 @@ static void __init ath79_detect_sys_type
                rev = id & QCA955X_REV_ID_REVISION_MASK;
                break;
  
   * SRIF block
 --- a/arch/mips/include/asm/mach-ath79/ath79.h
 +++ b/arch/mips/include/asm/mach-ath79/ath79.h
-@@ -35,6 +35,8 @@
+@@ -35,6 +35,8 @@ enum ath79_soc_type {
        ATH79_SOC_QCA9533,
        ATH79_SOC_QCA9556,
        ATH79_SOC_QCA9558,
  };
  
  extern enum ath79_soc_type ath79_soc;
-@@ -126,6 +128,21 @@
+@@ -126,6 +128,21 @@ static inline int soc_is_qca955x(void)
        return soc_is_qca9556() || soc_is_qca9558();
  }