| /linux-6.15/sound/soc/mediatek/mt8365/ |
| H A D | mt8365-afe-clk.c | 321 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 D | mt8365-afe-clk.h | 28 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 D | apll.txt | 15 - 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 D | imx7ulp-pcc-clock.yaml | 54 - description: apll pfd2 55 - description: apll pfd1 56 - description: apll pfd0
|
| /linux-6.15/sound/soc/mediatek/mt8183/ |
| H A D | mt8183-dai-tdm.c | 440 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 D | mt8183-afe-clk.h | 32 int mt8183_get_apll_rate(struct mtk_base_afe *afe, int apll);
|
| H A D | mt8183-afe-clk.c | 487 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 D | mt8183-dai-i2s.c | 787 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 D | mt8192-dai-tdm.c | 489 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 D | mt8192-afe-clk.c | 385 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 D | mt8192-afe-clk.h | 233 int mt8192_get_apll_rate(struct mtk_base_afe *afe, int apll);
|
| /linux-6.15/sound/soc/mediatek/mt8186/ |
| H A D | mt8186-afe-clk.c | 438 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 D | mt8186-dai-tdm.c | 339 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 D | mt8186-afe-clk.h | 95 int mt8186_get_apll_rate(struct mtk_base_afe *afe, int apll);
|
| H A D | mt8186-dai-i2s.c | 1006 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 D | clk-exynos5250.c | 109 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 D | clk-exynos5410.c | 62 apll, cpll, epll, mpll, enumerator 241 [apll] = PLL(pll_35xx, CLK_FOUT_APLL, "fout_apll", "fin_pll", APLL_LOCK,
|
| H A D | clk-exynos4.c | 150 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 D | clk-s5pv210.c | 67 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 D | Makefile | 6 fixed-factor.o mux.o apll.o \
|
| /linux-6.15/sound/soc/mediatek/mt8195/ |
| H A D | mt8195-afe-clk.h | 101 int mt8195_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
|
| H A D | mt8195-dai-etdm.c | 1917 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 D | ti-phy.txt | 48 * "phy-div" - divider for apll 49 * "div-clk" - apll clock
|
| /linux-6.15/sound/soc/mediatek/mt8188/ |
| H A D | mt8188-afe-clk.h | 117 int mt8188_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
|
| H A D | mt8188-dai-etdm.c | 396 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()
|