Lines Matching refs:uctl_ctl
149 u64 uctl_ctl; in dwc3_octeon_clocks_start() local
214 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
215 uctl_ctl |= UCTL_CTL_UCTL_RST | UCTL_CTL_UAHC_RST | UCTL_CTL_UPHY_RST; in dwc3_octeon_clocks_start()
216 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
219 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
220 uctl_ctl |= UCTL_CTL_H_CLKDIV_RST; in dwc3_octeon_clocks_start()
221 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
230 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
231 uctl_ctl &= ~UCTL_CTL_H_CLKDIV_SEL; in dwc3_octeon_clocks_start()
232 uctl_ctl |= FIELD_PREP(UCTL_CTL_H_CLKDIV_SEL, div); in dwc3_octeon_clocks_start()
233 uctl_ctl |= UCTL_CTL_H_CLK_EN; in dwc3_octeon_clocks_start()
234 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
235 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
236 if (div != FIELD_GET(UCTL_CTL_H_CLKDIV_SEL, uctl_ctl) || in dwc3_octeon_clocks_start()
237 !(uctl_ctl & UCTL_CTL_H_CLK_EN)) { in dwc3_octeon_clocks_start()
243 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
244 uctl_ctl &= ~UCTL_CTL_H_CLKDIV_RST; in dwc3_octeon_clocks_start()
245 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
248 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
249 uctl_ctl &= ~UCTL_CTL_REF_CLK_SEL; in dwc3_octeon_clocks_start()
250 uctl_ctl |= FIELD_PREP(UCTL_CTL_REF_CLK_SEL, ref_clk_sel); in dwc3_octeon_clocks_start()
251 uctl_ctl &= ~UCTL_CTL_REF_CLK_FSEL; in dwc3_octeon_clocks_start()
252 uctl_ctl |= FIELD_PREP(UCTL_CTL_REF_CLK_FSEL, 0x07); in dwc3_octeon_clocks_start()
253 uctl_ctl &= ~UCTL_CTL_REF_CLK_DIV2; in dwc3_octeon_clocks_start()
263 uctl_ctl &= ~UCTL_CTL_REF_CLK_FSEL; in dwc3_octeon_clocks_start()
264 uctl_ctl |= FIELD_PREP(UCTL_CTL_REF_CLK_FSEL, 0x27); in dwc3_octeon_clocks_start()
274 uctl_ctl &= ~UCTL_CTL_MPLL_MULTIPLIER; in dwc3_octeon_clocks_start()
275 uctl_ctl |= FIELD_PREP(UCTL_CTL_MPLL_MULTIPLIER, mpll_mul); in dwc3_octeon_clocks_start()
278 uctl_ctl |= UCTL_CTL_SSC_EN; in dwc3_octeon_clocks_start()
281 uctl_ctl |= UCTL_CTL_REF_SSP_EN; in dwc3_octeon_clocks_start()
286 uctl_ctl |= UCTL_CTL_HS_POWER_EN; in dwc3_octeon_clocks_start()
287 uctl_ctl |= UCTL_CTL_SS_POWER_EN; in dwc3_octeon_clocks_start()
288 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
294 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
295 uctl_ctl &= ~UCTL_CTL_UCTL_RST; in dwc3_octeon_clocks_start()
296 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
308 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
309 uctl_ctl &= ~UCTL_CTL_UAHC_RST; in dwc3_octeon_clocks_start()
310 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
316 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
317 uctl_ctl |= UCTL_CTL_SCLK_EN; in dwc3_octeon_clocks_start()
318 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
321 uctl_ctl = ioread64(uctl_ctl_reg); in dwc3_octeon_clocks_start()
322 uctl_ctl &= ~UCTL_CTL_DRD_MODE; in dwc3_octeon_clocks_start()
323 iowrite64(uctl_ctl, uctl_ctl_reg); in dwc3_octeon_clocks_start()
342 u64 uctl_ctl; in dwc3_octeon_phy_reset() local
344 uctl_ctl = ioread64(base); in dwc3_octeon_phy_reset()
345 uctl_ctl &= ~UCTL_CTL_UPHY_RST; in dwc3_octeon_phy_reset()
346 iowrite64(uctl_ctl, base); in dwc3_octeon_phy_reset()