static irqreturn_t bvalid_irq_handler(int irq, void *dev_id)
{
/* clear irq */
- uoc_write(UOC_HIWORD_UPDATE(0x1, 0x1, 3), 0x690);
+ uoc_write(UOC_HIWORD_UPDATE(0x1, 0x1, 3), 0x6a0);
#ifdef CONFIG_RK_USB_UART
/* usb otg dp/dm switch to usb phy */
dwc_otg_uart_mode(NULL, PHY_USB_MODE);
wake_lock_init(&control_usb->usb_wakelock, WAKE_LOCK_SUSPEND,
"usb_detect");
INIT_DELAYED_WORK(&control_usb->usb_det_wakeup_work, do_wakeup);
-#if 0
+
/*register otg_bvalid irq */
irq = platform_get_irq_byname(pdev, "otg_bvalid");
if ((irq > 0) && control_usb->usb_irq_wakeup) {
uoc_write(UOC_HIWORD_UPDATE(0x1, 0x1, 3), 0x680);
}
}
-#endif
+
return 0;
}