Lines Matching refs:cgu
98 static struct ingenic_cgu *cgu; variable
114 spin_lock_irqsave(&cgu->lock, flags); in jz4780_otg_phy_set_parent()
116 usbpcr1 = readl(cgu->base + CGU_REG_USBPCR1); in jz4780_otg_phy_set_parent()
120 writel(usbpcr1, cgu->base + CGU_REG_USBPCR1); in jz4780_otg_phy_set_parent()
122 spin_unlock_irqrestore(&cgu->lock, flags); in jz4780_otg_phy_set_parent()
132 usbpcr1 = readl(cgu->base + CGU_REG_USBPCR1); in jz4780_otg_phy_recalc_rate()
195 spin_lock_irqsave(&cgu->lock, flags); in jz4780_otg_phy_set_rate()
197 usbpcr1 = readl(cgu->base + CGU_REG_USBPCR1); in jz4780_otg_phy_set_rate()
200 writel(usbpcr1, cgu->base + CGU_REG_USBPCR1); in jz4780_otg_phy_set_rate()
202 spin_unlock_irqrestore(&cgu->lock, flags); in jz4780_otg_phy_set_rate()
720 cgu = ingenic_cgu_new(jz4780_cgu_clocks, in jz4780_cgu_init()
722 if (!cgu) { in jz4780_cgu_init()
727 retval = ingenic_cgu_register_clocks(cgu); in jz4780_cgu_init()