RK3188: wakeup system by OTG BVALID interrupt in defconfig

This commit is contained in:
wlf
2013-03-23 16:30:55 +08:00
parent e5e13e606d
commit f0ec0ae82c
3 changed files with 4 additions and 2 deletions

View File

@@ -210,6 +210,6 @@ config RK_TIMER
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

View File

@@ -477,7 +477,7 @@ struct rk_hdmi_platform_data {
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; }

View File

@@ -37,6 +37,7 @@ static irqreturn_t usb_detect_irq_handler(int irq, void *dev_id)
return IRQ_HANDLED;
}
#ifndef CONFIG_RK_USB_DETECT_BY_OTG_BVALID
int __init board_usb_detect_init(unsigned gpio)
{
int ret;
@@ -75,6 +76,7 @@ int __init board_usb_detect_init(unsigned gpio)
return 0;
}
#endif
#ifdef IRQ_OTG_BVALID
#include <linux/io.h>