The Atheros AR7241 has 20 GPIO pins
AR724X_GPIO_PINS used for this family is defined as 18 The datasheet for the AR7241 describes 20 pins, allow all to be used. Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Reviewed by: mizhka Differential Revision: https://reviews.freebsd.org/D17580
This commit is contained in:
parent
771a7591dc
commit
17b9e44c40
@ -226,10 +226,12 @@ ar71xx_gpio_pin_max(device_t dev, int *maxpin)
|
||||
*maxpin = AR91XX_GPIO_PINS - 1;
|
||||
break;
|
||||
case AR71XX_SOC_AR7240:
|
||||
case AR71XX_SOC_AR7241:
|
||||
case AR71XX_SOC_AR7242:
|
||||
*maxpin = AR724X_GPIO_PINS - 1;
|
||||
break;
|
||||
case AR71XX_SOC_AR7241:
|
||||
*maxpin = AR7241_GPIO_PINS - 1;
|
||||
break;
|
||||
case AR71XX_SOC_AR9330:
|
||||
case AR71XX_SOC_AR9331:
|
||||
*maxpin = AR933X_GPIO_COUNT - 1;
|
||||
|
@ -55,6 +55,7 @@
|
||||
|
||||
#define AR71XX_GPIO_PINS 12
|
||||
#define AR724X_GPIO_PINS 18
|
||||
#define AR7241_GPIO_PINS 20
|
||||
#define AR91XX_GPIO_PINS 22
|
||||
|
||||
struct ar71xx_gpio_softc {
|
||||
|
Loading…
Reference in New Issue
Block a user