Home
last modified time | relevance | path

Searched refs:pll_rate (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_lvds_pll.c25 struct pll_rate { struct
34 static const struct pll_rate freqtbl[] = { argument
48 static const struct pll_rate *find_rate(unsigned long rate) in find_rate()
61 const struct pll_rate *pll_rate = find_rate(lvds_pll->pixclk); in mpd4_lvds_pll_enable() local
64 DBG("pixclk=%lu (%lu)", lvds_pll->pixclk, pll_rate->rate); in mpd4_lvds_pll_enable()
66 if (WARN_ON(!pll_rate)) in mpd4_lvds_pll_enable()
71 for (i = 0; pll_rate->conf[i].reg; i++) in mpd4_lvds_pll_enable()
72 mdp4_write(mdp4_kms, pll_rate->conf[i].reg, pll_rate->conf[i].val); in mpd4_lvds_pll_enable()
104 const struct pll_rate *pll_rate = find_rate(rate); in mpd4_lvds_pll_round_rate() local
105 return pll_rate->rate; in mpd4_lvds_pll_round_rate()
/linux-6.1.9/drivers/gpu/drm/msm/hdmi/
Dhdmi_pll_8960.c30 struct pll_rate { struct
40 static const struct pll_rate freqtbl[] = { argument
357 static const struct pll_rate *find_rate(unsigned long rate) in find_rate()
379 const struct pll_rate *pll_rate = find_rate(rate); in hdmi_pll_round_rate() local
381 return pll_rate->rate; in hdmi_pll_round_rate()
388 const struct pll_rate *pll_rate = find_rate(rate); in hdmi_pll_set_rate() local
393 for (i = 0; i < pll_rate->num_reg; i++) in hdmi_pll_set_rate()
394 pll_write(pll, pll_rate->conf[i].reg, pll_rate->conf[i].val); in hdmi_pll_set_rate()
/linux-6.1.9/arch/mips/ralink/
Dmt7620.c136 mt7620_get_cpu_rate(unsigned long pll_rate) in mt7620_get_cpu_rate() argument
148 return mt7620_calc_rate(pll_rate, mul, div); in mt7620_get_cpu_rate()
160 mt7620_get_dram_rate(unsigned long pll_rate) in mt7620_get_dram_rate() argument
163 return pll_rate / 4; in mt7620_get_dram_rate()
165 return pll_rate / 3; in mt7620_get_dram_rate()
194 unsigned long pll_rate; in ralink_clk_init() local
220 pll_rate = mt7620_get_pll_rate(xtal_rate, cpu_pll_rate); in ralink_clk_init()
222 cpu_rate = mt7620_get_cpu_rate(pll_rate); in ralink_clk_init()
223 dram_rate = mt7620_get_dram_rate(pll_rate); in ralink_clk_init()
231 RINT(pll_rate), RFRAC(pll_rate)); in ralink_clk_init()
/linux-6.1.9/sound/soc/samsung/
Dsnow.c30 static const unsigned int pll_rate[] = { in snow_card_hw_params() local
79 for (i = 0; i < ARRAY_SIZE(pll_rate); i++) { in snow_card_hw_params()
80 if ((pll_rate[i] - rclk * psr) <= 2) { in snow_card_hw_params()
81 freq = pll_rate[i]; in snow_card_hw_params()
/linux-6.1.9/sound/soc/ti/
Dj721e-evm.c560 unsigned int min_rate, max_rate, pll_rate; in j721e_calculate_rate_range() local
590 pll_rate = priv->pll_rates[J721E_CLK_PARENT_44100]; in j721e_calculate_rate_range()
592 pll_rate = priv->pll_rates[J721E_CLK_PARENT_48000]; in j721e_calculate_rate_range()
594 min_rate = pll_rate / J721E_MAX_CLK_HSDIV; in j721e_calculate_rate_range()
598 pll_rate = priv->pll_rates[J721E_CLK_PARENT_48000]; in j721e_calculate_rate_range()
600 pll_rate = priv->pll_rates[J721E_CLK_PARENT_44100]; in j721e_calculate_rate_range()
602 if (pll_rate > PCM1368A_MAX_SYSCLK) in j721e_calculate_rate_range()
603 pll_rate = PCM1368A_MAX_SYSCLK; in j721e_calculate_rate_range()
605 max_rate = pll_rate / ratios_for_pcm3168a[0]; in j721e_calculate_rate_range()
/linux-6.1.9/arch/arm/mach-omap1/
Dopp.h18 unsigned long pll_rate; member
Dclock.c260 ck_dpll1_p->rate = ptr->pll_rate; in omap1_select_table_rate()
/linux-6.1.9/drivers/clk/spear/
Dclk-vco-pll.c67 unsigned long prate, int index, unsigned long *pll_rate) in pll_calc_rate() argument
75 if (pll_rate) in pll_calc_rate()
76 *pll_rate = (rate / (1 << rtbl[index].p)) * 10000; in pll_calc_rate()
/linux-6.1.9/sound/soc/codecs/
Dpcm512x.c750 unsigned long pll_rate) in pcm512x_find_pll_coeff() argument
761 common = gcd(pll_rate, pllin_rate); in pcm512x_find_pll_coeff()
763 pll_rate, pllin_rate, common); in pcm512x_find_pll_coeff()
764 num = pll_rate / common; in pcm512x_find_pll_coeff()
788 pcm512x->real_pll = pll_rate; in pcm512x_find_pll_coeff()
818 pcm512x->real_pll = pll_rate; in pcm512x_find_pll_coeff()
837 K = DIV_ROUND_CLOSEST_ULL(10000ULL * pll_rate * P, pllin_rate); in pcm512x_find_pll_coeff()
894 unsigned long pll_rate; in pcm512x_set_dividers() local
947 pll_rate = 4 * sck_rate; in pcm512x_set_dividers()
949 ret = pcm512x_find_pll_coeff(dai, pllin_rate, pll_rate); in pcm512x_set_dividers()
Dadau17x1.c440 unsigned int pll_rate; in adau17x1_auto_pll() local
450 pll_rate = 48000 * 1024; in adau17x1_auto_pll()
459 pll_rate = 44100 * 1024; in adau17x1_auto_pll()
466 clk_get_rate(adau->mclk), pll_rate); in adau17x1_auto_pll()
/linux-6.1.9/drivers/mfd/
Ddb8500-prcmu.c1395 static unsigned long pll_rate(void __iomem *reg, unsigned long src_rate, in pll_rate() function
1451 rate = pll_rate(PRCM_PLLSOC0_FREQ, rate, clk_mgt[clock].branch); in clock_rate()
1453 rate = pll_rate(PRCM_PLLSOC1_FREQ, rate, clk_mgt[clock].branch); in clock_rate()
1455 rate = pll_rate(PRCM_PLLDDR_FREQ, rate, clk_mgt[clock].branch); in clock_rate()
1483 rate = pll_rate(PRCM_PLLDDR_FREQ, ROOT_CLOCK_RATE, PLL_FIX); in armss_rate()
1495 rate = pll_rate(PRCM_PLLARM_FREQ, ROOT_CLOCK_RATE, PLL_DIV); in armss_rate()
1522 return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), in dsiclk_rate()
1548 return pll_rate(PRCM_PLLSOC0_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate()
1550 return pll_rate(PRCM_PLLSOC1_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate()
1554 return pll_rate(PRCM_PLLDDR_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate()
[all …]
/linux-6.1.9/drivers/phy/mediatek/
Dphy-mtk-hdmi.h35 unsigned long pll_rate; member
Dphy-mtk-hdmi-mt8173.c126 hdmi_phy->pll_rate = rate; in mtk_hdmi_pll_round_rate()
219 return hdmi_phy->pll_rate; in mtk_hdmi_pll_recalc_rate()
/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_dpi.c507 unsigned long pll_rate; in mtk_dpi_set_display_mode() local
513 pll_rate = vm.pixelclock * factor; in mtk_dpi_set_display_mode()
516 pll_rate, vm.pixelclock); in mtk_dpi_set_display_mode()
518 clk_set_rate(dpi->tvd_clk, pll_rate); in mtk_dpi_set_display_mode()
519 pll_rate = clk_get_rate(dpi->tvd_clk); in mtk_dpi_set_display_mode()
526 vm.pixelclock = pll_rate / factor; in mtk_dpi_set_display_mode()
539 pll_rate, vm.pixelclock); in mtk_dpi_set_display_mode()
/linux-6.1.9/sound/pci/ctxfi/
Dctatc.h78 unsigned int pll_rate; /* current rate of Phase Lock Loop */ member
Dctatc.c794 unsigned int pitch, rsr = atc->pll_rate; in spdif_passthru_playback_get_resources()
853 atc->pll_rate = err ? 0 : rate; in atc_pll_init()
888 if ((rate != atc->pll_rate) && (32000 != rate)) in spdif_passthru_playback_setup()
1134 if (atc->pll_rate != atc->rsr) in atc_spdif_out_passthru()
/linux-6.1.9/drivers/clk/
Dclk-cdce925.c419 long pll_rate = clk_round_rate(pll, target_rate); in cdce925_clk_best_parent_rate() local
423 if (pll_rate <= 0) in cdce925_clk_best_parent_rate()
425 actual_rate = pll_rate / pdiv_now; in cdce925_clk_best_parent_rate()