*/
int dwc_vbus_status( void )
{
+#ifdef CONFIG_USB20_OTG
dwc_otg_pcd_t *pcd = 0;
pcd = gadget_wrapper->pcd;
return 0;
else
return pcd->vbus_status ;
-
+#else
+ return 0;
+#endif
}
EXPORT_SYMBOL(dwc_vbus_status);
}
gpio_direction_output(control_usb->otg_gpios->gpio, 0);
+#ifdef CONFIG_USB20_OTG
if(usb20otg_get_status(USB_STATUS_BVABLID)){
rk_usb_charger_status = USB_BC_TYPE_SDP;
schedule_delayed_work(&control_usb->usb_charger_det_work, HZ/10);
}
+#endif
ret = otg_irq_detect_init(pdev);
if (ret < 0)