Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2019 16:51:08 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347618 - head/sys/mips/atheros
Message-ID:  <201905151651.x4FGp8DF017394@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:	<yamori813@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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905151651.x4FGp8DF017394>