#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;
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 **********/
#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)
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){