Lines Matching refs:pcgcctl
86 gr->pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_backup_global_registers()
124 dwc2_writel(hsotg, gr->pcgcctl, PCGCTL); in dwc2_restore_global_registers()
138 u32 pcgcctl; in dwc2_exit_partial_power_down() local
144 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_exit_partial_power_down()
145 pcgcctl &= ~PCGCTL_STOPPCLK; in dwc2_exit_partial_power_down()
146 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_exit_partial_power_down()
148 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_exit_partial_power_down()
149 pcgcctl &= ~PCGCTL_PWRCLMP; in dwc2_exit_partial_power_down()
150 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_exit_partial_power_down()
152 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_exit_partial_power_down()
153 pcgcctl &= ~PCGCTL_RSTPDWNMODULE; in dwc2_exit_partial_power_down()
154 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_exit_partial_power_down()
191 u32 pcgcctl; in dwc2_enter_partial_power_down() local
228 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_enter_partial_power_down()
230 pcgcctl |= PCGCTL_PWRCLMP; in dwc2_enter_partial_power_down()
231 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_enter_partial_power_down()
234 pcgcctl |= PCGCTL_RSTPDWNMODULE; in dwc2_enter_partial_power_down()
235 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_enter_partial_power_down()
238 pcgcctl |= PCGCTL_STOPPCLK; in dwc2_enter_partial_power_down()
239 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_enter_partial_power_down()
254 u32 pcgcctl; in dwc2_restore_essential_regs() local
266 pcgcctl = (gr->pcgcctl & 0xffffc000); in dwc2_restore_essential_regs()
269 if (!(pcgcctl & PCGCTL_P2HD_PRT_SPD_MASK)) in dwc2_restore_essential_regs()
270 pcgcctl |= BIT(17); in dwc2_restore_essential_regs()
272 if (!(pcgcctl & PCGCTL_P2HD_DEV_ENUM_SPD_MASK)) in dwc2_restore_essential_regs()
273 pcgcctl |= BIT(17); in dwc2_restore_essential_regs()
275 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
292 pcgcctl |= PCGCTL_RESTOREMODE; in dwc2_restore_essential_regs()
293 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
296 pcgcctl |= PCGCTL_ESS_REG_RESTORED; in dwc2_restore_essential_regs()
297 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
302 pcgcctl |= PCGCTL_RESTOREMODE | PCGCTL_RSTPDWNMODULE; in dwc2_restore_essential_regs()
303 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
306 pcgcctl |= PCGCTL_ESS_REG_RESTORED; in dwc2_restore_essential_regs()
307 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()