Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/bcm/
H A Dclk-bcm2835.c253 # define A2W_PLL_FRAC_MASK ((1 << A2W_PLL_FRAC_BITS) - 1)
254 # define A2W_PLL_FRAC_BITS 20 macro
553 div = (u64)rate << A2W_PLL_FRAC_BITS; in bcm2835_pll_choose_ndiv_and_fdiv()
556 *ndiv = div >> A2W_PLL_FRAC_BITS; in bcm2835_pll_choose_ndiv_and_fdiv()
557 *fdiv = div & ((1 << A2W_PLL_FRAC_BITS) - 1); in bcm2835_pll_choose_ndiv_and_fdiv()
568 rate = (u64)parent_rate * ((ndiv << A2W_PLL_FRAC_BITS) + fdiv); in bcm2835_pll_rate_from_divisors()
570 return rate >> A2W_PLL_FRAC_BITS; in bcm2835_pll_rate_from_divisors()