Lines Matching full:gclk
239 struct clk *gclk; member
447 clk_disable_unprepare(dev->gclk); in mchp_spdifrx_hw_params()
450 ret = clk_set_min_rate(dev->gclk, params_rate(params) * in mchp_spdifrx_hw_params()
454 "unable to set gclk min rate: rate %u * ratio %u + 1\n", in mchp_spdifrx_hw_params()
458 ret = clk_prepare_enable(dev->gclk); in mchp_spdifrx_hw_params()
460 dev_err(dev->dev, "unable to enable gclk: %d\n", ret); in mchp_spdifrx_hw_params()
465 dev_dbg(dev->dev, "GCLK range min set to %d\n", in mchp_spdifrx_hw_params()
477 clk_disable_unprepare(dev->gclk); in mchp_spdifrx_hw_free()
693 rate = clk_get_rate(dev->gclk); in mchp_spdifrx_rate_get()
905 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_spdifrx_probe()
906 if (IS_ERR(dev->gclk)) { in mchp_spdifrx_probe()
907 err = PTR_ERR(dev->gclk); in mchp_spdifrx_probe()