Home
last modified time | relevance | path

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

/external/u-boot/arch/arm/include/asm/arch-mx7/
Dclock_slice.h100 int clock_set_prediv(enum clk_root_index clock_id, enum root_pre_div pre_div);
101 int clock_get_prediv(enum clk_root_index clock_id, enum root_pre_div *pre_div);
110 int clock_root_cfg(enum clk_root_index clock_id, enum root_pre_div pre_div,
/external/u-boot/arch/arm/mach-imx/mx7/
Dclock_slice.c457 int clock_set_prediv(enum clk_root_index clock_id, enum root_pre_div pre_div) in clock_set_prediv() argument
475 if (pre_div != CLK_ROOT_PRE_DIV1) { in clock_set_prediv()
483 reg |= pre_div << CLK_ROOT_PRE_DIV_SHIFT; in clock_set_prediv()
489 int clock_get_prediv(enum clk_root_index clock_id, enum root_pre_div *pre_div) in clock_get_prediv() argument
507 *pre_div = 0; in clock_get_prediv()
515 *pre_div = val; in clock_get_prediv()
671 int clock_root_cfg(enum clk_root_index clock_id, enum root_pre_div pre_div, in clock_root_cfg() argument
690 if (pre_div != CLK_ROOT_PRE_DIV1) { in clock_root_cfg()
715 val = CLK_ROOT_ON | pre_div << CLK_ROOT_PRE_DIV_SHIFT | in clock_root_cfg()
/external/u-boot/arch/arm/mach-davinci/
Dcpu.c56 int pre_div; in clk_get() local
78 pre_div = (readl(pll_base + PLLC_PREDIV) & in clk_get()
82 pll_out /= pre_div; in clk_get()
/external/u-boot/drivers/spi/
Dmxc_spi.c135 u32 pre_div = 0, post_div = 0; in spi_cfg_mxc() local
151 pre_div = (clk_src - 1) / max_hz; in spi_cfg_mxc()
153 post_div = fls(pre_div); in spi_cfg_mxc()
161 pre_div >>= post_div; in spi_cfg_mxc()
167 debug("pre_div = %d, post_div=%d\n", pre_div, post_div); in spi_cfg_mxc()
171 MXC_CSPICTRL_PREDIV(pre_div); in spi_cfg_mxc()
/external/u-boot/arch/arm/mach-imx/mx7ulp/
Dscg.c471 u32 reg, pre_div, infreq, mult; in decode_pll() local
487 pre_div = (reg & SCG_PLL_CFG_PREDIV_MASK) >> in decode_pll()
489 pre_div += 1; in decode_pll()
504 infreq = infreq / pre_div; in decode_pll()
516 pre_div = (reg & SCG_PLL_CFG_PREDIV_MASK) >> in decode_pll()
518 pre_div += 1; in decode_pll()
533 infreq = infreq / pre_div; in decode_pll()
/external/u-boot/drivers/mmc/
Dfsl_esdhc.c579 int pre_div = (regs == (struct fsl_esdhc *)MMC_SDHC3_BASE_ADDR) ? 2 : 1; in set_sysctl() local
581 int pre_div = 1; in set_sysctl() local
584 int pre_div = 2; in set_sysctl() local
593 while (sdhc_clk / (16 * pre_div * ddr_pre_div) > clock && pre_div < 256) in set_sysctl()
594 pre_div *= 2; in set_sysctl()
596 while (sdhc_clk / (div * pre_div * ddr_pre_div) > clock && div < 16) in set_sysctl()
599 pre_div >>= 1; in set_sysctl()
602 clk = (pre_div << 8) | (div << 4); in set_sysctl()
/external/u-boot/arch/arm/mach-imx/mx8m/
Dclock_slice.c632 int clock_get_prediv(enum clk_root_index clock_id, enum root_pre_div *pre_div) in clock_get_prediv() argument
652 *pre_div = 0; in clock_get_prediv()
664 *pre_div = val; in clock_get_prediv()
/external/u-boot/arch/arm/include/asm/arch-mx8m/
Dclock.h643 int clock_root_cfg(enum clk_root_index clock_id, enum root_pre_div pre_div,
647 int clock_get_prediv(enum clk_root_index clock_id, enum root_pre_div *pre_div);
/external/u-boot/arch/arm/cpu/armv7/bcm281xx/
Dclk-core.h400 struct bcm_clk_div pre_div; member
/external/u-boot/arch/arm/cpu/armv7/bcm235xx/
Dclk-core.h400 struct bcm_clk_div pre_div; member