Lines Matching full:cgu
3 * X1000 SoC CGU driver
13 #include <dt-bindings/clock/ingenic,x1000-cgu.h>
15 #include "cgu.h"
18 /* CGU register offsets */
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()
548 pr_err("%s: failed to initialise CGU\n", __func__); in x1000_cgu_init()
552 retval = ingenic_cgu_register_clocks(cgu); in x1000_cgu_init()
554 pr_err("%s: failed to register CGU Clocks\n", __func__); in x1000_cgu_init()
558 ingenic_cgu_register_syscore_ops(cgu); in x1000_cgu_init()
561 * CGU has some children devices, this is useful for probing children devices
564 CLK_OF_DECLARE_DRIVER(x1000_cgu, "ingenic,x1000-cgu", x1000_cgu_init);