Lines Matching refs:cgu
54 static struct ingenic_cgu *cgu; variable
220 cgu = ingenic_cgu_new(jz4740_cgu_clocks, in jz4740_cgu_init()
222 if (!cgu) { in jz4740_cgu_init()
227 retval = ingenic_cgu_register_clocks(cgu); in jz4740_cgu_init()
235 uint32_t lcr = readl(cgu->base + CGU_REG_LCR); in jz4740_clock_set_wait_mode()
247 writel(lcr, cgu->base + CGU_REG_LCR); in jz4740_clock_set_wait_mode()
252 uint32_t clkgr = readl(cgu->base + CGU_REG_CLKGR); in jz4740_clock_udc_disable_auto_suspend()
255 writel(clkgr, cgu->base + CGU_REG_CLKGR); in jz4740_clock_udc_disable_auto_suspend()
261 uint32_t clkgr = readl(cgu->base + CGU_REG_CLKGR); in jz4740_clock_udc_enable_auto_suspend()
264 writel(clkgr, cgu->base + CGU_REG_CLKGR); in jz4740_clock_udc_enable_auto_suspend()
276 clkgr = readl(cgu->base + CGU_REG_CLKGR); in jz4740_clock_suspend()
278 writel(clkgr, cgu->base + CGU_REG_CLKGR); in jz4740_clock_suspend()
280 cppcr = readl(cgu->base + CGU_REG_CPPCR); in jz4740_clock_suspend()
282 writel(cppcr, cgu->base + CGU_REG_CPPCR); in jz4740_clock_suspend()
289 cppcr = readl(cgu->base + CGU_REG_CPPCR); in jz4740_clock_resume()
291 writel(cppcr, cgu->base + CGU_REG_CPPCR); in jz4740_clock_resume()
295 cppcr = readl(cgu->base + CGU_REG_CPPCR); in jz4740_clock_resume()
298 clkgr = readl(cgu->base + CGU_REG_CLKGR); in jz4740_clock_resume()
302 writel(clkgr, cgu->base + CGU_REG_CLKGR); in jz4740_clock_resume()