[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
This commit is contained in:
Adrian Chadd 2019-05-15 16:51:08 +00:00
parent 15c9c06e6a
commit 8771e6389b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347618

View File

@ -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;