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()
179 u32 pcgcctl; in dwc2_restore_essential_regs() local
191 pcgcctl = (gr->pcgcctl & 0xffffc000); in dwc2_restore_essential_regs()
194 if (!(pcgcctl & PCGCTL_P2HD_PRT_SPD_MASK)) in dwc2_restore_essential_regs()
195 pcgcctl |= BIT(17); in dwc2_restore_essential_regs()
197 if (!(pcgcctl & PCGCTL_P2HD_DEV_ENUM_SPD_MASK)) in dwc2_restore_essential_regs()
198 pcgcctl |= BIT(17); in dwc2_restore_essential_regs()
200 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
217 pcgcctl |= PCGCTL_RESTOREMODE; in dwc2_restore_essential_regs()
218 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
221 pcgcctl |= PCGCTL_ESS_REG_RESTORED; in dwc2_restore_essential_regs()
222 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
227 pcgcctl |= PCGCTL_RESTOREMODE | PCGCTL_RSTPDWNMODULE; in dwc2_restore_essential_regs()
228 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()
231 pcgcctl |= PCGCTL_ESS_REG_RESTORED; in dwc2_restore_essential_regs()
232 dwc2_writel(hsotg, pcgcctl, PCGCTL); in dwc2_restore_essential_regs()