Lines Matching refs:clkdata
29 static struct artpec6_clkctrl_drvdata *clkdata; variable
55 clkdata = kzalloc(sizeof(*clkdata), GFP_KERNEL); in of_artpec6_clkctrl_setup()
56 if (!clkdata) in of_artpec6_clkctrl_setup()
59 clks = clkdata->clk_table; in of_artpec6_clkctrl_setup()
64 clkdata->syscon_base = of_iomap(np, 0); in of_artpec6_clkctrl_setup()
65 BUG_ON(clkdata->syscon_base == NULL); in of_artpec6_clkctrl_setup()
68 pll_mode = (readl(clkdata->syscon_base) >> 6) & 3; in of_artpec6_clkctrl_setup()
110 clkdata->clk_data.clks = clkdata->clk_table; in of_artpec6_clkctrl_setup()
111 clkdata->clk_data.clk_num = ARTPEC6_CLK_NUMCLOCKS; in of_artpec6_clkctrl_setup()
113 of_clk_add_provider(np, of_clk_src_onecell_get, &clkdata->clk_data); in of_artpec6_clkctrl_setup()
124 struct clk **clks = clkdata->clk_table; in artpec6_clkctrl_probe()
152 spin_lock_init(&clkdata->i2scfg_lock); in artpec6_clkctrl_probe()
185 clkdata->syscon_base + 0x14, i, 1, in artpec6_clkctrl_probe()
186 0, &clkdata->i2scfg_lock); in artpec6_clkctrl_probe()
189 muxreg = readl(clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()
191 writel(muxreg, clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()
198 muxreg = readl(clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()
200 writel(muxreg, clkdata->syscon_base + 0x14); in artpec6_clkctrl_probe()