Home
last modified time | relevance | path

Searched refs:pll_ref_div (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/clk/tegra/
H A Dclk-tegra-fixed.c32 u32 val, pll_ref_div; in tegra_osc_clk_init() local
82 pll_ref_div = 1 << val; in tegra_osc_clk_init()
88 0, 1, pll_ref_div); in tegra_osc_clk_init()
92 *pll_ref_freq = *osc_freq / pll_ref_div; in tegra_osc_clk_init()
H A Dclk-tegra20.c576 u32 pll_ref_div = osc_ctrl & OSC_CTRL_PLL_REF_DIV_MASK; in tegra20_clk_measure_input_freq() local
581 BUG_ON(pll_ref_div != OSC_CTRL_PLL_REF_DIV_1); in tegra20_clk_measure_input_freq()
585 BUG_ON(pll_ref_div != OSC_CTRL_PLL_REF_DIV_1); in tegra20_clk_measure_input_freq()
589 BUG_ON(pll_ref_div != OSC_CTRL_PLL_REF_DIV_1); in tegra20_clk_measure_input_freq()
593 BUG_ON(pll_ref_div != OSC_CTRL_PLL_REF_DIV_1); in tegra20_clk_measure_input_freq()
608 u32 pll_ref_div = readl_relaxed(clk_base + OSC_CTRL) & in tegra20_get_pll_ref_div() local
611 switch (pll_ref_div) { in tegra20_get_pll_ref_div()
619 pr_err("Invalid pll ref divider %d\n", pll_ref_div); in tegra20_get_pll_ref_div()
859 unsigned int pll_ref_div; in tegra20_osc_clk_init() local
869 pll_ref_div = tegra20_get_pll_ref_div(); in tegra20_osc_clk_init()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_legacy_crtc.c747 uint32_t pll_ref_div = 0; in radeon_set_pll() local
802 pll_ref_div = lvds->panel_ref_divider; in radeon_set_pll()
836 pll_ref_div = reference_div; in radeon_set_pll()
850 pll_ref_div & 0x3ff, in radeon_set_pll()
860 &pll_ref_div, &pll_fb_post_div, in radeon_set_pll()
877 pll_ref_div, in radeon_set_pll()
900 (unsigned)pll_ref_div, in radeon_set_pll()
905 (unsigned)pll_ref_div & RADEON_P2PLL_REF_DIV_MASK, in radeon_set_pll()
923 radeon_legacy_tv_adjust_pll1(encoder, &htotal_cntl, &pll_ref_div, in radeon_set_pll()
934 if ((pll_ref_div == (RREG32_PLL(RADEON_PPLL_REF_DIV) & RADEON_PPLL_REF_DIV_MASK)) && in radeon_set_pll()
[all …]
/linux/drivers/video/fbdev/aty/
H A Dmach64_ct.c214 q = par->ref_clk_per * pll->pll_ref_div * 4 / vclk_per; in aty_valid_pll_ct()
227 (par->ref_clk_per * pll->pll_ref_div); in aty_valid_pll_ct()
266 …ret = par->ref_clk_per * pll->ct.pll_ref_div * pll->ct.vclk_post_div_real / pll->ct.vclk_fb_div / … in aty_pll_to_var_ct()
298 pll->ct.pll_ref_div, pll->ct.vclk_post_div, pll->ct.vclk_post_div_real); in aty_set_pll_ct()
389 pll->ct.pll_ref_div = aty_ld_pll_ct(PLL_REF_DIV, par); in aty_get_pll_ct()
515 pll->ct.pll_ref_div = aty_ld_pll_ct(PLL_REF_DIV, par); in aty_init_pll_ct()
525 pll->ct.pll_ref_div = par->pll_per * 2 * 255 / par->ref_clk_per; in aty_init_pll_ct()
528 q = par->ref_clk_per * pll->ct.pll_ref_div * 8 / in aty_init_pll_ct()
552 (par->ref_clk_per * pll->ct.pll_ref_div); in aty_init_pll_ct()
579 q = par->ref_clk_per * pll->ct.pll_ref_div * 4 / par->mclk_per; in aty_init_pll_ct()
[all …]
H A Datyfb_base.c1809 u8 pll_ref_div; member
1867 clk.pll_ref_div = pll->ct.pll_ref_div; in atyfb_ioctl()
1893 pll->ct.pll_ref_div = clk.pll_ref_div; in atyfb_ioctl()
2473 u8 pll_ref_div = aty_ld_pll_ct(PLL_REF_DIV, par); in aty_init() local
2475 if (pll_ref_div) { in aty_init()
2477 diff1 = 510 * 14 / pll_ref_div - par->pll_limits.pll_max; in aty_init()
2478 diff2 = 510 * 29 / pll_ref_div - par->pll_limits.pll_max; in aty_init()
H A Datyfb.h85 u8 pll_ref_div; member