add wakeup_key at vbus disconnect

This commit is contained in:
yangkai 2012-08-21 14:15:42 +08:00
parent d10703a639
commit 1619efaa4d

View File

@ -87,6 +87,7 @@
#ifdef CONFIG_ARCH_RK29
#include <mach/cru.h>
#endif
#include <mach/board.h>
/**
* Static PCD pointer for use in usb_gadget_register_driver and
* usb_gadget_unregister_driver. Initialized in dwc_otg_pcd_init.
@ -1941,6 +1942,7 @@ static void dwc_otg_pcd_check_vbus_timer( unsigned long pdata )
if(_pcd->conn_status){
_pcd->conn_status = 0;
dwc_otg_msc_unlock(_pcd);
rk28_send_wakeup_key();
}
/* every 500 ms open usb phy power and start 1 jiffies timer to get vbus */
else if( _pcd->phy_suspend == 0 )