aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-02-25 21:54:39 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2016-02-25 21:54:39 +0000
commitcb04b8d58201f6aa35f99b76ee8b3435beb7a01e (patch)
treef6b54298f21d3ba2166fd1621f86390e5c554f1a /target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
parent53814290e7f58f205c74ad1c2f8cedb7e1c2b5ef (diff)
downloadupstream-cb04b8d58201f6aa35f99b76ee8b3435beb7a01e.tar.gz
upstream-cb04b8d58201f6aa35f99b76ee8b3435beb7a01e.tar.bz2
upstream-cb04b8d58201f6aa35f99b76ee8b3435beb7a01e.zip
kernel: update kernel 4.4 to version 4.4.3
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48783
Diffstat (limited to 'target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch')
-rw-r--r--target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch b/target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
index 237b03075b..a54c12b1a0 100644
--- a/target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
+++ b/target/linux/ar71xx/patches-4.4/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
@@ -9,9 +9,6 @@
u32 t, s;
- BUG_ON(!soc_is_ar934x() && !soc_is_qca953x() && !soc_is_qca956x());
--
-- if (gpio >= AR934X_GPIO_COUNT)
-- return;
+ if (soc_is_ar934x())
+ reg_base = AR934X_GPIO_REG_OUT_FUNC0;
+ else if (soc_is_qca953x())
@@ -23,6 +20,9 @@
+ else
+ BUG();
+- if (gpio >= AR934X_GPIO_COUNT)
+- return;
+-
- reg = AR934X_GPIO_REG_OUT_FUNC0 + 4 * (gpio / 4);
+ reg = reg_base + 4 * (gpio / 4);
s = 8 * (gpio % 4);