Home
last modified time | relevance | path

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

/drivers/clk/bcm/
Dclk-iproc-pll.c95 u64 ndiv_int, ndiv_frac, residual; in pll_calc_param() local
110 ndiv_frac = div64_u64((u64)residual, (u64)parent_rate); in pll_calc_param()
113 vco_out->ndiv_frac = ndiv_frac; in pll_calc_param()
117 residual = (u64)vco_out->ndiv_frac * (u64)parent_rate; in pll_calc_param()
367 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in pll_set_rate()
368 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate()
369 ctrl->ndiv_frac.shift); in pll_set_rate()
370 val |= vco->ndiv_frac << ctrl->ndiv_frac.shift; in pll_set_rate()
372 ctrl->ndiv_frac.offset, val); in pll_set_rate()
412 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in pll_set_rate()
[all …]
Dclk-iproc-armpll.c154 unsigned int ndiv_int, ndiv_frac, ndiv; in __get_ndiv() local
167 ndiv_frac = val & IPROC_CLK_PLLARM_NDIV_FRAC_OFFSET_MASK; in __get_ndiv()
177 ndiv_frac = val & IPROC_CLK_PLLARMB_NDIV_FRAC_MASK; in __get_ndiv()
180 ndiv = (ndiv_int << 20) | ndiv_frac; in __get_ndiv()
Dclk-sr.c42 .ndiv_frac = REG_VAL(0x10, 0, 20),
102 .ndiv_frac = REG_VAL(0x10, 0, 20),
161 .ndiv_frac = REG_VAL(0x10, 0, 20),
196 .ndiv_frac = REG_VAL(0x10, 0, 20),
250 .ndiv_frac = REG_VAL(0x10, 0, 20),
Dclk-iproc.h97 unsigned int ndiv_frac; member
173 struct iproc_clk_reg_op ndiv_frac; member
Dclk-nsp.c51 .ndiv_frac = REG_VAL(0x14, 0, 20),
108 .ndiv_frac = REG_VAL(0x4, 0, 20),
Dclk-cygnus.c65 .ndiv_frac = REG_VAL(0x10, 0, 20),
201 .ndiv_frac = REG_VAL(0x10, 0, 20),
280 .ndiv_frac = REG_VAL(0x8, 10, 20),
/drivers/ssb/
Ddriver_chipcommon_pmu.c181 u32 ndiv_frac; member
187 { .freq = 12000, .xf = 1, .p1div = 3, .p2div = 22, .ndiv_int = 0x9, .ndiv_frac = 0xFFFFEF, },
188 { .freq = 13000, .xf = 2, .p1div = 1, .p2div = 6, .ndiv_int = 0xb, .ndiv_frac = 0x483483, },
189 { .freq = 14400, .xf = 3, .p1div = 1, .p2div = 10, .ndiv_int = 0xa, .ndiv_frac = 0x1C71C7, },
190 { .freq = 15360, .xf = 4, .p1div = 1, .p2div = 5, .ndiv_int = 0xb, .ndiv_frac = 0x755555, },
191 { .freq = 16200, .xf = 5, .p1div = 1, .p2div = 10, .ndiv_int = 0x5, .ndiv_frac = 0x6E9E06, },
192 { .freq = 16800, .xf = 6, .p1div = 1, .p2div = 10, .ndiv_int = 0x5, .ndiv_frac = 0x3CF3CF, },
193 { .freq = 19200, .xf = 7, .p1div = 1, .p2div = 9, .ndiv_int = 0x5, .ndiv_frac = 0x17B425, },
194 { .freq = 19800, .xf = 8, .p1div = 1, .p2div = 11, .ndiv_int = 0x4, .ndiv_frac = 0xA57EB, },
195 { .freq = 20000, .xf = 9, .p1div = 1, .p2div = 11, .ndiv_int = 0x4, .ndiv_frac = 0, },
[all …]