svn commit: r345492 - head/sys/mips/atheros

Allan Jude allanjude at FreeBSD.org
Mon Mar 25 07:48:53 UTC 2019


Author: allanjude
Date: Mon Mar 25 07:48:52 2019
New Revision: 345492
URL: https://svnweb.freebsd.org/changeset/base/345492

Log:
  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 at yahoo.co.jp>
  Reviewed by:	mizhka
  Differential Revision:	https://reviews.freebsd.org/D17580

Modified:
  head/sys/mips/atheros/ar71xx_gpio.c
  head/sys/mips/atheros/ar71xx_gpiovar.h

Modified: head/sys/mips/atheros/ar71xx_gpio.c
==============================================================================
--- head/sys/mips/atheros/ar71xx_gpio.c	Mon Mar 25 07:46:20 2019	(r345491)
+++ head/sys/mips/atheros/ar71xx_gpio.c	Mon Mar 25 07:48:52 2019	(r345492)
@@ -226,9 +226,11 @@ 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:

Modified: head/sys/mips/atheros/ar71xx_gpiovar.h
==============================================================================
--- head/sys/mips/atheros/ar71xx_gpiovar.h	Mon Mar 25 07:46:20 2019	(r345491)
+++ head/sys/mips/atheros/ar71xx_gpiovar.h	Mon Mar 25 07:48:52 2019	(r345492)
@@ -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 {


More information about the svn-src-all mailing list