Home
last modified time | relevance | path

Searched refs:mclk (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/kernel/linux/linux-5.10/drivers/clk/hisilicon/
Dclk-hi3620.c284 struct clk_mmc *mclk = to_mmc(hw); in mmc_clk_determine_rate() local
286 if ((req->rate <= 13000000) && (mclk->id == HI3620_MMC_CIUCLK1)) { in mmc_clk_determine_rate()
323 struct clk_mmc *mclk = to_mmc(hw); in mmc_clk_set_timing() local
360 val = readl_relaxed(mclk->clken_reg); in mmc_clk_set_timing()
361 val &= ~(1 << mclk->clken_bit); in mmc_clk_set_timing()
362 writel_relaxed(val, mclk->clken_reg); in mmc_clk_set_timing()
364 val = readl_relaxed(mclk->sam_reg); in mmc_clk_set_timing()
365 val = mmc_clk_delay(val, sam, mclk->sam_off, mclk->sam_bits); in mmc_clk_set_timing()
366 writel_relaxed(val, mclk->sam_reg); in mmc_clk_set_timing()
368 val = readl_relaxed(mclk->drv_reg); in mmc_clk_set_timing()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dbtc_dpm.c1244 u32 *sclk, u32 *mclk) in btc_skip_blacklist_clocks() argument
1248 if ((sclk == NULL) || (mclk == NULL)) in btc_skip_blacklist_clocks()
1255 (btc_blacklist_clocks[i].mclk == *mclk)) in btc_skip_blacklist_clocks()
1264 btc_skip_blacklist_clocks(rdev, max_sclk, max_mclk, sclk, mclk); in btc_skip_blacklist_clocks()
1274 if ((pl->mclk == 0) || (pl->sclk == 0)) in btc_adjust_clock_combinations()
1277 if (pl->mclk == pl->sclk) in btc_adjust_clock_combinations()
1280 if (pl->mclk > pl->sclk) { in btc_adjust_clock_combinations()
1281 if (((pl->mclk + (pl->sclk - 1)) / pl->sclk) > rdev->pm.dpm.dyn_state.mclk_sclk_ratio) in btc_adjust_clock_combinations()
1284 (pl->mclk + in btc_adjust_clock_combinations()
1288 if ((pl->sclk - pl->mclk) > rdev->pm.dpm.dyn_state.sclk_mclk_delta) in btc_adjust_clock_combinations()
[all …]
Drv730_dpm.c120 LPRV7XX_SMC_MCLK_VALUE mclk) in rv730_populate_mclk_value() argument
185 mclk->mclk730.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv730_populate_mclk_value()
186 mclk->mclk730.vDLL_CNTL = cpu_to_be32(dll_cntl); in rv730_populate_mclk_value()
187 mclk->mclk730.mclk_value = cpu_to_be32(memory_clock); in rv730_populate_mclk_value()
188 mclk->mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in rv730_populate_mclk_value()
189 mclk->mclk730.vMPLL_FUNC_CNTL2 = cpu_to_be32(mpll_func_cntl_2); in rv730_populate_mclk_value()
190 mclk->mclk730.vMPLL_FUNC_CNTL3 = cpu_to_be32(mpll_func_cntl_3); in rv730_populate_mclk_value()
191 mclk->mclk730.vMPLL_SS = cpu_to_be32(mpll_ss); in rv730_populate_mclk_value()
192 mclk->mclk730.vMPLL_SS2 = cpu_to_be32(mpll_ss2); in rv730_populate_mclk_value()
296 table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in rv730_populate_smc_acpi_state()
[all …]
Drv740_dpm.c188 RV7XX_SMC_MCLK_VALUE *mclk) in rv740_populate_mclk_value() argument
275 mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); in rv740_populate_mclk_value()
276 mclk->mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); in rv740_populate_mclk_value()
277 mclk->mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); in rv740_populate_mclk_value()
278 mclk->mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); in rv740_populate_mclk_value()
279 mclk->mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); in rv740_populate_mclk_value()
280 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv740_populate_mclk_value()
281 mclk->mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); in rv740_populate_mclk_value()
282 mclk->mclk770.vMPLL_SS = cpu_to_be32(mpll_ss1); in rv740_populate_mclk_value()
283 mclk->mclk770.vMPLL_SS2 = cpu_to_be32(mpll_ss2); in rv740_populate_mclk_value()
[all …]
Drv770_dpm.c387 RV7XX_SMC_MCLK_VALUE *mclk) in rv770_populate_mclk_value() argument
472 mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); in rv770_populate_mclk_value()
473 mclk->mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); in rv770_populate_mclk_value()
474 mclk->mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); in rv770_populate_mclk_value()
475 mclk->mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); in rv770_populate_mclk_value()
476 mclk->mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); in rv770_populate_mclk_value()
477 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv770_populate_mclk_value()
478 mclk->mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); in rv770_populate_mclk_value()
591 int rv770_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, in rv770_populate_mvdd_value() argument
602 if (mclk <= pi->mvdd_split_frequency) { in rv770_populate_mvdd_value()
[all …]
Dcypress_dpm.c424 u8 cypress_get_strobe_mode_settings(struct radeon_device *rdev, u32 mclk) in cypress_get_strobe_mode_settings() argument
431 if (mclk <= pi->mclk_strobe_mode_threshold) in cypress_get_strobe_mode_settings()
433 result = cypress_get_mclk_frequency_ratio(rdev, mclk, strobe_mode); in cypress_get_strobe_mode_settings()
476 RV7XX_SMC_MCLK_VALUE *mclk, in cypress_populate_mclk_value() argument
602 mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); in cypress_populate_mclk_value()
603 mclk->mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); in cypress_populate_mclk_value()
604 mclk->mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); in cypress_populate_mclk_value()
605 mclk->mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); in cypress_populate_mclk_value()
606 mclk->mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); in cypress_populate_mclk_value()
607 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in cypress_populate_mclk_value()
[all …]
/kernel/linux/linux-5.10/sound/soc/ti/
Ddavinci-evm.c25 struct clk *mclk; member
36 if (drvdata->mclk) in evm_startup()
37 return clk_prepare_enable(drvdata->mclk); in evm_startup()
49 if (drvdata->mclk) in evm_shutdown()
50 clk_disable_unprepare(drvdata->mclk); in evm_shutdown()
390 struct clk *mclk; in davinci_evm_probe() local
418 mclk = devm_clk_get(&pdev->dev, "mclk"); in davinci_evm_probe()
419 if (PTR_ERR(mclk) == -EPROBE_DEFER) { in davinci_evm_probe()
421 } else if (IS_ERR(mclk)) { in davinci_evm_probe()
423 mclk = NULL; in davinci_evm_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/mxs/
Dmxs-sgtl5000.c26 u32 mclk; in mxs_sgtl5000_hw_params() local
32 mclk = 256 * rate; in mxs_sgtl5000_hw_params()
35 mclk = 512 * rate; in mxs_sgtl5000_hw_params()
40 ret = snd_soc_dai_set_sysclk(codec_dai, SGTL5000_SYSCLK, mclk, 0); in mxs_sgtl5000_hw_params()
43 mclk / 1000000, mclk / 1000 % 1000); in mxs_sgtl5000_hw_params()
48 ret = snd_soc_dai_set_sysclk(cpu_dai, MXS_SAIF_MCLK, mclk, 0); in mxs_sgtl5000_hw_params()
51 mclk / 1000000, mclk / 1000 % 1000); in mxs_sgtl5000_hw_params()
/kernel/linux/linux-5.10/sound/soc/rockchip/
Drk3399_gru_sound.c68 unsigned int mclk; in rockchip_sound_max98357a_hw_params() local
71 mclk = params_rate(params) * SOUND_FS; in rockchip_sound_max98357a_hw_params()
73 ret = snd_soc_dai_set_sysclk(asoc_rtd_to_cpu(rtd, 0), 0, mclk, 0); in rockchip_sound_max98357a_hw_params()
76 __func__, mclk, ret); in rockchip_sound_max98357a_hw_params()
89 unsigned int mclk; in rockchip_sound_rt5514_hw_params() local
92 mclk = params_rate(params) * SOUND_FS; in rockchip_sound_rt5514_hw_params()
94 ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, in rockchip_sound_rt5514_hw_params()
102 mclk, SND_SOC_CLOCK_IN); in rockchip_sound_rt5514_hw_params()
121 int mclk, ret; in rockchip_sound_da7219_hw_params() local
132 mclk = 12288000; in rockchip_sound_da7219_hw_params()
[all …]
Drockchip_spdif.c36 struct clk *mclk; member
70 clk_disable_unprepare(spdif->mclk); in rk_spdif_runtime_suspend()
81 ret = clk_prepare_enable(spdif->mclk); in rk_spdif_runtime_resume()
89 clk_disable_unprepare(spdif->mclk); in rk_spdif_runtime_resume()
99 clk_disable_unprepare(spdif->mclk); in rk_spdif_runtime_resume()
112 int srate, mclk; in rk_spdif_hw_params() local
116 mclk = srate * 128; in rk_spdif_hw_params()
133 ret = clk_set_rate(spdif->mclk, mclk); in rk_spdif_hw_params()
313 spdif->mclk = devm_clk_get(&pdev->dev, "mclk"); in rk_spdif_probe()
314 if (IS_ERR(spdif->mclk)) in rk_spdif_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dcht_bsw_rt5672.c33 struct clk *mclk; member
64 if (ctx->mclk) { in platform_clock_control()
65 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
97 if (ctx->mclk) in platform_clock_control()
98 clk_disable_unprepare(ctx->mclk); in platform_clock_control()
214 if (ctx->mclk) { in cht_codec_init()
225 ret = clk_prepare_enable(ctx->mclk); in cht_codec_init()
227 clk_disable_unprepare(ctx->mclk); in cht_codec_init()
229 ret = clk_set_rate(ctx->mclk, CHT_PLAT_CLK_3_HZ); in cht_codec_init()
452 drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); in snd_cht_mc_probe()
[all …]
Dcht_bsw_max98090_ti.c36 struct clk *mclk; member
62 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
69 clk_disable_unprepare(ctx->mclk); in platform_clock_control()
238 ret = clk_prepare_enable(ctx->mclk); in cht_codec_init()
240 clk_disable_unprepare(ctx->mclk); in cht_codec_init()
242 ret = clk_set_rate(ctx->mclk, CHT_PLAT_CLK_3_HZ); in cht_codec_init()
582 drv->mclk = devm_clk_get(&pdev->dev, mclk_name); in snd_cht_mc_probe()
583 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe()
586 mclk_name, PTR_ERR(drv->mclk)); in snd_cht_mc_probe()
587 return PTR_ERR(drv->mclk); in snd_cht_mc_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwm8731.c46 struct clk *mclk; member
249 u32 mclk; member
322 static inline int get_coeff(int mclk, int rate) in get_coeff() argument
327 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff()
391 if (wm8731->mclk && clk_set_rate(wm8731->mclk, freq)) in wm8731_set_dai_sysclk()
494 if (wm8731->mclk) { in wm8731_set_bias_level()
495 ret = clk_prepare_enable(wm8731->mclk); in wm8731_set_bias_level()
517 if (wm8731->mclk) in wm8731_set_bias_level()
518 clk_disable_unprepare(wm8731->mclk); in wm8731_set_bias_level()
670 wm8731->mclk = devm_clk_get(&spi->dev, "mclk"); in wm8731_spi_probe()
[all …]
Dcs4234.c36 struct clk *mclk; member
448 int mclk = cs4234->mclk_rate; in cs4234_dai_rule_rate() local
451 .min = mclk / clamp(mclk / 30000, 256, 512), in cs4234_dai_rule_rate()
452 .max = mclk / clamp(mclk / 50000, 256, 512), in cs4234_dai_rule_rate()
455 .min = mclk / clamp(mclk / 60000, 128, 256), in cs4234_dai_rule_rate()
456 .max = mclk / clamp(mclk / 100000, 128, 256), in cs4234_dai_rule_rate()
701 clk_disable_unprepare(cs4234->mclk); in cs4234_shutdown()
708 ret = clk_prepare_enable(cs4234->mclk); in cs4234_powerup()
717 clk_disable_unprepare(cs4234->mclk); in cs4234_powerup()
767 cs4234->mclk = devm_clk_get(dev, "mclk"); in cs4234_i2c_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/cirrus/
Dep93xx-i2s.c74 struct clk *mclk; member
114 clk_enable(info->mclk); in ep93xx_i2s_enable()
161 clk_disable(info->mclk); in ep93xx_i2s_disable()
333 div = clk_get_rate(info->mclk) / params_rate(params); in ep93xx_i2s_hw_params()
343 err = clk_set_rate(info->sclk, clk_get_rate(info->mclk) / sdiv); in ep93xx_i2s_hw_params()
363 return clk_set_rate(info->mclk, freq); in ep93xx_i2s_set_sysclk()
454 info->mclk = clk_get(&pdev->dev, "mclk"); in ep93xx_i2s_probe()
455 if (IS_ERR(info->mclk)) { in ep93xx_i2s_probe()
456 err = PTR_ERR(info->mclk); in ep93xx_i2s_probe()
490 clk_put(info->mclk); in ep93xx_i2s_probe()
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/freescale/
Dfsl-ls1028a-kontron-sl28-var3-ads2.dts46 simple-audio-card,mclk-fs = <256>;
104 clocks = <&mclk>;
105 clock-names = "mclk";
106 assigned-clocks = <&mclk>;
120 mclk: clock-mclk@f130080 { label
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
Dskl-i2s.h26 #define get_clk_src(mclk, mask) \ argument
27 ((mclk.mdivctrl & mask) >> SKL_SHIFT(mask))
77 struct skl_i2s_config_mclk mclk; member
85 struct skl_i2s_config_mclk_ext mclk; member
Dskl-ssp-clk.c97 ipc->mclk.hdr.type = DMA_CLK_CONTROLS; in skl_fill_clk_ipc()
99 ipc->mclk.hdr.size = sizeof(struct skl_dmactrl_mclk_cfg) - in skl_fill_clk_ipc()
133 ipc->mclk.mclk = 0; in skl_send_clk_dma_control()
135 ipc->mclk.mclk = 1; in skl_send_clk_dma_control()
137 ipc->mclk.keep_running = enable; in skl_send_clk_dma_control()
138 ipc->mclk.warm_up_over = enable; in skl_send_clk_dma_control()
139 ipc->mclk.clk_stop_over = !enable; in skl_send_clk_dma_control()
140 data = (u8 *)&ipc->mclk; in skl_send_clk_dma_control()
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl_mqs.c35 struct clk *mclk; member
56 mclk_rate = clk_get_rate(mqs_priv->mclk); in fsl_mqs_hw_params()
235 mqs_priv->mclk = devm_clk_get(&pdev->dev, "mclk"); in fsl_mqs_probe()
236 if (IS_ERR(mqs_priv->mclk)) { in fsl_mqs_probe()
238 PTR_ERR(mqs_priv->mclk)); in fsl_mqs_probe()
239 return PTR_ERR(mqs_priv->mclk); in fsl_mqs_probe()
271 ret = clk_prepare_enable(mqs_priv->mclk); in fsl_mqs_runtime_resume()
298 clk_disable_unprepare(mqs_priv->mclk); in fsl_mqs_runtime_suspend()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dstv0900_sw.c42 max_carrier /= intp->mclk / 1000; in stv0900_check_signal_presence()
69 max_carrier /= intp->mclk / 1000; in stv0900_get_sw_loop_params()
75 freq_inc /= intp->mclk >> 10; in stv0900_get_sw_loop_params()
135 max_carrier /= intp->mclk / 1000; in stv0900_search_carr_sw_loop()
295 u32 mclk, in stv0900_get_symbol_rate() argument
310 intval1 = (mclk) >> 16; in stv0900_get_symbol_rate()
313 rem1 = (mclk) % 0x10000; in stv0900_get_symbol_rate()
323 u32 mclk, u32 srate, in stv0900_set_symbol_rate() argument
328 dprintk("%s: Mclk %d, SR %d, Dmd %d\n", __func__, mclk, in stv0900_set_symbol_rate()
333 symb /= (mclk >> 12); in stv0900_set_symbol_rate()
[all …]
Dstv6110.c28 u32 mclk; member
210 ((((priv->mclk / 1000000) - 16) & 0x1f) << 3); in stv6110_init()
239 freq = divider * (priv->mclk / 1000); in stv6110_get_frequency()
256 frequency, priv->mclk); in stv6110_set_frequency()
261 ((((priv->mclk / 1000000) - 16) & 0x1f) << 3); in stv6110_set_frequency()
290 p_calc = (priv->mclk / 100000); in stv6110_set_frequency()
295 p_calc_opt = (priv->mclk / 100000); in stv6110_set_frequency()
299 ref = priv->mclk / ((1 << (r_div_opt + 1)) * (1 << (p + 1))); in stv6110_set_frequency()
329 vco_freq = divider * ((priv->mclk / 1000) / ((1 << (r_div_opt + 1)))); in stv6110_set_frequency()
417 priv->mclk = config->mclk; in stv6110_attach()
/kernel/linux/linux-5.10/sound/soc/tegra/
Dtegra_wm8753.c46 int srate, mclk; in tegra_wm8753_hw_params() local
55 mclk = 11289600; in tegra_wm8753_hw_params()
58 mclk = 12288000; in tegra_wm8753_hw_params()
62 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8753_hw_params()
68 err = snd_soc_dai_set_sysclk(codec_dai, WM8753_MCLK, mclk, in tegra_wm8753_hw_params()
Dtegra_max98090.c44 int srate, mclk; in tegra_max98090_asoc_hw_params() local
56 mclk = 12288000; in tegra_max98090_asoc_hw_params()
62 mclk = 11289600; in tegra_max98090_asoc_hw_params()
65 mclk = 12000000; in tegra_max98090_asoc_hw_params()
69 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_max98090_asoc_hw_params()
75 err = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, in tegra_max98090_asoc_hw_params()
/kernel/linux/linux-5.10/drivers/staging/iio/frequency/
Dad9832.c99 struct clk *mclk; member
121 static unsigned long ad9832_calc_freqreg(unsigned long mclk, unsigned long fout) in ad9832_calc_freqreg() argument
125 do_div(freqreg, mclk); in ad9832_calc_freqreg()
134 if (fout > (clk_get_rate(st->mclk) / 2)) in ad9832_write_frequency()
137 regval = ad9832_calc_freqreg(clk_get_rate(st->mclk), fout); in ad9832_write_frequency()
338 st->mclk = devm_clk_get(&spi->dev, "mclk"); in ad9832_probe()
339 if (IS_ERR(st->mclk)) { in ad9832_probe()
340 ret = PTR_ERR(st->mclk); in ad9832_probe()
344 ret = clk_prepare_enable(st->mclk); in ad9832_probe()
431 clk_disable_unprepare(st->mclk); in ad9832_probe()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/boot/dts/
Dmpc5121.dtsi164 clock-names = "ipg", "ips", "sys", "ref", "mclk";
176 clock-names = "ipg", "ips", "sys", "ref", "mclk";
250 clock-names = "ipg", "ips", "sys", "ref", "mclk";
262 clock-names = "ipg", "ips", "sys", "ref", "mclk";
357 clock-names = "ipg", "mclk";
369 clock-names = "ipg", "mclk";
381 clock-names = "ipg", "mclk";
393 clock-names = "ipg", "mclk";
405 clock-names = "ipg", "mclk";
417 clock-names = "ipg", "mclk";
[all …]

12345678910>>...22