Home
last modified time | relevance | path

Searched refs:ndiv_int (Results 1 – 11 of 11) 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
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 …]
H A 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()
H A Dclk-sr.c41 .ndiv_int = REG_VAL(0x10, 20, 10),
101 .ndiv_int = REG_VAL(0x10, 20, 10),
160 .ndiv_int = REG_VAL(0x10, 20, 10),
195 .ndiv_int = REG_VAL(0x10, 20, 10),
249 .ndiv_int = REG_VAL(0x10, 20, 10),
286 .ndiv_int = REG_VAL(0x4, 16, 10),
331 .ndiv_int = REG_VAL(0x4, 16, 10),
370 .ndiv_int = REG_VAL(0x4, 16, 10),
H A 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),
H A 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),
H A Dclk-iproc.h96 unsigned int ndiv_int; member
172 struct iproc_clk_reg_op ndiv_int; member
H A Dclk-nsp.c50 .ndiv_int = REG_VAL(0x14, 20, 10),
107 .ndiv_int = REG_VAL(0x4, 20, 8),
/OK3568_Linux_fs/kernel/drivers/ssb/
H A Ddriver_chipcommon_pmu.c180 u8 ndiv_int; 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.c16 unsigned int ndiv_int; member
107 armpll_clk_tab[i].ndiv_int << 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);
2542 uint8 ndiv_int; member
2985 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3005 ndiv_int = (pll_reg >> 7) & 0x1f; in BCMPOSTTRAPFN()
3011 int_part = xf * ndiv_int; in BCMPOSTTRAPFN()
3048 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3064 ndiv_int = (pll_reg & PMU43012_PLL0_PC0_NDIV_INT_MASK) >> in BCMPOSTTRAPFN()
3088 int_part = xf * ndiv_int; 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);
2542 uint8 ndiv_int; member
2985 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3005 ndiv_int = (pll_reg >> 7) & 0x1f; in BCMPOSTTRAPFN()
3011 int_part = xf * ndiv_int; in BCMPOSTTRAPFN()
3048 uint32 xf, ndiv_int, ndiv_frac, fvco, pll_reg, p1_div_scale; in BCMPOSTTRAPFN() local
3064 ndiv_int = (pll_reg & PMU43012_PLL0_PC0_NDIV_INT_MASK) >> in BCMPOSTTRAPFN()
3088 int_part = xf * ndiv_int; in BCMPOSTTRAPFN()
[all …]