Home
last modified time | relevance | path

Searched refs:mux_div (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/clk/mmp/
Dclk-mix.c136 u32 mux_div, fc_req; in _set_rate() local
148 mux_div = readl(ri->reg_clk_ctrl); in _set_rate()
150 mux_div = readl(ri->reg_clk_sel); in _set_rate()
155 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); in _set_rate()
156 mux_div |= MMP_CLK_BITS_SET_VAL(div_val, width, shift); in _set_rate()
162 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); in _set_rate()
163 mux_div |= MMP_CLK_BITS_SET_VAL(mux_val, width, shift); in _set_rate()
167 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
169 mux_div |= (1 << ri->bit_fc); in _set_rate()
170 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
[all …]
/linux-6.1.9/drivers/clk/qcom/
Dclk-rcg2.c872 u8 mux_div = cgfx->div; in clk_gfx3d_determine_rate() local
892 if (mux_div == 0) in clk_gfx3d_determine_rate()
893 mux_div = 1; in clk_gfx3d_determine_rate()
895 parent_req.rate = req->rate * mux_div; in clk_gfx3d_determine_rate()
932 req->rate /= mux_div; in clk_gfx3d_determine_rate()