config RK_USB_DETECT_BY_OTG_BVALID
bool "Wakeup system by OTG BVALID interrupt when USB OTG conneted"
depends on USB_GADGET && (ARCH_RK2928 || ARCH_RK3188)
- default y if ARCH_RK2928
+ default y if ARCH_RK2928 || ARCH_RK3188
endif
int board_boot_mode(void);
/* for USB detection */
-#ifdef CONFIG_USB_GADGET
+#if defined(CONFIG_USB_GADGET) && !defined(CONFIG_RK_USB_DETECT_BY_OTG_BVALID)
int __init board_usb_detect_init(unsigned gpio);
#else
static int inline board_usb_detect_init(unsigned gpio) { return 0; }
return IRQ_HANDLED;
}
+#ifndef CONFIG_RK_USB_DETECT_BY_OTG_BVALID
int __init board_usb_detect_init(unsigned gpio)
{
int ret;
return 0;
}
+#endif
#ifdef IRQ_OTG_BVALID
#include <linux/io.h>