Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161336910
D20170.id57379.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D20170.id57379.diff
View Options
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 10:53 PM (8 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34640573
Default Alt Text
D20170.id57379.diff (664 B)
Attached To
Mode
D20170: Add GPIO MUX support on AR934x and AR1321
Attached
Detach File
Event Timeline
Log In to Comment