From 8771e6389bd3e266e513ceceac75f9ac10314778 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 15 May 2019 16:51:08 +0000 Subject: [PATCH] [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: Differential Revision: https://reviews.freebsd.org/D20170 --- sys/mips/atheros/ar71xx_gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/mips/atheros/ar71xx_gpio.c b/sys/mips/atheros/ar71xx_gpio.c index 9151b9edef51..fd3d51a02c7a 100644 --- a/sys/mips/atheros/ar71xx_gpio.c +++ b/sys/mips/atheros/ar71xx_gpio.c @@ -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;