Home
last modified time | relevance | path

Searched refs:post_div (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/drivers/clk/aspeed/
H A Dclk_ast2500.c49 unsigned int post_div; member
70 const ulong post_div = (mpll_reg & SCU_MPLL_POST_MASK) in ast2500_get_mpll_rate() local
73 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_mpll_rate()
89 const ulong post_div = (hpll_reg & SCU_HPLL_POST_MASK) in ast2500_get_hpll_rate() local
92 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_hpll_rate()
107 const ulong post_div = (dpll_reg >> 13) & 0x3f; in ast2500_get_dpll_rate() local
109 return (((clkin * ((num + 1) / (denum + 1))) / (post_div + 1))/ (od_div + 1)); in ast2500_get_dpll_rate()
124 const ulong post_div = (d2pll_reg >> 13) & 0x3f; in ast2500_get_d2pll_rate() local
127 return (((clkin * ((num + 1) / (denum + 1))) / (post_div + 1))/ (od_div + 1)); in ast2500_get_d2pll_rate()
249 { 24000000, 250000000, { .num = 124, .denum = 1, .post_div = 5 } },
[all …]
H A Dclk_ast2400.c32 unsigned int post_div; member
275 { 24000000, 250000000, { .num = 124, .denum = 1, .post_div = 5 } },
328 for (it.post_div = 0; it.post_div <= max_vals.post_div; in ast2400_calc_clock_config()
329 ++it.post_div) { in ast2400_calc_clock_config()
330 it.num = (rate_khz * (it.post_div + 1) / input_rate_khz) in ast2400_calc_clock_config()
337 / (it.post_div + 1); in ast2400_calc_clock_config()
362 .post_div = (SCU_MPLL_POST_MASK >> SCU_MPLL_POST_SHIFT), in ast2400_configure_ddr()
370 mpll_reg |= (div_cfg.post_div << SCU_MPLL_POST_SHIFT) in ast2400_configure_ddr()
/openbmc/u-boot/drivers/spi/
H A Dmxc_spi.c135 u32 pre_div = 0, post_div = 0; in spi_cfg_mxc() local
153 post_div = fls(pre_div); in spi_cfg_mxc()
154 if (post_div > 4) { in spi_cfg_mxc()
155 post_div -= 4; in spi_cfg_mxc()
156 if (post_div >= 16) { in spi_cfg_mxc()
161 pre_div >>= post_div; in spi_cfg_mxc()
163 post_div = 0; in spi_cfg_mxc()
167 debug("pre_div = %d, post_div=%d\n", pre_div, post_div); in spi_cfg_mxc()
173 MXC_CSPICTRL_POSTDIV(post_div); in spi_cfg_mxc()
/openbmc/u-boot/arch/arm/mach-davinci/
H A Dcpu.c58 int post_div; in clk_get() local
88 post_div = (readl(pll_base + PLLC_POSTDIV) & in clk_get()
91 pll_out /= post_div; in clk_get()
/openbmc/u-boot/arch/arm/mach-imx/mx6/
H A Dclock.c552 u32 post_div) in enable_pll_video() argument
568 switch (post_div) { in enable_pll_video()
626 u32 pll_div, pll_num, pll_denom, post_div = 1; in mxs_set_lcdclk() local
663 for (post_div = 2; post_div <= 4; post_div <<= 1) { in mxs_set_lcdclk()
664 if ((temp * post_div) > min) { in mxs_set_lcdclk()
665 freq *= post_div; in mxs_set_lcdclk()
670 if (post_div > 4) { in mxs_set_lcdclk()
710 if (enable_pll_video(pll_div, pll_num, pll_denom, post_div)) in mxs_set_lcdclk()
747 if (enable_pll_video(pll_div, pll_num, pll_denom, post_div)) in mxs_set_lcdclk()
/openbmc/u-boot/arch/arm/mach-imx/mx7/
H A Dclock.c474 enum root_post_div post_div; in get_ddrc_clk() local
484 post_div = reg & DRAM_CLK_ROOT_POST_DIV_MASK; in get_ddrc_clk()
486 return freq / (post_div + 1) / 2; in get_ddrc_clk()
776 u32 post_div) in enable_pll_video() argument
794 switch (post_div) { in enable_pll_video()
898 u32 pll_div, pll_num, pll_denom, post_div = 0; in mxs_set_lcdclk() local
909 post_div = i; in mxs_set_lcdclk()
946 if (enable_pll_video(pll_div, pll_num, pll_denom, post_div)) in mxs_set_lcdclk()
H A Dclock_slice.c672 enum root_post_div post_div, enum clk_root_src clock_src) in clock_root_cfg() argument
698 if (post_div > CLK_ROOT_POST_DIV7) { in clock_root_cfg()
705 if (post_div != CLK_ROOT_POST_DIV1) { in clock_root_cfg()
716 post_div << CLK_ROOT_POST_DIV_SHIFT | in clock_root_cfg()
/openbmc/u-boot/board/gdsys/common/
H A Dosd.c80 unsigned int *post_div, unsigned int *feedback_div) in mpc92469ac_calc_parameters() argument
82 unsigned int n = *post_div; in mpc92469ac_calc_parameters()
100 *post_div = n; in mpc92469ac_calc_parameters()
/openbmc/u-boot/arch/arm/include/asm/arch-mx7/
H A Dclock_slice.h111 enum root_post_div post_div, enum clk_root_src clock_src);
/openbmc/u-boot/arch/arm/include/asm/arch-imx8m/
H A Dclock.h666 enum root_post_div post_div, enum clk_root_src clock_src);
671 enum root_post_div *post_div);
/openbmc/u-boot/arch/arm/mach-imx/imx8m/
H A Dclock_slice.c670 enum root_post_div *post_div) in clock_get_postdiv() argument
688 *post_div = 0; in clock_get_postdiv()
707 *post_div = val; in clock_get_postdiv()
/openbmc/u-boot/drivers/video/
H A Dati_radeon_fb.h224 int post_div; member