Home
last modified time | relevance | path

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

/drivers/clk/samsung/
Dclk-cpu.c154 unsigned long alt_div = 0, alt_div_mask = DIV_MASK; in exynos_cpuclk_pre_rate_change() local
191 alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1; in exynos_cpuclk_pre_rate_change()
192 WARN_ON(alt_div >= MAX_DIV); in exynos_cpuclk_pre_rate_change()
199 alt_div |= E4210_DIV0_ATB_MASK; in exynos_cpuclk_pre_rate_change()
202 exynos_set_safe_div(base, alt_div, alt_div_mask); in exynos_cpuclk_pre_rate_change()
203 div0 |= alt_div; in exynos_cpuclk_pre_rate_change()
282 unsigned long alt_div = 0, alt_div_mask = DIV_MASK; in exynos5433_cpuclk_pre_rate_change() local
313 alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1; in exynos5433_cpuclk_pre_rate_change()
314 WARN_ON(alt_div >= MAX_DIV); in exynos5433_cpuclk_pre_rate_change()
316 exynos5433_set_safe_div(base, alt_div, alt_div_mask); in exynos5433_cpuclk_pre_rate_change()
[all …]
/drivers/clk/rockchip/
Dclk-cpu.c121 unsigned long alt_prate, alt_div; in rockchip_cpuclk_pre_rate_change() local
145 alt_div = DIV_ROUND_UP(alt_prate, ndata->old_rate) - 1; in rockchip_cpuclk_pre_rate_change()
146 if (alt_div > reg_data->div_core_mask[0]) { in rockchip_cpuclk_pre_rate_change()
148 __func__, alt_div, reg_data->div_core_mask[0]); in rockchip_cpuclk_pre_rate_change()
149 alt_div = reg_data->div_core_mask[0]; in rockchip_cpuclk_pre_rate_change()
160 __func__, alt_div, alt_prate, ndata->old_rate); in rockchip_cpuclk_pre_rate_change()
163 writel(HIWORD_UPDATE(alt_div, reg_data->div_core_mask[i], in rockchip_cpuclk_pre_rate_change()