Home
last modified time | relevance | path

Searched refs:apll (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.15/sound/soc/mediatek/mt8365/
H A Dmt8365-afe-clk.c321 int mt8365_afe_enable_apll_tuner_cfg(struct mtk_base_afe *afe, unsigned int apll) in mt8365_afe_enable_apll_tuner_cfg() argument
327 afe_priv->apll_tuner_ref_cnt[apll]++; in mt8365_afe_enable_apll_tuner_cfg()
328 if (afe_priv->apll_tuner_ref_cnt[apll] != 1) { in mt8365_afe_enable_apll_tuner_cfg()
333 if (apll == MT8365_AFE_APLL1) { in mt8365_afe_enable_apll_tuner_cfg()
355 afe_priv->apll_tuner_ref_cnt[apll]--; in mt8365_afe_disable_apll_tuner_cfg()
356 if (afe_priv->apll_tuner_ref_cnt[apll] == 0) { in mt8365_afe_disable_apll_tuner_cfg()
357 if (apll == MT8365_AFE_APLL1) in mt8365_afe_disable_apll_tuner_cfg()
364 } else if (afe_priv->apll_tuner_ref_cnt[apll] < 0) { in mt8365_afe_disable_apll_tuner_cfg()
365 afe_priv->apll_tuner_ref_cnt[apll] = 0; in mt8365_afe_disable_apll_tuner_cfg()
376 if (apll == MT8365_AFE_APLL1) { in mt8365_afe_enable_apll_associated_cfg()
[all …]
H A Dmt8365-afe-clk.h28 int mt8365_afe_enable_apll_tuner_cfg(struct mtk_base_afe *afe, unsigned int apll);
29 int mt8365_afe_disable_apll_tuner_cfg(struct mtk_base_afe *afe, unsigned int apll);
30 int mt8365_afe_enable_apll_associated_cfg(struct mtk_base_afe *afe, unsigned int apll);
31 int mt8365_afe_disable_apll_associated_cfg(struct mtk_base_afe *afe, unsigned int apll);
/linux-6.15/Documentation/devicetree/bindings/clock/ti/
H A Dapll.txt15 - compatible : shall be "ti,dra7-apll-clock" or "ti,omap2-apll-clock"
32 compatible = "ti,dra7-apll-clock";
37 compatible = "ti,omap2-apll-clock";
/linux-6.15/Documentation/devicetree/bindings/clock/
H A Dimx7ulp-pcc-clock.yaml54 - description: apll pfd2
55 - description: apll pfd1
56 - description: apll pfd0
/linux-6.15/sound/soc/mediatek/mt8183/
H A Dmt8183-dai-tdm.c440 int apll; in mtk_dai_tdm_cal_mclk() local
443 apll = mt8183_get_apll_by_rate(afe, freq); in mtk_dai_tdm_cal_mclk()
444 apll_rate = mt8183_get_apll_rate(afe, apll); in mtk_dai_tdm_cal_mclk()
459 tdm_priv->mclk_apll = apll; in mtk_dai_tdm_cal_mclk()
H A Dmt8183-afe-clk.h32 int mt8183_get_apll_rate(struct mtk_base_afe *afe, int apll);
H A Dmt8183-afe-clk.c487 int mt8183_get_apll_rate(struct mtk_base_afe *afe, int apll) in mt8183_get_apll_rate() argument
489 return (apll == MT8183_APLL1) ? 180633600 : 196608000; in mt8183_get_apll_rate()
545 int apll = mt8183_get_apll_by_rate(afe, rate); in mt8183_mck_enable() local
546 int apll_clk_id = apll == MT8183_APLL1 ? in mt8183_mck_enable()
H A Dmt8183-dai-i2s.c787 int apll; in mtk_dai_i2s_set_sysclk() local
800 apll = mt8183_get_apll_by_rate(afe, freq); in mtk_dai_i2s_set_sysclk()
801 apll_rate = mt8183_get_apll_rate(afe, apll); in mtk_dai_i2s_set_sysclk()
815 i2s_priv->mclk_apll = apll; in mtk_dai_i2s_set_sysclk()
/linux-6.15/sound/soc/mediatek/mt8192/
H A Dmt8192-dai-tdm.c489 int apll; in mtk_dai_tdm_cal_mclk() local
492 apll = mt8192_get_apll_by_rate(afe, freq); in mtk_dai_tdm_cal_mclk()
493 apll_rate = mt8192_get_apll_rate(afe, apll); in mtk_dai_tdm_cal_mclk()
508 tdm_priv->mclk_apll = apll; in mtk_dai_tdm_cal_mclk()
H A Dmt8192-afe-clk.c385 int mt8192_get_apll_rate(struct mtk_base_afe *afe, int apll) in mt8192_get_apll_rate() argument
387 return (apll == MT8192_APLL1) ? 180633600 : 196608000; in mt8192_get_apll_rate()
565 int apll = mt8192_get_apll_by_rate(afe, rate); in mt8192_mck_enable() local
566 int apll_clk_id = apll == MT8192_APLL1 ? in mt8192_mck_enable()
H A Dmt8192-afe-clk.h233 int mt8192_get_apll_rate(struct mtk_base_afe *afe, int apll);
/linux-6.15/sound/soc/mediatek/mt8186/
H A Dmt8186-afe-clk.c438 int mt8186_get_apll_rate(struct mtk_base_afe *afe, int apll) in mt8186_get_apll_rate() argument
440 return (apll == MT8186_APLL1) ? 180633600 : 196608000; in mt8186_get_apll_rate()
488 int apll = mt8186_get_apll_by_rate(afe, rate); in mt8186_mck_enable() local
489 int apll_clk_id = apll == MT8186_APLL1 ? in mt8186_mck_enable()
H A Dmt8186-dai-tdm.c339 int apll; in mtk_dai_tdm_cal_mclk() local
342 apll = mt8186_get_apll_by_rate(afe, freq); in mtk_dai_tdm_cal_mclk()
343 apll_rate = mt8186_get_apll_rate(afe, apll); in mtk_dai_tdm_cal_mclk()
358 tdm_priv->mclk_apll = apll; in mtk_dai_tdm_cal_mclk()
H A Dmt8186-afe-clk.h95 int mt8186_get_apll_rate(struct mtk_base_afe *afe, int apll);
H A Dmt8186-dai-i2s.c1006 int apll; in mtk_dai_i2s_set_sysclk() local
1016 apll = mt8186_get_apll_by_rate(afe, freq); in mtk_dai_i2s_set_sysclk()
1017 apll_rate = mt8186_get_apll_rate(afe, apll); in mtk_dai_i2s_set_sysclk()
1030 i2s_priv->mclk_apll = apll; in mtk_dai_i2s_set_sysclk()
/linux-6.15/drivers/clk/samsung/
H A Dclk-exynos5250.c109 apll, mpll, cpll, epll, vpll, gpll, bpll, enumerator
737 [apll] = PLL(pll_35xx, CLK_FOUT_APLL, "fout_apll", "fin_pll", APLL_LOCK,
753 #define E5250_CPU_DIV0(apll, pclk_dbg, atb, periph, acp, cpud) \ argument
754 ((((apll) << 24) | ((pclk_dbg) << 20) | ((atb) << 16) | \
816 exynos5250_plls[apll].rate_table = apll_24mhz_tbl; in exynos5250_clk_init()
H A Dclk-exynos5410.c62 apll, cpll, epll, mpll, enumerator
241 [apll] = PLL(pll_35xx, CLK_FOUT_APLL, "fout_apll", "fin_pll", APLL_LOCK,
H A Dclk-exynos4.c150 apll, mpll, epll, vpll, enumerator
1152 [apll] = PLL(pll_4508, CLK_FOUT_APLL, "fout_apll", "fin_pll",
1163 [apll] = PLL(pll_35xx, CLK_FOUT_APLL, "fout_apll", "fin_pll",
1197 #define E4210_CPU_DIV0(apll, pclk_dbg, atb, periph, corem1, corem0) \ argument
1198 (((apll) << 24) | ((pclk_dbg) << 20) | ((atb) << 16) | \
1299 exynos4210_plls[apll].rate_table = in exynos4_clk_init()
1313 exynos4x12_plls[apll].rate_table = in exynos4_clk_init()
H A Dclk-s5pv210.c67 apll, enumerator
715 [apll] = PLL(pll_4508, FOUT_APLL, "fout_apll", "fin_pll",
727 [apll] = PLL(pll_4502, FOUT_APLL, "fout_apll", "fin_pll",
/linux-6.15/drivers/clk/ti/
H A DMakefile6 fixed-factor.o mux.o apll.o \
/linux-6.15/sound/soc/mediatek/mt8195/
H A Dmt8195-afe-clk.h101 int mt8195_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
H A Dmt8195-dai-etdm.c1917 int apll; in mtk_dai_etdm_mclk_configure() local
1941 apll = etdm_data->mclk_apll; in mtk_dai_etdm_mclk_configure()
1942 apll_clk_id = mt8195_afe_get_mclk_source_clk_id(apll); in mtk_dai_etdm_mclk_configure()
2156 int apll; in mtk_dai_etdm_cal_mclk() local
2168 apll = mt8195_afe_get_default_mclk_source_by_rate(freq); in mtk_dai_etdm_cal_mclk()
2169 apll_rate = mt8195_afe_get_mclk_source_rate(afe, apll); in mtk_dai_etdm_cal_mclk()
2177 dev_info(afe->dev, "APLL%d cannot generate freq Hz\n", apll); in mtk_dai_etdm_cal_mclk()
2181 etdm_data->mclk_apll = apll; in mtk_dai_etdm_cal_mclk()
/linux-6.15/Documentation/devicetree/bindings/phy/
H A Dti-phy.txt48 * "phy-div" - divider for apll
49 * "div-clk" - apll clock
/linux-6.15/sound/soc/mediatek/mt8188/
H A Dmt8188-afe-clk.h117 int mt8188_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
H A Dmt8188-dai-etdm.c396 int apll; in mtk_dai_etdm_enable_mclk() local
403 apll = etdm_data->mclk_apll; in mtk_dai_etdm_enable_mclk()
404 apll_clk_id = mt8188_afe_get_mclk_source_clk_id(apll); in mtk_dai_etdm_enable_mclk()
2238 int apll; in mtk_dai_etdm_cal_mclk() local
2250 apll = mt8188_afe_get_default_mclk_source_by_rate(freq); in mtk_dai_etdm_cal_mclk()
2252 apll = etdm_data->mclk_apll; in mtk_dai_etdm_cal_mclk()
2254 apll_rate = mt8188_afe_get_mclk_source_rate(afe, apll); in mtk_dai_etdm_cal_mclk()
2262 dev_err(afe->dev, "APLL%d cannot generate freq Hz\n", apll); in mtk_dai_etdm_cal_mclk()
2267 etdm_data->mclk_apll = apll; in mtk_dai_etdm_cal_mclk()

12