Lines Matching refs:gotgctl
16 #define dwc2_ovr_gotgctl(gotgctl) \ argument
17 ((gotgctl) |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN | GOTGCTL_VBVALOEN | \
23 u32 gotgctl; in dwc2_ovr_init() local
27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init()
28 dwc2_ovr_gotgctl(gotgctl); in dwc2_ovr_init()
29 gotgctl &= ~(GOTGCTL_BVALOVAL | GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL); in dwc2_ovr_init()
31 gotgctl |= GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_init()
33 gotgctl |= GOTGCTL_BVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_init()
34 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init()
43 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid() local
46 if ((valid && (gotgctl & GOTGCTL_ASESVLD)) || in dwc2_ovr_avalid()
47 (!valid && !(gotgctl & GOTGCTL_ASESVLD))) in dwc2_ovr_avalid()
51 dwc2_ovr_gotgctl(gotgctl); in dwc2_ovr_avalid()
53 gotgctl &= ~GOTGCTL_BVALOVAL; in dwc2_ovr_avalid()
55 gotgctl |= GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_avalid()
57 gotgctl &= ~(GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL); in dwc2_ovr_avalid()
58 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_avalid()
65 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_bvalid() local
68 if ((valid && (gotgctl & GOTGCTL_BSESVLD)) || in dwc2_ovr_bvalid()
69 (!valid && !(gotgctl & GOTGCTL_BSESVLD))) in dwc2_ovr_bvalid()
73 dwc2_ovr_gotgctl(gotgctl); in dwc2_ovr_bvalid()
75 gotgctl &= ~GOTGCTL_AVALOVAL; in dwc2_ovr_bvalid()
77 gotgctl |= GOTGCTL_BVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_bvalid()
79 gotgctl &= ~(GOTGCTL_BVALOVAL | GOTGCTL_VBVALOVAL); in dwc2_ovr_bvalid()
80 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_bvalid()