diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2013-05-02 00:40:45 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2013-05-02 00:40:45 +0000 |
commit | 3d774cfd090a7d455628f48573559f669d6dd6cd (patch) | |
tree | 90191e58632710ad17a1b2d46f99940f53848c47 /sys/mips/atheros | |
parent | 07290e58ff711905ab79cdc2ccc7bc7c725c983e (diff) | |
download | src-3d774cfd090a7d455628f48573559f669d6dd6cd.tar.gz src-3d774cfd090a7d455628f48573559f669d6dd6cd.zip |
Add the AR933x SoC GPIO pin count limitation.
Notes
Notes:
svn path=/head/; revision=250165
Diffstat (limited to 'sys/mips/atheros')
-rw-r--r-- | sys/mips/atheros/ar71xx_gpio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/mips/atheros/ar71xx_gpio.c b/sys/mips/atheros/ar71xx_gpio.c index 580208eb7e1b..e6319cf6d405 100644 --- a/sys/mips/atheros/ar71xx_gpio.c +++ b/sys/mips/atheros/ar71xx_gpio.c @@ -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 *maxpin) 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; } |