/external/u-boot/drivers/clk/imx/ |
D | clk-pll14xx.c | 68 u32 mdiv, pdiv, sdiv, pll_div; in clk_pll1416x_recalc_rate() local 70 pll_div = readl(pll->base + 4); in clk_pll1416x_recalc_rate() 71 mdiv = (pll_div & MDIV_MASK) >> MDIV_SHIFT; in clk_pll1416x_recalc_rate() 72 pdiv = (pll_div & PDIV_MASK) >> PDIV_SHIFT; in clk_pll1416x_recalc_rate() 73 sdiv = (pll_div & SDIV_MASK) >> SDIV_SHIFT; in clk_pll1416x_recalc_rate() 105 u32 pll_div) in clk_pll1416x_mp_change() argument 109 old_mdiv = (pll_div & MDIV_MASK) >> MDIV_SHIFT; in clk_pll1416x_mp_change() 110 old_pdiv = (pll_div & PDIV_MASK) >> PDIV_SHIFT; in clk_pll1416x_mp_change()
|
/external/u-boot/drivers/clk/rockchip/ |
D | clk_rk3399.c | 32 struct pll_div { struct 50 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); argument 51 static const struct pll_div cpll_init_cfg = PLL_DIVISORS(CPLL_HZ, 1, 2, 2); 53 static const struct pll_div ppll_init_cfg = PLL_DIVISORS(PPLL_HZ, 2, 2, 1); 56 static const struct pll_div apll_l_1600_cfg = PLL_DIVISORS(1600 * MHz, 3, 1, 1); 57 static const struct pll_div apll_l_600_cfg = PLL_DIVISORS(600 * MHz, 1, 2, 1); 59 static const struct pll_div *apll_l_cfgs[] = { 64 static const struct pll_div apll_b_600_cfg = PLL_DIVISORS(600 * MHz, 1, 2, 1); 65 static const struct pll_div *apll_b_cfgs[] = { 314 static void rkclk_set_pll(u32 *pll_con, const struct pll_div *div) in rkclk_set_pll() [all …]
|
D | clk_rk3368.c | 29 struct pll_div { struct 50 static const struct pll_div apll_l_init_cfg = PLL_DIVISORS(APLL_L_HZ, 12, 2); argument 51 static const struct pll_div apll_b_init_cfg = PLL_DIVISORS(APLL_B_HZ, 1, 2); 53 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 1, 2); 54 static const struct pll_div cpll_init_cfg = PLL_DIVISORS(CPLL_HZ, 1, 6); 89 const struct pll_div *div) in rkclk_set_pll() 284 const struct pll_div *dpll_cfg = NULL; in rk3368_ddr_set_clk() 288 static const struct pll_div dpll_1200 = PLL_DIVISORS(1200 * MHz, 1, 1); in rk3368_ddr_set_clk() 289 static const struct pll_div dpll_1332 = PLL_DIVISORS(1332 * MHz, 2, 1); in rk3368_ddr_set_clk() 290 static const struct pll_div dpll_1600 = PLL_DIVISORS(1600 * MHz, 3, 2); in rk3368_ddr_set_clk()
|
D | clk_rk322x.c | 38 static const struct pll_div apll_init_cfg = PLL_DIVISORS(APLL_HZ, 1, 3, 1); 39 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 42 const struct pll_div *div) in rkclk_set_pll() 321 struct pll_div dpll_cfg; in rk322x_ddr_set_clk() 326 dpll_cfg = (struct pll_div) in rk322x_ddr_set_clk() 330 dpll_cfg = (struct pll_div) in rk322x_ddr_set_clk() 334 dpll_cfg = (struct pll_div) in rk322x_ddr_set_clk()
|
D | clk_rk3328.c | 20 struct pll_div { struct 37 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 1, 4, 1); argument 38 static const struct pll_div cpll_init_cfg = PLL_DIVISORS(CPLL_HZ, 2, 2, 1); 40 static const struct pll_div apll_816_cfg = PLL_DIVISORS(816 * MHz, 1, 2, 1); 41 static const struct pll_div apll_600_cfg = PLL_DIVISORS(600 * MHz, 1, 3, 1); 43 static const struct pll_div *apll_cfgs[] = { 207 const struct pll_div *div) in rkclk_set_pll()
|
D | clk_rk3188.c | 36 struct pll_div { struct 81 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2); 82 static const struct pll_div cpll_init_cfg = PLL_DIVISORS(CPLL_HZ, 1, 2); 86 const struct pll_div *div, bool has_bwadj) in rkclk_set_pll() 122 static const struct pll_div dpll_cfg[] = { in rkclk_configure_ddr() 168 static const struct pll_div apll_cfg[] = { in rkclk_configure_cpu()
|
D | clk_rk3288.c | 34 struct pll_div { struct 140 static const struct pll_div apll_init_cfg = PLL_DIVISORS(APLL_HZ, 1, 1); 141 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2); 142 static const struct pll_div cpll_init_cfg = PLL_DIVISORS(CPLL_HZ, 1, 2); 145 const struct pll_div *div) in rkclk_set_pll() 178 static const struct pll_div dpll_cfg[] = { in rkclk_configure_ddr() 227 static int pll_para_config(ulong freq_hz, struct pll_div *div, uint *ext_div) in pll_para_config() 339 struct pll_div npll_config = {0}; in rockchip_vop_set_clk()
|
D | clk_rk3128.c | 35 static const struct pll_div apll_init_cfg = PLL_DIVISORS(APLL_HZ, 1, 3, 1); 36 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 39 const struct pll_div *div) in rkclk_set_pll() 76 static int pll_para_config(u32 freq_hz, struct pll_div *div) in pll_para_config() 419 struct pll_div cpll_config = {0}; in rk3128_vop_set_clk()
|
D | clk_rk3036.c | 41 static const struct pll_div apll_init_cfg = PLL_DIVISORS(APLL_HZ, 1, 3, 1); 42 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 45 const struct pll_div *div) in rkclk_set_pll()
|
D | clk_rv1108.c | 40 static const struct pll_div apll_init_cfg = PLL_DIVISORS(APLL_HZ, 1, 3, 1); 41 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 66 const struct pll_div *div) in rkclk_set_pll()
|
/external/u-boot/arch/arm/mach-imx/mx7/ |
D | clock.c | 775 static int enable_pll_video(u32 pll_div, u32 pll_num, u32 pll_denom, in enable_pll_video() argument 782 pll_div, pll_num, pll_denom); in enable_pll_video() 796 writel(CCM_ANALOG_PLL_VIDEO_SET_DIV_SELECT(pll_div) | in enable_pll_video() 802 writel(CCM_ANALOG_PLL_VIDEO_SET_DIV_SELECT(pll_div) | in enable_pll_video() 808 writel(CCM_ANALOG_PLL_VIDEO_SET_DIV_SELECT(pll_div) | in enable_pll_video() 814 writel(CCM_ANALOG_PLL_VIDEO_SET_DIV_SELECT(pll_div) | in enable_pll_video() 821 writel(CCM_ANALOG_PLL_VIDEO_SET_DIV_SELECT(pll_div) | in enable_pll_video() 898 u32 pll_div, pll_num, pll_denom, post_div = 0; in mxs_set_lcdclk() local 942 pll_div = best / hck; in mxs_set_lcdclk() 944 pll_num = (best - hck * pll_div) * pll_denom / hck; in mxs_set_lcdclk() [all …]
|
/external/u-boot/arch/arm/mach-imx/mx6/ |
D | clock.c | 551 static int enable_pll_video(u32 pll_div, u32 pll_num, u32 pll_denom, in enable_pll_video() argument 558 pll_div, pll_num, pll_denom); in enable_pll_video() 570 writel(BF_ANADIG_PLL_VIDEO_DIV_SELECT(pll_div) | in enable_pll_video() 575 writel(BF_ANADIG_PLL_VIDEO_DIV_SELECT(pll_div) | in enable_pll_video() 580 writel(BF_ANADIG_PLL_VIDEO_DIV_SELECT(pll_div) | in enable_pll_video() 626 u32 pll_div, pll_num, pll_denom, post_div = 1; in mxs_set_lcdclk() local 697 pll_div = best / hck; in mxs_set_lcdclk() 699 pll_num = (best - hck * pll_div) * pll_denom / hck; 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()
|
/external/u-boot/arch/arm/include/asm/arch-rockchip/ |
D | cru_rk3036.h | 60 struct pll_div { struct
|
D | cru_rk322x.h | 61 struct pll_div { struct
|
D | cru_rk3128.h | 63 struct pll_div { struct
|
D | cru_rv1108.h | 53 struct pll_div { struct
|
/external/arm-trusted-firmware/plat/rockchip/rk3399/drivers/dram/ |
D | dfs.c | 25 static const struct pll_div dpll_rates_table[] = { 1966 static void m0_configure_ddr(struct pll_div pll_div, uint32_t ddr_index) in m0_configure_ddr() argument 1968 mmio_write_32(M0_PARAM_ADDR + PARAM_DPLL_CON0, FBDIV(pll_div.fbdiv)); in m0_configure_ddr() 1970 POSTDIV2(pll_div.postdiv2) | POSTDIV1(pll_div.postdiv1) | in m0_configure_ddr() 1971 REFDIV(pll_div.refdiv)); in m0_configure_ddr() 1973 mmio_write_32(M0_PARAM_ADDR + PARAM_DRAM_FREQ, pll_div.mhz); in m0_configure_ddr()
|
/external/arm-trusted-firmware/plat/rockchip/rk3399/drivers/soc/ |
D | soc.h | 123 struct pll_div { struct
|
/external/u-boot/arch/arm/mach-rockchip/rk3036/ |
D | sdram_rk3036.c | 39 const struct pll_div dpll_init_cfg = {1, 66, 2, 1};
|