mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
USB: Support usb irq wakeup system.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 **********/
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user