Lines Matching refs:periph_clk
337 const struct clk_periph *periph_clk = &priv->clks[clk->id]; in periph_clk_enable() local
342 if (!periph_clk->can_gate) in periph_clk_enable()
346 clrbits_le32(priv->reg + CLK_DIS, periph_clk->disable_bit); in periph_clk_enable()
348 setbits_le32(priv->reg + CLK_DIS, periph_clk->disable_bit); in periph_clk_enable()
391 const struct clk_periph *periph_clk = &priv->clks[clk->id]; in armada_37xx_periph_clk_set_rate() local
410 if (!periph_clk->can_gate || !periph_clk->dividers) in armada_37xx_periph_clk_set_rate()
418 if (periph_clk->dividers > 1) in armada_37xx_periph_clk_set_rate()
419 t1 = periph_clk->div_table[1]; in armada_37xx_periph_clk_set_rate()
421 rate = find_best_div(periph_clk->div_table[0], t1, parent_rate, in armada_37xx_periph_clk_set_rate()
426 set_div_val(priv, periph_clk, 0, div_val0); in armada_37xx_periph_clk_set_rate()
427 if (periph_clk->dividers > 1) in armada_37xx_periph_clk_set_rate()
428 set_div_val(priv, periph_clk, 1, div_val1); in armada_37xx_periph_clk_set_rate()
439 const struct clk_periph *periph_clk = &priv->clks[clk->id]; in armada_37xx_periph_clk_set_parent() local
447 if (!periph_clk->can_mux || !periph_clk->can_gate) in armada_37xx_periph_clk_set_parent()
462 set_mux(priv, periph_clk->mux_shift, parent->id); in armada_37xx_periph_clk_set_parent()