[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:
parent
15c9c06e6a
commit
8771e6389b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347618
@ -151,6 +151,8 @@ static int
|
|||||||
ar71xx_gpio_oe_is_high(void)
|
ar71xx_gpio_oe_is_high(void)
|
||||||
{
|
{
|
||||||
switch (ar71xx_soc) {
|
switch (ar71xx_soc) {
|
||||||
|
case AR71XX_SOC_AR9341:
|
||||||
|
case AR71XX_SOC_AR9342:
|
||||||
case AR71XX_SOC_AR9344:
|
case AR71XX_SOC_AR9344:
|
||||||
case AR71XX_SOC_QCA9533:
|
case AR71XX_SOC_QCA9533:
|
||||||
case AR71XX_SOC_QCA9533_V2:
|
case AR71XX_SOC_QCA9533_V2:
|
||||||
@ -559,7 +561,7 @@ ar71xx_gpio_attach(device_t dev)
|
|||||||
&gpiomode) != 0)
|
&gpiomode) != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* We only handle mode=1 for now */
|
/* We only handle mode=1 (output) for now */
|
||||||
if (gpiomode != 1)
|
if (gpiomode != 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user