Lines Matching refs:gclk
60 struct clk *gclk; member
165 clk_disable_unprepare(timer->gclk); in mchp_pit64b_clkevt_suspend()
175 clk_prepare_enable(timer->gclk); in mchp_pit64b_clkevt_resume()
254 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode()
267 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()
282 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()
336 ce->timer.gclk = timer->gclk; in mchp_pit64b_init_clkevt()
376 timer.gclk = of_clk_get_by_name(node, "gclk"); in mchp_pit64b_dt_init_timer()
377 if (IS_ERR(timer.gclk)) in mchp_pit64b_dt_init_timer()
378 return PTR_ERR(timer.gclk); in mchp_pit64b_dt_init_timer()
402 ret = clk_prepare_enable(timer.gclk); in mchp_pit64b_dt_init_timer()
406 clk_rate = clk_get_rate(timer.gclk); in mchp_pit64b_dt_init_timer()
424 clk_disable_unprepare(timer.gclk); in mchp_pit64b_dt_init_timer()