mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
USB: fix RK3188 usb20otg_hw_init
This commit is contained in:
parent
96e0741e03
commit
3d04dd4ebb
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user