svn commit: r250165 - head/sys/mips/atheros
Adrian Chadd
adrian at FreeBSD.org
Thu May 2 00:40:46 UTC 2013
Author: adrian
Date: Thu May 2 00:40:45 2013
New Revision: 250165
URL: http://svnweb.freebsd.org/changeset/base/250165
Log:
Add the AR933x SoC GPIO pin count limitation.
Modified:
head/sys/mips/atheros/ar71xx_gpio.c
Modified: head/sys/mips/atheros/ar71xx_gpio.c
==============================================================================
--- head/sys/mips/atheros/ar71xx_gpio.c Wed May 1 23:58:39 2013 (r250164)
+++ head/sys/mips/atheros/ar71xx_gpio.c Thu May 2 00:40:45 2013 (r250165)
@@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$");
#include <mips/atheros/ar71xxreg.h>
#include <mips/atheros/ar71xx_setup.h>
#include <mips/atheros/ar71xx_gpiovar.h>
+#include <mips/atheros/ar933xreg.h>
#include "gpio_if.h"
@@ -136,6 +137,10 @@ ar71xx_gpio_pin_max(device_t dev, int *m
case AR71XX_SOC_AR7242:
*maxpin = AR724X_GPIO_PINS - 1;
break;
+ case AR71XX_SOC_AR9330:
+ case AR71XX_SOC_AR9331:
+ *maxpin = AR933X_GPIO_COUNT - 1;
+ break;
default:
*maxpin = AR71XX_GPIO_PINS - 1;
}
More information about the svn-src-head
mailing list