0056-ar71xx-Add-support-for-ath79_gpio_function_-on-QCA955X.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Wed, 23 Mar 2016 12:52:27 +0000
  3. Subject: ar71xx: Add support for ath79_gpio_function_* on QCA955X
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Backport of r49074
  6. Forwarded: https://patchwork.ozlabs.org/patch/624183/
  7. diff --git a/target/linux/ar71xx/patches-3.18/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch b/target/linux/ar71xx/patches-3.18/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
  8. index e71b6e2..0e87357 100644
  9. --- a/target/linux/ar71xx/patches-3.18/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
  10. +++ b/target/linux/ar71xx/patches-3.18/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
  11. @@ -1,6 +1,16 @@
  12. --- a/arch/mips/ath79/gpio.c
  13. +++ b/arch/mips/ath79/gpio.c
  14. -@@ -187,15 +187,30 @@ void __init ath79_gpio_output_select(uns
  15. +@@ -146,7 +146,8 @@ static void __iomem *ath79_gpio_get_func
  16. + if (soc_is_ar71xx() ||
  17. + soc_is_ar724x() ||
  18. + soc_is_ar913x() ||
  19. +- soc_is_ar933x())
  20. ++ soc_is_ar933x() ||
  21. ++ soc_is_qca955x())
  22. + reg = AR71XX_GPIO_REG_FUNC;
  23. + else if (soc_is_ar934x() ||
  24. + soc_is_qca953x() ||
  25. +@@ -187,15 +188,30 @@ void __init ath79_gpio_output_select(uns
  26. {
  27. void __iomem *base = ath79_gpio_base;
  28. unsigned long flags;