Lines Matching refs:timerclken
32 struct clk_sp810_timerclken timerclken[4]; member
37 struct clk_sp810_timerclken *timerclken = to_clk_sp810_timerclken(hw); in clk_sp810_timerclken_get_parent() local
38 u32 val = readl(timerclken->sp810->base + SCCTRL); in clk_sp810_timerclken_get_parent()
40 return !!(val & (1 << SCCTRL_TIMERENnSEL_SHIFT(timerclken->channel))); in clk_sp810_timerclken_get_parent()
45 struct clk_sp810_timerclken *timerclken = to_clk_sp810_timerclken(hw); in clk_sp810_timerclken_set_parent() local
46 struct clk_sp810 *sp810 = timerclken->sp810; in clk_sp810_timerclken_set_parent()
47 u32 val, shift = SCCTRL_TIMERENnSEL_SHIFT(timerclken->channel); in clk_sp810_timerclken_set_parent()
77 clkspec->args[0] >= ARRAY_SIZE(sp810->timerclken))) in clk_sp810_timerclken_of_get()
80 return sp810->timerclken[clkspec->args[0]].clk; in clk_sp810_timerclken_of_get()
115 for (i = 0; i < ARRAY_SIZE(sp810->timerclken); i++) { in clk_sp810_of_setup()
118 sp810->timerclken[i].sp810 = sp810; in clk_sp810_of_setup()
119 sp810->timerclken[i].channel = i; in clk_sp810_of_setup()
120 sp810->timerclken[i].hw.init = &init; in clk_sp810_of_setup()
129 init.ops->set_parent(&sp810->timerclken[i].hw, 1); in clk_sp810_of_setup()
131 sp810->timerclken[i].clk = clk_register(NULL, in clk_sp810_of_setup()
132 &sp810->timerclken[i].hw); in clk_sp810_of_setup()
133 WARN_ON(IS_ERR(sp810->timerclken[i].clk)); in clk_sp810_of_setup()