pr_info("%s: USB support disabled\n", usbcore_name);
return 0;
}
- printk("usb_init, usbcore,everest\n");
retval = usb_debugfs_init();
if (retval)
goto out;
dwc_modify_reg32((uint32_t *)(otgreg+0xc),0x20000000,0x20000000);
dwc_write_reg32((uint32_t *)(otgreg+0x440), 0x1000);
#endif
- DWC_PRINT("dwc_otg_driver_probe,everest\n");
dwc_otg_device = kmalloc(sizeof(dwc_otg_device_t), GFP_KERNEL);
*otg_phy_con1 &= ~(0x01<<3); // enter suspend.
}
#endif
- DWC_PRINT("dwc_otg_driver_probe end, everest\n");
return 0;
fail:
devm_kfree(&pdev->dev, dwc_otg_device);
clk_disable(phyclk);
clk_disable(ahbclk);
#endif
- DWC_PRINT("host11_driver_probe end, everest\n");
return 0;
fail2:
otgreg |= (0x01<<13); // software control
*otg_phy_con1 = otgreg;
#endif
- DWC_PRINT("host20_driver_probe end, everest\n");
return 0;
fail:
if(driver_create_file(&dwc_otg_driver.driver, &driver_attr_force_usb_mode))
pr_warning("DWC_OTG: Failed to create driver force usb mode file\n");
#endif
+
+ /*
+ * USB2.0 host controller
+ */
+#ifdef CONFIG_USB20_HOST
+ retval = platform_driver_register(&host20_driver);
+ if (retval < 0)
+ {
+ DWC_ERROR("%s retval=%d\n", __func__, retval);
+ return retval;
+ }
+#endif
/*
* USB1.1 host controller
// retval = driver_create_file(&host11_driver.driver, &driver_attr_enable_usb11);
#endif
- /*
- * USB1.1 host controller
- */
-#ifdef CONFIG_USB20_HOST
- retval = platform_driver_register(&host20_driver);
- if (retval < 0)
- {
- DWC_ERROR("%s retval=%d\n", __func__, retval);
- return retval;
- }
-#endif
return retval;
}
module_init(dwc_otg_driver_init);
dev->coherent_dma_mask = 0;
}
#endif
- DWC_PRINT("dwc_otg_hcd_init everest\n");
// g_dbg_lvl = 0xff;
/*
goto error3;
}
- DWC_PRINT("%s end,everest\n",__func__);
// DWC_DEBUGPL(DBG_HCD, "DWC OTG HCD Initialized HCD, bus=%s, usbbus=%d\n",
// dev->bus_id, hcd->self.busnum);
dev->coherent_dma_mask = 0;
}
#endif
- DWC_PRINT("%s everest\n",__func__);
// g_dbg_lvl = 0xff;
DWC_DEBUGPL(DBG_HCD, "DWC OTG HCD INIT\n");
goto error3;
}
- DWC_PRINT("%s end,everest\n",__func__);
// DWC_DEBUGPL(DBG_HCD, "DWC OTG HCD Initialized HCD, bus=%s, usbbus=%d\n",
// dev->bus_id, hcd->self.busnum);
dev->coherent_dma_mask = 0;
}
#endif
- DWC_PRINT("%s everest\n",__func__);
// g_dbg_lvl = 0xff;
DWC_DEBUGPL(DBG_HCD, "DWC OTG HCD INIT\n");
goto error3;
}
- DWC_PRINT("%s end,everest\n",__func__);
return 0;
DWC_DEBUGPL(DBG_HCD, "DWC OTG HCD START\n");
spin_lock_irqsave(&dwc_otg_hcd->global_lock, flags);
- DWC_PRINT("dwc_otg_hcd_start! everest\n");
bus = hcd_to_bus(_hcd);
_hcd->state = HC_STATE_RUNNING;
dwc_otg_core_if_t *core_if = otg_dev->core_if;
int retval = 0;
int irq;
- DWC_PRINT("dwc_otg_pcd_init,everest\n");
/*
* Allocate PCD structure
*/
goto done;
}
}
- printk("usb_add_config, add and bind,everest\n");
config->cdev = cdev;
list_add_tail(&config->list, &cdev->configs);