Lines Matching refs:cgu
62 static struct ingenic_cgu *cgu; variable
70 usbpcr1 = readl(cgu->base + CGU_REG_USBPCR1); in x1000_otg_phy_recalc_rate()
122 spin_lock_irqsave(&cgu->lock, flags); in x1000_otg_phy_set_rate()
124 usbpcr1 = readl(cgu->base + CGU_REG_USBPCR1); in x1000_otg_phy_set_rate()
127 writel(usbpcr1, cgu->base + CGU_REG_USBPCR1); in x1000_otg_phy_set_rate()
129 spin_unlock_irqrestore(&cgu->lock, flags); in x1000_otg_phy_set_rate()
135 void __iomem *reg_opcr = cgu->base + CGU_REG_OPCR; in x1000_usb_phy_enable()
136 void __iomem *reg_usbpcr = cgu->base + CGU_REG_USBPCR; in x1000_usb_phy_enable()
145 void __iomem *reg_opcr = cgu->base + CGU_REG_OPCR; in x1000_usb_phy_disable()
146 void __iomem *reg_usbpcr = cgu->base + CGU_REG_USBPCR; in x1000_usb_phy_disable()
154 void __iomem *reg_opcr = cgu->base + CGU_REG_OPCR; in x1000_usb_phy_is_enabled()
155 void __iomem *reg_usbpcr = cgu->base + CGU_REG_USBPCR; in x1000_usb_phy_is_enabled()
201 writel(0, cgu->base + CGU_REG_I2SCDR1); in x1000_i2spll_set_rate_hook()
545 cgu = ingenic_cgu_new(x1000_cgu_clocks, in x1000_cgu_init()
547 if (!cgu) { in x1000_cgu_init()
552 retval = ingenic_cgu_register_clocks(cgu); in x1000_cgu_init()
558 ingenic_cgu_register_syscore_ops(cgu); in x1000_cgu_init()