Lines Matching full:mclk
25 struct clk *mclk; member
36 if (drvdata->mclk) in evm_startup()
37 return clk_prepare_enable(drvdata->mclk); in evm_startup()
49 clk_disable_unprepare(drvdata->mclk); in evm_shutdown()
389 struct clk *mclk; in davinci_evm_probe() local
417 mclk = devm_clk_get(&pdev->dev, "mclk"); in davinci_evm_probe()
418 if (PTR_ERR(mclk) == -EPROBE_DEFER) { in davinci_evm_probe()
420 } else if (IS_ERR(mclk)) { in davinci_evm_probe()
421 dev_dbg(&pdev->dev, "mclk not found.\n"); in davinci_evm_probe()
422 mclk = NULL; in davinci_evm_probe()
429 drvdata->mclk = mclk; in davinci_evm_probe()
434 if (!drvdata->mclk) { in davinci_evm_probe()
439 drvdata->sysclk = clk_get_rate(drvdata->mclk); in davinci_evm_probe()
440 } else if (drvdata->mclk) { in davinci_evm_probe()
442 clk_set_rate(drvdata->mclk, drvdata->sysclk); in davinci_evm_probe()
443 drvdata->sysclk = clk_get_rate(drvdata->mclk); in davinci_evm_probe()