Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/clk/bcm/
Dclk-raspberrypi.c32 #define A2W_PLL_FRAC_BITS 20 macro
155 div = (u64)final_rate << A2W_PLL_FRAC_BITS; in raspberrypi_pll_determine_rate()
158 ndiv = div >> A2W_PLL_FRAC_BITS; in raspberrypi_pll_determine_rate()
159 fdiv = div & ((1 << A2W_PLL_FRAC_BITS) - 1); in raspberrypi_pll_determine_rate()
162 ((ndiv << A2W_PLL_FRAC_BITS) + fdiv)); in raspberrypi_pll_determine_rate()
164 req->rate = final_rate >> A2W_PLL_FRAC_BITS; in raspberrypi_pll_determine_rate()
Dclk-bcm2835.c252 # define A2W_PLL_FRAC_MASK ((1 << A2W_PLL_FRAC_BITS) - 1)
253 # define A2W_PLL_FRAC_BITS 20 macro
534 div = (u64)rate << A2W_PLL_FRAC_BITS; in bcm2835_pll_choose_ndiv_and_fdiv()
537 *ndiv = div >> A2W_PLL_FRAC_BITS; in bcm2835_pll_choose_ndiv_and_fdiv()
538 *fdiv = div & ((1 << A2W_PLL_FRAC_BITS) - 1); in bcm2835_pll_choose_ndiv_and_fdiv()
549 rate = (u64)parent_rate * ((ndiv << A2W_PLL_FRAC_BITS) + fdiv); in bcm2835_pll_rate_from_divisors()
551 return rate >> A2W_PLL_FRAC_BITS; in bcm2835_pll_rate_from_divisors()