Searched refs:zclk (Results 1 – 5 of 5) sorted by relevance
198 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local202 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()203 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()206 32 * zclk->fixed_div); in cpg_z_clk_recalc_rate()212 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_determine_rate() local217 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate()219 prate = zclk->max_rate; in cpg_z_clk_determine_rate()225 prate * zclk->fixed_div); in cpg_z_clk_determine_rate()227 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()243 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local[all …]
178 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local182 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()183 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()186 32 * zclk->fixed_div); in cpg_z_clk_recalc_rate()192 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_determine_rate() local197 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate()199 prate = zclk->max_rate; in cpg_z_clk_determine_rate()205 prate * zclk->fixed_div); in cpg_z_clk_determine_rate()207 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()223 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local[all …]
56 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local60 val = (readl(zclk->reg) & CPG_FRQCRC_ZFC_MASK) >> CPG_FRQCRC_ZFC_SHIFT; in cpg_z_clk_recalc_rate()87 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local95 if (readl(zclk->kick_reg) & CPG_FRQCRB_KICK) in cpg_z_clk_set_rate()98 val = readl(zclk->reg); in cpg_z_clk_set_rate()101 writel(val, zclk->reg); in cpg_z_clk_set_rate()107 kick = readl(zclk->kick_reg); in cpg_z_clk_set_rate()109 writel(kick, zclk->kick_reg); in cpg_z_clk_set_rate()121 if (!(readl(zclk->kick_reg) & CPG_FRQCRB_KICK)) in cpg_z_clk_set_rate()141 struct cpg_z_clk *zclk; in cpg_z_clk_register() local[all …]
521 engine->zclk = devm_clk_get(dev, res_name); in mv_cesa_probe()522 if (IS_ERR(engine->zclk)) in mv_cesa_probe()523 engine->zclk = NULL; in mv_cesa_probe()529 ret = clk_prepare_enable(engine->zclk); in mv_cesa_probe()574 clk_disable_unprepare(cesa->engines[i].zclk); in mv_cesa_probe()592 clk_disable_unprepare(cesa->engines[i].zclk); in mv_cesa_remove()
460 struct clk *zclk; member