Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ath79: add GPIO setup code for the QCA955X SoCs

The existing code can handle the GPIO controller of
the QCA955x SoCs. Add a minimal glue code to make it
working.

Cc: Rodriguez, Luis <rodrigue@qca.qualcomm.com>
Cc: Giori, Kathy <kgiori@qca.qualcomm.com>
Cc: QCA Linux Team <qca-linux-team@qca.qualcomm.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4947/
Signed-off-by: John Crispin <blogic@openwrt.org>

authored by

Gabor Juhos and committed by
John Crispin
f818ca3e 53330332

+4 -1
+3 -1
arch/mips/ath79/gpio.c
··· 194 194 ath79_gpio_count = AR933X_GPIO_COUNT; 195 195 else if (soc_is_ar934x()) 196 196 ath79_gpio_count = AR934X_GPIO_COUNT; 197 + else if (soc_is_qca955x()) 198 + ath79_gpio_count = QCA955X_GPIO_COUNT; 197 199 else 198 200 BUG(); 199 201 200 202 ath79_gpio_base = ioremap_nocache(AR71XX_GPIO_BASE, AR71XX_GPIO_SIZE); 201 203 ath79_gpio_chip.ngpio = ath79_gpio_count; 202 - if (soc_is_ar934x()) { 204 + if (soc_is_ar934x() || soc_is_qca955x()) { 203 205 ath79_gpio_chip.direction_input = ar934x_gpio_direction_input; 204 206 ath79_gpio_chip.direction_output = ar934x_gpio_direction_output; 205 207 }
+1
arch/mips/include/asm/mach-ath79/ar71xx_regs.h
··· 510 510 #define AR913X_GPIO_COUNT 22 511 511 #define AR933X_GPIO_COUNT 30 512 512 #define AR934X_GPIO_COUNT 23 513 + #define QCA955X_GPIO_COUNT 24 513 514 514 515 /* 515 516 * SRIF block