mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
RK3188: wakeup system by OTG BVALID interrupt in defconfig
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user