| /openbmc/u-boot/drivers/clk/aspeed/ |
| H A D | clk_ast2500.c | 49 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 D | clk_ast2400.c | 32 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 D | mxc_spi.c | 135 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 D | cpu.c | 58 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 D | clock.c | 552 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 D | clock.c | 474 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 D | clock_slice.c | 672 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 D | osd.c | 80 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 D | clock_slice.h | 111 enum root_post_div post_div, enum clk_root_src clock_src);
|
| /openbmc/u-boot/arch/arm/include/asm/arch-imx8m/ |
| H A D | clock.h | 666 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 D | clock_slice.c | 670 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 D | ati_radeon_fb.h | 224 int post_div; member
|