mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Add the AR933x SoC GPIO pin count limitation.
This commit is contained in:
parent
07290e58ff
commit
3d774cfd09
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue