Searched refs:alt_div (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/clk/rockchip/
H A Dclk-cpu.c127 unsigned long alt_prate, alt_div; rockchip_cpuclk_pre_rate_change() local
142 alt_div = DIV_ROUND_UP(alt_prate, ndata->old_rate) - 1; rockchip_cpuclk_pre_rate_change()
143 if (alt_div > reg_data->div_core_mask) { rockchip_cpuclk_pre_rate_change()
145 __func__, alt_div, reg_data->div_core_mask); rockchip_cpuclk_pre_rate_change()
146 alt_div = reg_data->div_core_mask; rockchip_cpuclk_pre_rate_change()
157 __func__, alt_div, alt_prate, ndata->old_rate); rockchip_cpuclk_pre_rate_change()
159 writel(HIWORD_UPDATE(alt_div, reg_data->div_core_mask, rockchip_cpuclk_pre_rate_change()
/linux-4.4.14/drivers/clk/samsung/
H A Dclk-cpu.c149 unsigned long alt_div = 0, alt_div_mask = DIV_MASK; exynos_cpuclk_pre_rate_change() local
186 alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1; exynos_cpuclk_pre_rate_change()
187 WARN_ON(alt_div >= MAX_DIV); exynos_cpuclk_pre_rate_change()
194 alt_div |= E4210_DIV0_ATB_MASK; exynos_cpuclk_pre_rate_change()
197 exynos_set_safe_div(base, alt_div, alt_div_mask); exynos_cpuclk_pre_rate_change()
198 div0 |= alt_div; exynos_cpuclk_pre_rate_change()

Completed in 146 milliseconds