Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/clk/bcm/
Dclk-iproc-armpll.c154 unsigned int ndiv_int, ndiv_frac, ndiv; in __get_ndiv() local
162 ndiv_int = (val >> IPROC_CLK_PLLARM_NDIV_INT_OFFSET_SHIFT) & in __get_ndiv()
164 if (ndiv_int == 0) in __get_ndiv()
165 ndiv_int = 256; in __get_ndiv()
171 ndiv_int = (val >> IPROC_CLK_PLLARMA_NDIV_INT_SHIFT) & in __get_ndiv()
173 if (ndiv_int == 0) in __get_ndiv()
174 ndiv_int = 1024; in __get_ndiv()
180 ndiv = (ndiv_int << 20) | ndiv_frac; in __get_ndiv()
Dclk-iproc-pll.c95 u64 ndiv_int, ndiv_frac, residual; in pll_calc_param() local
97 ndiv_int = target_rate / parent_rate; in pll_calc_param()
99 if (!ndiv_int || (ndiv_int > 255)) in pll_calc_param()
102 residual = target_rate - (ndiv_int * parent_rate); in pll_calc_param()
112 vco_out->ndiv_int = ndiv_int; in pll_calc_param()
116 vco_out->rate = vco_out->ndiv_int * parent_rate; in pll_calc_param()
291 u32 ndiv_int; in pll_fractional_change_only() local
299 val = readl(pll->control_base + ctrl->ndiv_int.offset); in pll_fractional_change_only()
300 ndiv_int = (val >> ctrl->ndiv_int.shift) & in pll_fractional_change_only()
301 bit_mask(ctrl->ndiv_int.width); in pll_fractional_change_only()
[all …]
Dclk-sr.c52 .ndiv_int = REG_VAL(0x10, 20, 10),
112 .ndiv_int = REG_VAL(0x10, 20, 10),
171 .ndiv_int = REG_VAL(0x10, 20, 10),
206 .ndiv_int = REG_VAL(0x10, 20, 10),
260 .ndiv_int = REG_VAL(0x10, 20, 10),
297 .ndiv_int = REG_VAL(0x4, 16, 10),
342 .ndiv_int = REG_VAL(0x4, 16, 10),
381 .ndiv_int = REG_VAL(0x4, 16, 10),
Dclk-ns2.c46 .ndiv_int = REG_VAL(0x8, 4, 10),
109 .ndiv_int = REG_VAL(0x8, 4, 10),
171 .ndiv_int = REG_VAL(0x8, 4, 10),
233 .ndiv_int = REG_VAL(0x8, 4, 10),
Dclk-iproc.h96 unsigned int ndiv_int; member
172 struct iproc_clk_reg_op ndiv_int; member
Dclk-cygnus.c64 .ndiv_int = REG_VAL(0x10, 20, 10),
123 .ndiv_int = REG_VAL(0x4, 16, 10),
200 .ndiv_int = REG_VAL(0x10, 20, 10),
279 .ndiv_int = REG_VAL(0x8, 0, 10),
Dclk-nsp.c50 .ndiv_int = REG_VAL(0x14, 20, 10),
107 .ndiv_int = REG_VAL(0x4, 20, 8),