Searched refs:fdiv (Results 1 – 2 of 2) sorted by relevance
/u-boot/arch/mips/mach-mtmips/mt7620/ |
A D | init.c | 87 u32 val, multi, div, fdiv, ffrac, dram_type, sys_div; in mt7620_get_clks() local 120 fdiv = (val & CUR_CPU_FDIV_M) >> CUR_CPU_FDIV_S; in mt7620_get_clks() 121 cpu_freq = (cpu_freq * ffrac) / fdiv; in mt7620_get_clks()
|
/u-boot/drivers/clk/mediatek/ |
A D | clk-mtk.c | 280 static ulong mtk_factor_recalc_rate(const struct mtk_fixed_factor *fdiv, in mtk_factor_recalc_rate() argument 283 u64 rate = parent_rate * fdiv->mult; in mtk_factor_recalc_rate() 285 do_div(rate, fdiv->div); in mtk_factor_recalc_rate() 293 const struct mtk_fixed_factor *fdiv = &priv->tree->fdivs[off]; in mtk_topckgen_get_factor_rate() local 296 switch (fdiv->flags & CLK_PARENT_MASK) { in mtk_topckgen_get_factor_rate() 298 rate = mtk_clk_find_parent_rate(clk, fdiv->parent, in mtk_topckgen_get_factor_rate() 302 rate = mtk_clk_find_parent_rate(clk, fdiv->parent, NULL); in mtk_topckgen_get_factor_rate() 309 return mtk_factor_recalc_rate(fdiv, rate); in mtk_topckgen_get_factor_rate()
|
Completed in 5 milliseconds