Author: adrian
Date: Wed May 15 16:51:08 2019
New Revision: 347618
URL: https://svnweb.freebsd.org/changeset/base/347618

Log:
  [ar71xx_gpio] Add AR9341/AR9342 to the list of chips for programming 
function/output enable.
  
  This is reqired to use the gpiofunc behaviour for configuring GPIO
  pins at boot time.
  
  Submitted by: <yamori...@yahoo.co.jp>
  Differential Revision:        https://reviews.freebsd.org/D20170

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 15 15:54:27 2019        
(r347617)
+++ head/sys/mips/atheros/ar71xx_gpio.c Wed May 15 16:51:08 2019        
(r347618)
@@ -151,6 +151,8 @@ static int
 ar71xx_gpio_oe_is_high(void)
 {
        switch (ar71xx_soc) {
+       case AR71XX_SOC_AR9341:
+       case AR71XX_SOC_AR9342:
        case AR71XX_SOC_AR9344:
        case AR71XX_SOC_QCA9533:
        case AR71XX_SOC_QCA9533_V2:
@@ -559,7 +561,7 @@ ar71xx_gpio_attach(device_t dev)
                    &gpiomode) != 0)
                        continue;
 
-               /* We only handle mode=1 for now */
+               /* We only handle mode=1 (output) for now */
                if (gpiomode != 1)
                        continue;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to