diff options
| author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-22 22:38:19 +0000 | 
|---|---|---|
| committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-22 22:38:19 +0000 | 
| commit | e0b80e41eb0b24e76285b9355725d2f4f66ada50 (patch) | |
| tree | dccbb34ba7bd86e0b13abd8226004f09f5766847 /target/linux/ar71xx/patches-3.2/210-MIPS-ath79-fix-gpio-count-for-ar7241.patch | |
| parent | 22b99f32a13348502bc0f33b93b70565e941d99c (diff) | |
ar71xx: add initial support for 3.2
Tested on the following boards:
  ALFA AP96
  TL-MR3220 v1
  TL-WR1043ND v1
  TL-WR2543ND v1
  TL-WR703N v1
  TL-WR741ND v1
  TL-WR741ND v4
  WNDR3700 v1
  WZR-HP-G300NH
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29868 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/patches-3.2/210-MIPS-ath79-fix-gpio-count-for-ar7241.patch')
| -rw-r--r-- | target/linux/ar71xx/patches-3.2/210-MIPS-ath79-fix-gpio-count-for-ar7241.patch | 27 | 
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-3.2/210-MIPS-ath79-fix-gpio-count-for-ar7241.patch b/target/linux/ar71xx/patches-3.2/210-MIPS-ath79-fix-gpio-count-for-ar7241.patch new file mode 100644 index 000000000..ca0d3cc70 --- /dev/null +++ b/target/linux/ar71xx/patches-3.2/210-MIPS-ath79-fix-gpio-count-for-ar7241.patch @@ -0,0 +1,27 @@ +--- a/arch/mips/ath79/gpio.c ++++ b/arch/mips/ath79/gpio.c +@@ -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()) +--- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h ++++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h +@@ -428,7 +428,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  | 
