USB: fix RK3188 usb20otg_hw_init

This commit is contained in:
wlf 2013-03-26 21:11:10 +08:00
parent 96e0741e03
commit 3d04dd4ebb
2 changed files with 5 additions and 8 deletions

View File

@ -1159,13 +1159,6 @@ static __devinit int dwc_otg_driver_probe(struct platform_device *pdev)
int irq;
struct dwc_otg_platform_data *pldata = dev->platform_data;
#ifdef CONFIG_ARCH_RK3188
unsigned int * USB_GRF_UOC0_CON0 = (unsigned int*)(RK30_GRF_BASE+0x10c);
/* usb phy enter usb mode */
* USB_GRF_UOC0_CON0 = (0x0300 << 16);
#endif
// clock and hw init
if(pldata->hw_init)
pldata->hw_init();

View File

@ -121,7 +121,11 @@ void usb20otg_hw_init(void)
#endif
#endif
// usb phy config init
#ifdef CONFIG_ARCH_RK3188
//usb phy enter usb mode
unsigned int * otg_phy_con3 = (unsigned int*)(USBGRF_UOC0_CON0);
*otg_phy_con3 = (0x0300 << 16);
#endif
// other haredware init
#if defined(CONFIG_ARCH_RK3066B) || defined(CONFIG_ARCH_RK3188)
//GPIO init