Index: sys/mips/atheros/ar71xx_gpio.c =================================================================== --- sys/mips/atheros/ar71xx_gpio.c +++ sys/mips/atheros/ar71xx_gpio.c @@ -559,10 +559,6 @@ &gpiomode) != 0) continue; - /* We only handle mode=1 for now */ - if (gpiomode != 1) - continue; - device_printf(dev, "%s: GPIO %d: func=%d, mode=%d\n", __func__, i, @@ -575,7 +571,8 @@ GPIO_WRITE(sc, AR71XX_GPIO_OUT, oe); /* Set output */ - ar71xx_gpio_oe_set_output(sc, i); + if (gpiomode == 1) + ar71xx_gpio_oe_set_output(sc, i); /* Finally: Set the output config */ ar71xx_gpio_ouput_configure(i, gpiofunc);