Disable USB overcurrent signaling.

This commit is contained in:
Sorgelig
2021-08-20 02:23:36 +08:00
parent 3d95de58f0
commit 077c2c317b
2 changed files with 4 additions and 4 deletions

View File

@@ -120,5 +120,7 @@
};
&usb1 {
disable-over-current;
dr_mode = "host";
status = "okay";
};

View File

@@ -1100,10 +1100,8 @@ static int dwc2_hs_phy_init(struct dwc2_hsotg *hsotg, bool select_phy)
if (hsotg->params.phy_ulpi_ddr)
usbcfg |= GUSBCFG_DDRSEL;
/* Set external VBUS indicator as needed. */
if (hsotg->params.oc_disable)
usbcfg |= (GUSBCFG_ULPI_INT_VBUS_IND |
GUSBCFG_INDICATORPASSTHROUGH);
usbcfg |= (GUSBCFG_ULPI_INT_VBUS_IND |
GUSBCFG_INDICATORPASSTHROUGH);
break;
case DWC2_PHY_TYPE_PARAM_UTMI:
/* UTMI+ interface */