mirror of https://github.com/hak5/openwrt.git
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>openwrt-18.06
parent
8d9ff6b6f7
commit
65da6f9ca1
|
@ -35,15 +35,15 @@
|
||||||
#define ARCHER_C25_GPIO_SHIFT_SRCLR 19 /* MR, Master Reset */
|
#define ARCHER_C25_GPIO_SHIFT_SRCLR 19 /* MR, Master Reset */
|
||||||
#define ARCHER_C25_GPIO_SHIFT_RCLK 16 /* STCP, Storage Reg Clock Input */
|
#define ARCHER_C25_GPIO_SHIFT_RCLK 16 /* STCP, Storage Reg Clock Input */
|
||||||
|
|
||||||
#define ARCHER_C25_74HC_GPIO_BASE QCA956X_GPIO_COUNT
|
#define ARCHER_C25_74HC_GPIO_BASE 32
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_WAN_AMBER 27
|
#define ARCHER_C25_74HC_GPIO_LED_WAN_AMBER (ARCHER_C25_74HC_GPIO_BASE + 4)
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_WAN_GREEN 28
|
#define ARCHER_C25_74HC_GPIO_LED_WAN_GREEN (ARCHER_C25_74HC_GPIO_BASE + 5)
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_WLAN2 29
|
#define ARCHER_C25_74HC_GPIO_LED_WLAN2 (ARCHER_C25_74HC_GPIO_BASE + 6)
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_WLAN5 30
|
#define ARCHER_C25_74HC_GPIO_LED_WLAN5 (ARCHER_C25_74HC_GPIO_BASE + 7)
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_LAN1 23
|
#define ARCHER_C25_74HC_GPIO_LED_LAN1 (ARCHER_C25_74HC_GPIO_BASE + 0)
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_LAN2 24
|
#define ARCHER_C25_74HC_GPIO_LED_LAN2 (ARCHER_C25_74HC_GPIO_BASE + 1)
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_LAN3 25
|
#define ARCHER_C25_74HC_GPIO_LED_LAN3 (ARCHER_C25_74HC_GPIO_BASE + 2)
|
||||||
#define ARCHER_C25_74HC_GPIO_LED_LAN4 26
|
#define ARCHER_C25_74HC_GPIO_LED_LAN4 (ARCHER_C25_74HC_GPIO_BASE + 3)
|
||||||
|
|
||||||
#define ARCHER_C25_V1_SSR_BIT_0 0
|
#define ARCHER_C25_V1_SSR_BIT_0 0
|
||||||
#define ARCHER_C25_V1_SSR_BIT_1 1
|
#define ARCHER_C25_V1_SSR_BIT_1 1
|
||||||
|
|
|
@ -43,15 +43,15 @@
|
||||||
#define ARCHER_C59_GPIO_SHIFT_SRCLR 19
|
#define ARCHER_C59_GPIO_SHIFT_SRCLR 19
|
||||||
#define ARCHER_C59_GPIO_SHIFT_RCLK 20
|
#define ARCHER_C59_GPIO_SHIFT_RCLK 20
|
||||||
|
|
||||||
#define ARCHER_C59_74HC_GPIO_BASE QCA956X_GPIO_COUNT
|
#define ARCHER_C59_74HC_GPIO_BASE 32
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_POWER 23
|
#define ARCHER_C59_74HC_GPIO_LED_POWER (ARCHER_C59_74HC_GPIO_BASE + 0)
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_WLAN2 24
|
#define ARCHER_C59_74HC_GPIO_LED_WLAN2 (ARCHER_C59_74HC_GPIO_BASE + 1)
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_WLAN5 25
|
#define ARCHER_C59_74HC_GPIO_LED_WLAN5 (ARCHER_C59_74HC_GPIO_BASE + 2)
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_LAN 26
|
#define ARCHER_C59_74HC_GPIO_LED_LAN (ARCHER_C59_74HC_GPIO_BASE + 3)
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_WAN_GREEN 27
|
#define ARCHER_C59_74HC_GPIO_LED_WAN_GREEN (ARCHER_C59_74HC_GPIO_BASE + 4)
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_WAN_AMBER 28
|
#define ARCHER_C59_74HC_GPIO_LED_WAN_AMBER (ARCHER_C59_74HC_GPIO_BASE + 5)
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_WPS 29
|
#define ARCHER_C59_74HC_GPIO_LED_WPS (ARCHER_C59_74HC_GPIO_BASE + 6)
|
||||||
#define ARCHER_C59_74HC_GPIO_LED_USB 30
|
#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_0 0
|
||||||
#define ARCHER_C59_V1_SSR_BIT_1 1
|
#define ARCHER_C59_V1_SSR_BIT_1 1
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
#define ARCHER_C7_GPIO_LED_USB1 7
|
#define ARCHER_C7_GPIO_LED_USB1 7
|
||||||
#define ARCHER_C7_GPIO_LED_USB2 8
|
#define ARCHER_C7_GPIO_LED_USB2 8
|
||||||
|
|
||||||
#define ARCHER_C7_74HC_GPIO_BASE QCA956X_GPIO_COUNT
|
#define ARCHER_C7_74HC_GPIO_BASE 32
|
||||||
#define ARCHER_C7_GPIO_LED_WPS (ARCHER_C7_74HC_GPIO_BASE + 0)
|
#define ARCHER_C7_GPIO_LED_WPS (ARCHER_C7_74HC_GPIO_BASE + 0)
|
||||||
#define ARCHER_C7_GPIO_LED_LAN1 (ARCHER_C7_74HC_GPIO_BASE + 1)
|
#define ARCHER_C7_GPIO_LED_LAN1 (ARCHER_C7_74HC_GPIO_BASE + 1)
|
||||||
#define ARCHER_C7_GPIO_LED_LAN2 (ARCHER_C7_74HC_GPIO_BASE + 2)
|
#define ARCHER_C7_GPIO_LED_LAN2 (ARCHER_C7_74HC_GPIO_BASE + 2)
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
#define RB91X_FLAG_USB BIT(0)
|
#define RB91X_FLAG_USB BIT(0)
|
||||||
#define RB91X_FLAG_PCIE BIT(1)
|
#define RB91X_FLAG_PCIE BIT(1)
|
||||||
|
|
||||||
#define RB91X_LATCH_GPIO_BASE AR934X_GPIO_COUNT
|
#define RB91X_LATCH_GPIO_BASE 32
|
||||||
#define RB91X_LATCH_GPIO(_x) (RB91X_LATCH_GPIO_BASE + (_x))
|
#define RB91X_LATCH_GPIO(_x) (RB91X_LATCH_GPIO_BASE + (_x))
|
||||||
|
|
||||||
#define RB91X_SSR_GPIO_BASE (RB91X_LATCH_GPIO_BASE + AR934X_GPIO_COUNT)
|
#define RB91X_SSR_GPIO_BASE (RB91X_LATCH_GPIO_BASE + AR934X_GPIO_COUNT)
|
||||||
|
|
|
@ -49,15 +49,15 @@
|
||||||
#define TL_WR942N_V1_GPIO_LED_WPS 21
|
#define TL_WR942N_V1_GPIO_LED_WPS 21
|
||||||
#define TL_WR942N_V1_GPIO_LED_STATUS 22
|
#define TL_WR942N_V1_GPIO_LED_STATUS 22
|
||||||
|
|
||||||
#define TL_WR942N_V1_74HC_GPIO_BASE QCA956X_GPIO_COUNT
|
#define TL_WR942N_V1_74HC_GPIO_BASE 32
|
||||||
#define TL_WR942N_V1_74HC_GPIO_LED_LAN4 23
|
#define TL_WR942N_V1_74HC_GPIO_LED_LAN4 (TL_WR942N_V1_74HC_GPIO_BASE + 0)
|
||||||
#define TL_WR942N_V1_74HC_GPIO_LED_LAN3 24
|
#define TL_WR942N_V1_74HC_GPIO_LED_LAN3 (TL_WR942N_V1_74HC_GPIO_BASE + 1)
|
||||||
#define TL_WR942N_V1_74HC_GPIO_LED_LAN2 25
|
#define TL_WR942N_V1_74HC_GPIO_LED_LAN2 (TL_WR942N_V1_74HC_GPIO_BASE + 2)
|
||||||
#define TL_WR942N_V1_74HC_GPIO_LED_LAN1 26
|
#define TL_WR942N_V1_74HC_GPIO_LED_LAN1 (TL_WR942N_V1_74HC_GPIO_BASE + 3)
|
||||||
#define TL_WR942N_V1_74HC_GPIO_LED_WAN_GREEN 27
|
#define TL_WR942N_V1_74HC_GPIO_LED_WAN_GREEN (TL_WR942N_V1_74HC_GPIO_BASE + 4)
|
||||||
#define TL_WR942N_V1_74HC_GPIO_LED_WAN_AMBER 28
|
#define TL_WR942N_V1_74HC_GPIO_LED_WAN_AMBER (TL_WR942N_V1_74HC_GPIO_BASE + 5)
|
||||||
#define TL_WR942N_V1_74HC_GPIO_LED_WLAN 29
|
#define TL_WR942N_V1_74HC_GPIO_LED_WLAN (TL_WR942N_V1_74HC_GPIO_BASE + 6)
|
||||||
#define TL_WR942N_V1_74HC_GPIO_HUB_RESET 30 /* from u-boot sources */
|
#define TL_WR942N_V1_74HC_GPIO_HUB_RESET (TL_WR942N_V1_74HC_GPIO_BASE + 7) /* from u-boot sources */
|
||||||
|
|
||||||
#define TL_WR942N_V1_SSR_BIT_0 0
|
#define TL_WR942N_V1_SSR_BIT_0 0
|
||||||
#define TL_WR942N_V1_SSR_BIT_1 1
|
#define TL_WR942N_V1_SSR_BIT_1 1
|
||||||
|
|
Loading…
Reference in New Issue