Lines Matching full:gclk
234 struct clk *gclk; member
425 ret = mchp_i2s_mcc_clk_get_rate_diff(dev->gclk, clk_rate, in mchp_i2s_mcc_config_divs()
429 dev_err(dev->dev, "gclk error for rate %lu: %d", in mchp_i2s_mcc_config_divs()
433 dev_dbg(dev->dev, "found perfect rate on gclk: %lu\n", in mchp_i2s_mcc_config_divs()
461 best_clk == dev->pclk ? "pclk" : "gclk", in mchp_i2s_mcc_config_divs()
469 if (best_clk == dev->gclk) in mchp_i2s_mcc_config_divs()
657 ret = clk_set_rate(dev->gclk, rate); in mchp_i2s_mcc_hw_params()
660 "unable to set rate %lu to GCLK: %d\n", in mchp_i2s_mcc_hw_params()
665 ret = clk_prepare(dev->gclk); in mchp_i2s_mcc_hw_params()
667 dev_err(dev->dev, "unable to prepare GCLK: %d\n", ret); in mchp_i2s_mcc_hw_params()
679 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_params()
722 clk_disable(dev->gclk); in mchp_i2s_mcc_hw_free()
726 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_free()
781 err = clk_enable(dev->gclk); in mchp_i2s_mcc_trigger()
783 dev_err_once(dev->dev, "failed to enable GCLK: %d\n", in mchp_i2s_mcc_trigger()
923 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_i2s_mcc_probe()
924 if (IS_ERR(dev->gclk)) { in mchp_i2s_mcc_probe()
925 if (PTR_ERR(dev->gclk) == -EPROBE_DEFER) in mchp_i2s_mcc_probe()
929 dev->gclk = NULL; in mchp_i2s_mcc_probe()