Home
last modified time | relevance | path

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

/u-boot/drivers/phy/
A Dphy-stm32-usbphyc.c53 u8 ndiv; member
73 unsigned long long fvco, ndiv, frac; in stm32_usbphyc_get_pll_params() local
86 ndiv = fvco; in stm32_usbphyc_get_pll_params()
87 do_div(ndiv, (clk_rate * 2)); in stm32_usbphyc_get_pll_params()
88 pll_params->ndiv = (u8)ndiv; in stm32_usbphyc_get_pll_params()
92 frac = frac - (ndiv * (1 << 16)); in stm32_usbphyc_get_pll_params()
111 usbphyc_pll |= ((pll_params.ndiv << PLLNDIV_SHIFT) & PLLNDIV); in stm32_usbphyc_pll_init()
122 clk_rate, pll_params.ndiv, pll_params.frac); in stm32_usbphyc_pll_init()
/u-boot/drivers/video/stm32/
A Dstm32_dsi.c143 static int dsi_pll_get_clkout_khz(int clkin_khz, int idf, int ndiv, int odf) in dsi_pll_get_clkout_khz() argument
151 return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor); in dsi_pll_get_clkout_khz()
156 int *idf, int *ndiv, int *odf) in dsi_pll_get_params() argument
197 *ndiv = n; in dsi_pll_get_params()
271 int idf, ndiv, odf, pll_in_khz, pll_out_khz; in dsi_get_lane_mbps() local
301 ndiv = 0; in dsi_get_lane_mbps()
304 &idf, &ndiv, &odf); in dsi_get_lane_mbps()
311 pll_out_khz = dsi_pll_get_clkout_khz(pll_in_khz, idf, ndiv, odf); in dsi_get_lane_mbps()
315 (ndiv << 2) | (idf << 11) | ((ffs(odf) - 1) << 16)); in dsi_get_lane_mbps()
/u-boot/drivers/i2c/
A Docteon_i2c.c616 int ndiv, mdiv; in twsi_calc_div() local
637 for (ndiv = 0; ndiv < 8; ndiv++) { in twsi_calc_div()
638 fsamp = tclk / (1 << ndiv); in twsi_calc_div()
646 *n_div = ndiv; in twsi_calc_div()
/u-boot/drivers/cpu/
A Dbmips_cpu.c244 unsigned int tmp, p1, p2, ndiv, m1; in bcm6368_get_cpu_freq() local
249 ndiv = (tmp & DMIPSPLLCFG_6368_NDIV_MASK) >> in bcm6368_get_cpu_freq()
255 return (((64 * 1000000) / p1) * p2 * ndiv) / m1; in bcm6368_get_cpu_freq()
/u-boot/arch/arm/include/asm/arch-tegra/
A Dbpmp_abi.h1370 uint16_t ndiv[80]; member

Completed in 12 milliseconds