USB: Support usb irq wakeup system.

This commit is contained in:
wlf
2014-03-26 10:16:56 +08:00
parent d49bca4da8
commit 3ee8b2c59f
3 changed files with 3 additions and 3 deletions

View File

@@ -39,6 +39,7 @@
#define USB_IRQ_WAKEUP (7)
extern int rk_usb_charger_status;
extern void rk_send_wakeup_key(void);
/* rk3188 platform data */
extern struct dwc_otg_platform_data usb20otg_pdata_rk3188;
extern struct dwc_otg_platform_data usb20host_pdata_rk3188;

View File

@@ -385,7 +385,7 @@ struct rkehci_platform_data rkhsic_pdata_rk3188 = {
inline static void do_wakeup(struct work_struct *work)
{
// rk28_send_wakeup_key();
rk_send_wakeup_key(); // wake up the system
}
/********** handler for bvalid irq **********/

View File

@@ -531,7 +531,7 @@ struct rkehci_platform_data rkohci_pdata_rk3288 = {
#define WAKE_LOCK_TIMEOUT (HZ * 10)
inline static void do_wakeup(struct work_struct *work)
{
// rk28_send_wakeup_key();
rk_send_wakeup_key(); // wake up the system
}
static void usb_battery_charger_detect_work(struct work_struct *work)
@@ -594,7 +594,6 @@ static irqreturn_t id_irq_handler(int irq, void *dev_id)
static irqreturn_t line_irq_handler(int irq, void *dev_id)
{
unsigned int uoc_con;
/* clear irq */
if(control_usb->grf_uoc0_base->CON0 & 1<<15){