Lines Matching full:gclk
251 struct clk *gclk; member
456 ret = mchp_i2s_mcc_clk_get_rate_diff(dev->gclk, clk_rate, in mchp_i2s_mcc_config_divs()
460 dev_err(dev->dev, "gclk error for rate %lu: %d", in mchp_i2s_mcc_config_divs()
464 dev_dbg(dev->dev, "found perfect rate on gclk: %lu\n", in mchp_i2s_mcc_config_divs()
492 best_clk == dev->pclk ? "pclk" : "gclk", in mchp_i2s_mcc_config_divs()
500 if (best_clk == dev->gclk) in mchp_i2s_mcc_config_divs()
730 ret = clk_set_rate(dev->gclk, rate); in mchp_i2s_mcc_hw_params()
733 "unable to set rate %lu to GCLK: %d\n", in mchp_i2s_mcc_hw_params()
738 ret = clk_prepare(dev->gclk); in mchp_i2s_mcc_hw_params()
740 dev_err(dev->dev, "unable to prepare GCLK: %d\n", ret); in mchp_i2s_mcc_hw_params()
752 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_params()
804 clk_disable(dev->gclk); in mchp_i2s_mcc_hw_free()
808 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_free()
869 err = clk_enable(dev->gclk); in mchp_i2s_mcc_trigger()
871 dev_err_once(dev->dev, "failed to enable GCLK: %d\n", in mchp_i2s_mcc_trigger()
1067 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_i2s_mcc_probe()
1068 if (IS_ERR(dev->gclk)) { in mchp_i2s_mcc_probe()
1069 if (PTR_ERR(dev->gclk) == -EPROBE_DEFER) in mchp_i2s_mcc_probe()
1073 dev->gclk = NULL; in mchp_i2s_mcc_probe()