Lines Matching refs:clkdata
26 static struct artpec6_clkctrl_drvdata *clkdata; variable
52 clkdata = kzalloc(sizeof(*clkdata), GFP_KERNEL); in of_artpec6_clkctrl_setup()
53 if (!clkdata) in of_artpec6_clkctrl_setup()
56 clks = clkdata->clk_table; in of_artpec6_clkctrl_setup()
61 clkdata->syscon_base = of_iomap(np, 0); in of_artpec6_clkctrl_setup()
62 BUG_ON(clkdata->syscon_base == NULL); in of_artpec6_clkctrl_setup()
65 pll_mode = (readl(clkdata->syscon_base) >> 6) & 3; in of_artpec6_clkctrl_setup()
107 clkdata->clk_data.clks = clkdata->clk_table; in of_artpec6_clkctrl_setup()
108 clkdata->clk_data.clk_num = ARTPEC6_CLK_NUMCLOCKS; in of_artpec6_clkctrl_setup()
110 of_clk_add_provider(np, of_clk_src_onecell_get, &clkdata->clk_data); in of_artpec6_clkctrl_setup()
121 struct clk **clks = clkdata->clk_table; in artpec6_clkctrl_probe()
149 spin_lock_init(&clkdata->i2scfg_lock); in artpec6_clkctrl_probe()
182 clkdata->syscon_base + 0x14, i, 1, in artpec6_clkctrl_probe()
183 0, &clkdata->i2scfg_lock); in artpec6_clkctrl_probe()
186 muxreg = readl(clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()
188 writel(muxreg, clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()
195 muxreg = readl(clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()
197 writel(muxreg, clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()