aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-10-24 10:32:21 +0200
committerFelix Fietkau <nbd@nbd.name>2017-10-24 13:24:04 +0200
commit65da6f9ca164cc321a84f28c81785a21af6af6fd (patch)
tree6dc5e77fbb5654516295267be7d309dcf2cc1b0d /target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
parent8d9ff6b6f7b2ba0c3dcba926099f819af871e0a8 (diff)
downloadupstream-65da6f9ca164cc321a84f28c81785a21af6af6fd.tar.gz
upstream-65da6f9ca164cc321a84f28c81785a21af6af6fd.tar.bz2
upstream-65da6f9ca164cc321a84f28c81785a21af6af6fd.zip
ar71xx: fix secondary gpio controller base values
In 4.9, gpio count is rounded up to 32 due to the use of bgpio in the ath79 gpio controller driver. Fix base values in mach files to account for that Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
index da15919a54..3c85a20550 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
@@ -43,15 +43,15 @@
#define ARCHER_C59_GPIO_SHIFT_SRCLR 19
#define ARCHER_C59_GPIO_SHIFT_RCLK 20
-#define ARCHER_C59_74HC_GPIO_BASE QCA956X_GPIO_COUNT
-#define ARCHER_C59_74HC_GPIO_LED_POWER 23
-#define ARCHER_C59_74HC_GPIO_LED_WLAN2 24
-#define ARCHER_C59_74HC_GPIO_LED_WLAN5 25
-#define ARCHER_C59_74HC_GPIO_LED_LAN 26
-#define ARCHER_C59_74HC_GPIO_LED_WAN_GREEN 27
-#define ARCHER_C59_74HC_GPIO_LED_WAN_AMBER 28
-#define ARCHER_C59_74HC_GPIO_LED_WPS 29
-#define ARCHER_C59_74HC_GPIO_LED_USB 30
+#define ARCHER_C59_74HC_GPIO_BASE 32
+#define ARCHER_C59_74HC_GPIO_LED_POWER (ARCHER_C59_74HC_GPIO_BASE + 0)
+#define ARCHER_C59_74HC_GPIO_LED_WLAN2 (ARCHER_C59_74HC_GPIO_BASE + 1)
+#define ARCHER_C59_74HC_GPIO_LED_WLAN5 (ARCHER_C59_74HC_GPIO_BASE + 2)
+#define ARCHER_C59_74HC_GPIO_LED_LAN (ARCHER_C59_74HC_GPIO_BASE + 3)
+#define ARCHER_C59_74HC_GPIO_LED_WAN_GREEN (ARCHER_C59_74HC_GPIO_BASE + 4)
+#define ARCHER_C59_74HC_GPIO_LED_WAN_AMBER (ARCHER_C59_74HC_GPIO_BASE + 5)
+#define ARCHER_C59_74HC_GPIO_LED_WPS (ARCHER_C59_74HC_GPIO_BASE + 6)
+#define ARCHER_C59_74HC_GPIO_LED_USB (ARCHER_C59_74HC_GPIO_BASE + 7)
#define ARCHER_C59_V1_SSR_BIT_0 0
#define ARCHER_C59_V1_SSR_BIT_1 1