ZyXEL NBG6716 add missing GPIO USB power on/off
Signed-off-by: Marcin Mikolajczak <gr4ffy at gmail.com> --- Index: target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c =================================================================== --- target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c (revision 44419) +++ target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c (working copy) @@ -22,6 +22,7 @@ #include <linux/platform_device.h> #include <linux/ar8216_platform.h> +#include <linux/gpio.h> #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/platform/ar934x_nfc.h> @@ -55,6 +56,8 @@ #define NBG6716_GPIO_BTN_USB2 14 #define NBG6716_GPIO_BTN_WPS 22 +#define NBG6716_GPIO_USB_POWER 16 + #define NBG6716_KEYS_POLL_INTERVAL 20 /* msecs */ #define NBG6716_KEYS_DEBOUNCE_INTERVAL (3 * NBG6716_KEYS_POLL_INTERVAL) @@ -203,6 +206,10 @@ ath79_nfc_set_ecc_mode(AR934X_NFC_ECC_HW); ath79_register_nfc(); + gpio_request_one(NBG6716_GPIO_USB_POWER, + GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, + "USB power"); + ath79_register_usb(); nbg6716_get_mac("ethaddr=", tmpmac); _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel