]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
fix gpio status
authorLuochongjun <luochongjun@gl-inet.com>
Fri, 8 Jun 2018 03:08:19 +0000 (11:08 +0800)
committerLuochongjun <luochongjun@gl-inet.com>
Fri, 8 Jun 2018 03:08:19 +0000 (11:08 +0800)
target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x750-4g.c

index c361fd723861a7a3da64cc6a0b7670415778cfc9..b05246863c4c7bde5fd0940b484e9e64e4e669f3 100644 (file)
@@ -38,6 +38,7 @@
 #define GL_X750_4G_GPIO_I2C_SDA                1
 
 #define GL_X750_4G_GPIO_USB_POWER              2
+#define GL_X750_4G_GPIO_PCI_POWER              0
 
 #define GL_X750_4G_KEYS_POLL_INTERVAL  20
 #define GL_X750_4G_KEYS_DEBOUNCE_INTERVAL      (3 * GL_X750_4G_KEYS_POLL_INTERVAL)
@@ -133,9 +134,13 @@ static void __init gl_x750_4g_setup(void)
                                        gl_x750_4g_gpio_keys);
 
        gpio_request_one(GL_X750_4G_GPIO_USB_POWER,
-                        GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
+                        GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED,
                         "USB power");
 
+        gpio_request_one(GL_X750_4G_GPIO_PCI_POWER,
+                         GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED,
+                         "PCI power");
+
 //     platform_device_register(&gl_x750_4g_i2c_gpio);
 
        ath79_register_usb();