Lines Matching refs:cs_clk
42 struct clk *cs_clk; member
211 tcu->cs_clk = ingenic_tcu_get_clock(np, channel); in ingenic_tcu_clocksource_init()
212 if (IS_ERR(tcu->cs_clk)) in ingenic_tcu_clocksource_init()
213 return PTR_ERR(tcu->cs_clk); in ingenic_tcu_clocksource_init()
215 err = clk_prepare_enable(tcu->cs_clk); in ingenic_tcu_clocksource_init()
219 rate = clk_get_rate(tcu->cs_clk); in ingenic_tcu_clocksource_init()
249 clk_disable_unprepare(tcu->cs_clk); in ingenic_tcu_clocksource_init()
251 clk_put(tcu->cs_clk); in ingenic_tcu_clocksource_init()
345 rate = clk_get_rate(tcu->cs_clk); in ingenic_tcu_init()
352 clk_disable_unprepare(tcu->cs_clk); in ingenic_tcu_init()
353 clk_put(tcu->cs_clk); in ingenic_tcu_init()
377 clk_disable(tcu->cs_clk); in ingenic_tcu_suspend()
397 ret = clk_enable(tcu->cs_clk); in ingenic_tcu_resume()