From: Luochongjun Date: Fri, 8 Jun 2018 03:08:19 +0000 (+0800) Subject: fix gpio status X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2daa9f43193d8f57d20de743d961d2502fb1fd26;p=thirdparty%2Fopenwrt.git fix gpio status --- diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x750-4g.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x750-4g.c index c361fd72386..b05246863c4 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x750-4g.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x750-4g.c @@ -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();