USB: Support usb irq wakeup system.
authorwlf <wulf@rock-chips.com>
Wed, 26 Mar 2014 02:16:56 +0000 (10:16 +0800)
committerwlf <wulf@rock-chips.com>
Wed, 26 Mar 2014 02:16:56 +0000 (10:16 +0800)
drivers/usb/dwc_otg_310/usbdev_rk.h
drivers/usb/dwc_otg_310/usbdev_rk30.c
drivers/usb/dwc_otg_310/usbdev_rk32.c

index 288597760084eaa6812e7b4e8f4545e9940cb955..56aa975f61a2feb55315fd21500ec5fd74189d95 100755 (executable)
@@ -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;
index 6fb727f8a56329e53eb75600f948caf8e1e0b429..e93fbf804b67231dc819031ff0c97f3fc5f1ff1f 100755 (executable)
@@ -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 **********/
index 731e5a49dd60b8a7bcd12f77d42948b8481f980e..d6ecfd13915380c4f228d213ec3dffc36258b41e 100755 (executable)
@@ -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){