Searched refs:gclk_round (Results 1 – 1 of 1) sorted by relevance
283 long gclk_round = 0; in mchp_pit64b_init_mode() local293 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode()294 if (gclk_round < 0) in mchp_pit64b_init_mode()297 if (pclk_rate / gclk_round < 3) in mchp_pit64b_init_mode()300 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode()301 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode()306 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()321 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()330 gclk_round / (best_pres + 1) : pclk_rate / (best_pres + 1)); in mchp_pit64b_init_mode()