Home
last modified time | relevance | path

Searched refs:gclk_round (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/clocksource/
H A Dtimer-microchip-pit64b.c295 long gclk_round = 0; in mchp_pit64b_init_mode() local
305 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode()
306 if (gclk_round < 0) in mchp_pit64b_init_mode()
309 if (pclk_rate / gclk_round < 3) in mchp_pit64b_init_mode()
312 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode()
313 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
318 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()
333 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()
342 gclk_round / (best_pres + 1) : pclk_rate / (best_pres + 1)); in mchp_pit64b_init_mode()