Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/clk/bcm/
Dclk-bcm2835.c43 # define CM_DIV_FRAC_BITS 12 macro
44 # define CM_DIV_FRAC_MASK GENMASK(CM_DIV_FRAC_BITS - 1, 0)
925 GENMASK(CM_DIV_FRAC_BITS - data->frac_bits, 0) >> 1; in bcm2835_clock_choose_div()
926 u64 temp = (u64)parent_rate << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
941 mindiv = 2 << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
943 maxdiv = (BIT(data->int_bits) - 1) << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
946 mindiv = 1 << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
948 maxdiv = GENMASK(data->int_bits + CM_DIV_FRAC_BITS - 1, in bcm2835_clock_choose_div()
949 CM_DIV_FRAC_BITS - data->frac_bits); in bcm2835_clock_choose_div()
973 div >>= CM_DIV_FRAC_BITS - data->frac_bits; in bcm2835_clock_rate_from_divisor()
[all …]