Lines Matching refs:src_base
62 static void __iomem *src_base; variable
71 val = readl(src_base + SRC_XTALCR); in nomadik_clk_reboot_handler()
75 writel(val, src_base + SRC_XTALCR); in nomadik_clk_reboot_handler()
98 src_base = of_iomap(np, 0); in nomadik_src_init()
99 if (!src_base) { in nomadik_src_init()
106 val = readl(src_base + SRC_CR); in nomadik_src_init()
115 writel(val, src_base + SRC_CR); in nomadik_src_init()
117 val = readl(src_base + SRC_XTALCR); in nomadik_src_init()
133 writel(val, src_base + SRC_XTALCR); in nomadik_src_init()
173 val = readl(src_base + SRC_PLLCR); in pll_clk_enable()
177 writel(val, src_base + SRC_PLLCR); in pll_clk_enable()
181 writel(val, src_base + SRC_PLLCR); in pll_clk_enable()
193 val = readl(src_base + SRC_PLLCR); in pll_clk_disable()
197 writel(val, src_base + SRC_PLLCR); in pll_clk_disable()
201 writel(val, src_base + SRC_PLLCR); in pll_clk_disable()
211 val = readl(src_base + SRC_PLLCR); in pll_clk_is_enabled()
227 val = readl(src_base + SRC_PLLFR); in pll_clk_recalc_rate()
309 writel(sclk->clkbit, src_base + enreg); in src_clk_enable()
311 while (!(readl(src_base + sreg) & sclk->clkbit)) in src_clk_enable()
322 writel(sclk->clkbit, src_base + disreg); in src_clk_disable()
324 while (readl(src_base + sreg) & sclk->clkbit) in src_clk_disable()
332 u32 val = readl(src_base + sreg); in src_clk_is_enabled()
464 u32 src_pcksr0 = readl(src_base + SRC_PCKSR0); in nomadik_src_clk_debugfs_show()
465 u32 src_pcksr1 = readl(src_base + SRC_PCKSR1); in nomadik_src_clk_debugfs_show()
466 u32 src_pckensr0 = readl(src_base + SRC_PCKENSR0); in nomadik_src_clk_debugfs_show()
467 u32 src_pckensr1 = readl(src_base + SRC_PCKENSR1); in nomadik_src_clk_debugfs_show()
490 if (!src_base) in nomadik_src_clk_init_debugfs()
492 src_pcksr0_boot = readl(src_base + SRC_PCKSR0); in nomadik_src_clk_init_debugfs()
493 src_pcksr1_boot = readl(src_base + SRC_PCKSR1); in nomadik_src_clk_init_debugfs()
509 if (!src_base) in of_nomadik_pll_setup()
531 if (!src_base) in of_nomadik_hclk_setup()
539 0, src_base + SRC_CR, in of_nomadik_hclk_setup()
556 if (!src_base) in of_nomadik_src_clk_setup()