Lines Matching refs:slowck
277 struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw);
278 void __iomem *sckcr = slowck->sckcr;
286 if ((!index && !(tmp & slowck->bits->cr_oscsel)) ||
287 (index && (tmp & slowck->bits->cr_oscsel)))
291 tmp |= slowck->bits->cr_oscsel;
293 tmp &= ~slowck->bits->cr_oscsel;
307 struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw);
309 return !!(readl(slowck->sckcr) & slowck->bits->cr_oscsel);
325 struct clk_sam9x5_slow *slowck;
333 slowck = kzalloc(sizeof(*slowck), GFP_KERNEL);
334 if (!slowck)
343 slowck->hw.init = &init;
344 slowck->sckcr = sckcr;
345 slowck->bits = bits;
346 slowck->parent = !!(readl(sckcr) & slowck->bits->cr_oscsel);
348 hw = &slowck->hw;
349 ret = clk_hw_register(NULL, &slowck->hw);
351 kfree(slowck);
360 struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw);
363 kfree(slowck);
373 struct clk_hw *slow_rc, *slow_osc, *slowck;
417 slowck = at91_clk_register_sam9x5_slow(regbase, "slowck", parent_hws,
419 if (IS_ERR(slowck))
425 slowck);
427 ret = of_clk_add_hw_provider(np, of_clk_hw_simple_get, slowck);
435 at91_clk_unregister_sam9x5_slow(slowck);
587 struct clk_hw *slow_rc, *slowck;
633 slowck = at91_clk_register_sam9x5_slow(regbase, "slowck",
636 if (IS_ERR(slowck))
639 ret = of_clk_add_hw_provider(np, of_clk_hw_simple_get, slowck);
646 at91_clk_unregister_sam9x5_slow(slowck);