dm: core: Replace of_offset with accessor
[oweals/u-boot.git] / drivers / usb / host / xhci-dwc3.c
index 67147cb6278093c905d0939b5ae6ee5a515b413b..33961cd63455ff7353481ffb9a798e67a29d34fb 100644 (file)
@@ -44,6 +44,8 @@ void dwc3_core_soft_reset(struct dwc3 *dwc3_reg)
        /* reset USB3 phy - if required */
        dwc3_phy_reset(dwc3_reg);
 
+       mdelay(100);
+
        /* After PHYs are stable we can take Core out of reset state */
        clrbits_le32(&dwc3_reg->g_ctl, DWC3_GCTL_CORESOFTRESET);
 }
@@ -89,3 +91,9 @@ int dwc3_core_init(struct dwc3 *dwc3_reg)
 
        return 0;
 }
+
+void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val)
+{
+       setbits_le32(&dwc3_reg->g_fladj, GFLADJ_30MHZ_REG_SEL |
+                       GFLADJ_30MHZ(val));
+}