Lines Matching full:gclk
239 struct clk *gclk; member
449 clk_disable_unprepare(dev->gclk); in mchp_spdifrx_hw_params()
452 ret = clk_set_min_rate(dev->gclk, params_rate(params) * in mchp_spdifrx_hw_params()
456 "unable to set gclk min rate: rate %u * ratio %u + 1\n", in mchp_spdifrx_hw_params()
460 ret = clk_prepare_enable(dev->gclk); in mchp_spdifrx_hw_params()
462 dev_err(dev->dev, "unable to enable gclk: %d\n", ret); in mchp_spdifrx_hw_params()
467 dev_dbg(dev->dev, "GCLK range min set to %d\n", in mchp_spdifrx_hw_params()
479 clk_disable_unprepare(dev->gclk); in mchp_spdifrx_hw_free()
696 rate = clk_get_rate(dev->gclk); in mchp_spdifrx_rate_get()
909 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_spdifrx_probe()
910 if (IS_ERR(dev->gclk)) { in mchp_spdifrx_probe()
911 err = PTR_ERR(dev->gclk); in mchp_spdifrx_probe()