mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "usb: dwc3: Increase the inter packet gap for USB 2.0"
This commit is contained in:
commit
c4cf9870ca
2 changed files with 8 additions and 0 deletions
|
|
@ -1049,6 +1049,13 @@ static int dwc3_core_init(struct dwc3 *dwc)
|
|||
}
|
||||
}
|
||||
|
||||
/* set inter-packet gap 199.794ns to improve EL_23 margin */
|
||||
if (dwc->revision >= DWC3_USB31_REVISION_170A) {
|
||||
reg = dwc3_readl(dwc->regs, DWC3_GUCTL1);
|
||||
reg |= DWC3_GUCTL1_IP_GAP_ADD_ON(1);
|
||||
dwc3_writel(dwc->regs, DWC3_GUCTL1, reg);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
err4:
|
||||
|
|
|
|||
|
|
@ -251,6 +251,7 @@
|
|||
/* Global User Control 1 Register */
|
||||
#define DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS BIT(28)
|
||||
#define DWC3_GUCTL1_DEV_L1_EXIT_BY_HW BIT(24)
|
||||
#define DWC3_GUCTL1_IP_GAP_ADD_ON(n) (n << 21)
|
||||
|
||||
/* Global Status Register */
|
||||
#define DWC3_GSTS_OTG_IP BIT(10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue