Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/dwc3.c
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | snps_dwc3_do_quirks(struct snps_dwc3_softc *sc) | ||||
reg = DWC3_READ(sc, DWC3_GUCTL1); | reg = DWC3_READ(sc, DWC3_GUCTL1); | ||||
if (device_has_property(sc->dev, "snps,dis-tx-ipgap-linecheck-quirk")) | if (device_has_property(sc->dev, "snps,dis-tx-ipgap-linecheck-quirk")) | ||||
reg |= DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS; | reg |= DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS; | ||||
DWC3_WRITE(sc, DWC3_GUCTL1, reg); | DWC3_WRITE(sc, DWC3_GUCTL1, reg); | ||||
reg = DWC3_READ(sc, DWC3_GUSB3PIPECTL0); | reg = DWC3_READ(sc, DWC3_GUSB3PIPECTL0); | ||||
if (device_has_property(sc->dev, "snps,dis-del-phy-power-chg-quirk")) | if (device_has_property(sc->dev, "snps,dis-del-phy-power-chg-quirk")) | ||||
reg |= DWC3_GUSB3PIPECTL0_DELAYP1TRANS; | reg &= ~DWC3_GUSB3PIPECTL0_DELAYP1TRANS; | ||||
if (device_has_property(sc->dev, "snps,dis_rxdet_inp3_quirk")) | if (device_has_property(sc->dev, "snps,dis_rxdet_inp3_quirk")) | ||||
reg |= DWC3_GUSB3PIPECTL0_DISRXDETINP3; | reg |= DWC3_GUSB3PIPECTL0_DISRXDETINP3; | ||||
DWC3_WRITE(sc, DWC3_GUSB3PIPECTL0, reg); | DWC3_WRITE(sc, DWC3_GUSB3PIPECTL0, reg); | ||||
} | } | ||||
static int | static int | ||||
snps_dwc3_probe(device_t dev) | snps_dwc3_probe(device_t dev) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |