Lines Matching full:gclk
242 struct clk *gclk; member
447 ret = mchp_i2s_mcc_clk_get_rate_diff(dev->gclk, clk_rate, in mchp_i2s_mcc_config_divs()
451 dev_err(dev->dev, "gclk error for rate %lu: %d", in mchp_i2s_mcc_config_divs()
455 dev_dbg(dev->dev, "found perfect rate on gclk: %lu\n", in mchp_i2s_mcc_config_divs()
483 best_clk == dev->pclk ? "pclk" : "gclk", in mchp_i2s_mcc_config_divs()
491 if (best_clk == dev->gclk) in mchp_i2s_mcc_config_divs()
702 ret = clk_set_rate(dev->gclk, rate); in mchp_i2s_mcc_hw_params()
705 "unable to set rate %lu to GCLK: %d\n", in mchp_i2s_mcc_hw_params()
710 ret = clk_prepare(dev->gclk); in mchp_i2s_mcc_hw_params()
712 dev_err(dev->dev, "unable to prepare GCLK: %d\n", ret); in mchp_i2s_mcc_hw_params()
724 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_params()
776 clk_disable(dev->gclk); in mchp_i2s_mcc_hw_free()
780 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_free()
841 err = clk_enable(dev->gclk); in mchp_i2s_mcc_trigger()
843 dev_err_once(dev->dev, "failed to enable GCLK: %d\n", in mchp_i2s_mcc_trigger()
1039 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_i2s_mcc_probe()
1040 if (IS_ERR(dev->gclk)) { in mchp_i2s_mcc_probe()
1041 if (PTR_ERR(dev->gclk) == -EPROBE_DEFER) in mchp_i2s_mcc_probe()
1045 dev->gclk = NULL; in mchp_i2s_mcc_probe()