ar71xx: add kernel support for the Allnet ALL0258N board
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / gpio.c
index cdb614bbe1e50081e0cb7e45d54b855fbcb65a15..10d80817f5a2346aea0ed4c47b5fc12cd65388bf 100644 (file)
@@ -1,7 +1,7 @@
 /*
- *  Atheros AR71xx SoC GPIO API support
+ *  Atheros AR7XXX/AR9XXX SoC GPIO API support
  *
- *  Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
+ *  Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
  *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
  *
  *  This program is free software; you can redistribute it and/or modify it
@@ -172,6 +172,17 @@ void __init ar71xx_gpio_init(void)
                ar71xx_gpio_chip.ngpio = AR91XX_GPIO_COUNT;
                break;
 
+       case AR71XX_SOC_AR9330:
+       case AR71XX_SOC_AR9331:
+               ar71xx_gpio_chip.ngpio = AR933X_GPIO_COUNT;
+               break;
+
+       case AR71XX_SOC_AR9341:
+       case AR71XX_SOC_AR9342:
+       case AR71XX_SOC_AR9344:
+               ar71xx_gpio_chip.ngpio = AR934X_GPIO_COUNT;
+               break;
+
        default:
                BUG();
        }