Lines Matching full:sysclk
95 struct clk *sysclk; member
176 return clk_set_rate(priv->sysclk, sys_rate); in axg_pdm_set_sysclk()
178 return clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_set_sysclk()
187 spmax = DIV_ROUND_UP_ULL((u64)clk_get_rate(priv->sysclk), in axg_pdm_set_sample_pointer()
190 /* Check if sysclk is not too fast - should not happen */ in axg_pdm_set_sample_pointer()
393 * sysclk must be set and enabled as well to access the pdm registers in axg_pdm_dai_probe()
396 ret = clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_dai_probe()
398 dev_err(dai->dev, "setting sysclk failed\n"); in axg_pdm_dai_probe()
402 ret = clk_prepare_enable(priv->sysclk); in axg_pdm_dai_probe()
404 dev_err(dai->dev, "enabling sysclk failed\n"); in axg_pdm_dai_probe()
427 clk_disable_unprepare(priv->sysclk); in axg_pdm_dai_probe()
437 clk_disable_unprepare(priv->sysclk); in axg_pdm_dai_remove()
629 priv->sysclk = devm_clk_get(dev, "sysclk"); in axg_pdm_probe()
630 if (IS_ERR(priv->sysclk)) { in axg_pdm_probe()
631 ret = PTR_ERR(priv->sysclk); in axg_pdm_probe()