Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/clk/bcm/
H A 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 …]
H A 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()
H A 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),
H A Dclk-iproc.h97 unsigned int ndiv_frac; member
173 struct iproc_clk_reg_op ndiv_frac; member
H A 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),
H A Dclk-nsp.c51 .ndiv_frac = REG_VAL(0x14, 0, 20),
108 .ndiv_frac = REG_VAL(0x4, 0, 20),
/OK3568_Linux_fs/kernel/drivers/ssb/
H A 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 …]
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/iproc-common/
H A Darmpll.c17 unsigned int ndiv_frac; member
41 uint32_t ndiv_frac; in armpll_config() local
99 ndiv_frac = in armpll_config()
101 (armpll_clk_tab[i].ndiv_frac << in armpll_config()
103 pll |= ndiv_frac; in armpll_config()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Dhndpmu.c189 uint8 si_pmu_pll28nm_calc_ndiv(uint32 fvco, uint32 xtal, uint32 *ndiv_int, uint32 *ndiv_frac);
191 void si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac);
192 void si_pmu_bbpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac);
2543 uint32 ndiv_frac; member
2985 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3009 ndiv_frac = pll_reg & 0xfffff; in BCMPOSTTRAPFN()
3014 math_uint64_multiple_add(&r_high, &r_low, ndiv_frac, xf, rounding_const); in BCMPOSTTRAPFN()
3048 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3067 ndiv_frac = (pll_reg & PMU43012_PLL0_PC0_NDIV_FRAC_MASK) >> in BCMPOSTTRAPFN()
3090 math_uint64_multiple_add(&r_high, &r_low, ndiv_frac, xf, rounding_const); in BCMPOSTTRAPFN()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dhndpmu.c189 uint8 si_pmu_pll28nm_calc_ndiv(uint32 fvco, uint32 xtal, uint32 *ndiv_int, uint32 *ndiv_frac);
191 void si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac);
192 void si_pmu_bbpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac);
2543 uint32 ndiv_frac; member
2985 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3009 ndiv_frac = pll_reg & 0xfffff; in BCMPOSTTRAPFN()
3014 math_uint64_multiple_add(&r_high, &r_low, ndiv_frac, xf, rounding_const); in BCMPOSTTRAPFN()
3048 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3067 ndiv_frac = (pll_reg & PMU43012_PLL0_PC0_NDIV_FRAC_MASK) >> in BCMPOSTTRAPFN()
3090 math_uint64_multiple_add(&r_high, &r_low, ndiv_frac, xf, rounding_const); in BCMPOSTTRAPFN()
[all …]