|
@@ -436,8 +436,6 @@ static void dwc3_phy_setup(struct dwc3 *dwc)
|
|
|
|
|
|
dwc3_writel(dwc->regs, DWC3_GUSB3PIPECTL(0), reg);
|
|
|
|
|
|
- mdelay(100);
|
|
|
-
|
|
|
reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0));
|
|
|
|
|
|
/*
|
|
@@ -453,8 +451,6 @@ static void dwc3_phy_setup(struct dwc3 *dwc)
|
|
|
reg &= ~DWC3_GUSB2PHYCFG_SUSPHY;
|
|
|
|
|
|
dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg);
|
|
|
-
|
|
|
- mdelay(100);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -569,8 +565,6 @@ static int dwc3_core_init(struct dwc3 *dwc)
|
|
|
|
|
|
dwc3_writel(dwc->regs, DWC3_GCTL, reg);
|
|
|
|
|
|
- dwc3_phy_setup(dwc);
|
|
|
-
|
|
|
ret = dwc3_alloc_scratch_buffers(dwc);
|
|
|
if (ret)
|
|
|
goto err1;
|
|
@@ -892,6 +886,8 @@ static int dwc3_probe(struct platform_device *pdev)
|
|
|
platform_set_drvdata(pdev, dwc);
|
|
|
dwc3_cache_hwparams(dwc);
|
|
|
|
|
|
+ dwc3_phy_setup(dwc);
|
|
|
+
|
|
|
ret = dwc3_core_get_phy(dwc);
|
|
|
if (ret)
|
|
|
goto err0;
|