Searched refs:mux_div (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/clk/mmp/ |
H A D | clk-mix.c | 139 u32 mux_div, fc_req; _set_rate() local 151 mux_div = readl(ri->reg_clk_ctrl); _set_rate() 153 mux_div = readl(ri->reg_clk_sel); _set_rate() 158 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); _set_rate() 159 mux_div |= MMP_CLK_BITS_SET_VAL(div_val, width, shift); _set_rate() 165 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); _set_rate() 166 mux_div |= MMP_CLK_BITS_SET_VAL(mux_val, width, shift); _set_rate() 170 writel(mux_div, ri->reg_clk_ctrl); _set_rate() 172 mux_div |= (1 << ri->bit_fc); _set_rate() 173 writel(mux_div, ri->reg_clk_ctrl); _set_rate() 192 writel(mux_div, ri->reg_clk_sel); _set_rate() 294 u32 mux_div = 0; mmp_clk_mix_get_parent() local 303 mux_div = readl(ri->reg_clk_ctrl); mmp_clk_mix_get_parent() 305 mux_div = readl(ri->reg_clk_sel); mmp_clk_mix_get_parent() 313 mux_val = MMP_CLK_BITS_GET_VAL(mux_div, width, shift); mmp_clk_mix_get_parent() 324 u32 mux_div = 0; mmp_clk_mix_recalc_rate() local 333 mux_div = readl(ri->reg_clk_ctrl); mmp_clk_mix_recalc_rate() 335 mux_div = readl(ri->reg_clk_sel); mmp_clk_mix_recalc_rate() 343 div = _get_div(mix, MMP_CLK_BITS_GET_VAL(mux_div, width, shift)); mmp_clk_mix_recalc_rate()
|
Completed in 64 milliseconds