Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4da14ab authored by Gabor Juhos's avatar Gabor Juhos Committed by Ralf Baechle
Browse files

MIPS: ath79: Fix number of GPIO lines for AR724[12]



The AR724[12] SoCs have more GPIO lines than the AR7240.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Cc: Cc: linux-mips@linux-mips.org
Patchwork: https://http://patchwork.linux-mips.org/patch/4167/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 87161ccd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -188,8 +188,10 @@ void __init ath79_gpio_init(void)

	if (soc_is_ar71xx())
		ath79_gpio_count = AR71XX_GPIO_COUNT;
	else if (soc_is_ar724x())
		ath79_gpio_count = AR724X_GPIO_COUNT;
	else if (soc_is_ar7240())
		ath79_gpio_count = AR7240_GPIO_COUNT;
	else if (soc_is_ar7241() || soc_is_ar7242())
		ath79_gpio_count = AR7241_GPIO_COUNT;
	else if (soc_is_ar913x())
		ath79_gpio_count = AR913X_GPIO_COUNT;
	else if (soc_is_ar933x())
+2 −1
Original line number Diff line number Diff line
@@ -393,7 +393,8 @@
#define AR71XX_GPIO_REG_FUNC		0x28

#define AR71XX_GPIO_COUNT		16
#define AR724X_GPIO_COUNT		18
#define AR7240_GPIO_COUNT		18
#define AR7241_GPIO_COUNT		20
#define AR913X_GPIO_COUNT		22
#define AR933X_GPIO_COUNT		30
#define AR934X_GPIO_COUNT		23