Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/xilinx/
H A Dclk-xlnx-clock-wizard.c258 unsigned long vco_freq, rate_div, clockout0_div; in clk_wzrd_dynamic_all_nolock() local
269 clockout0_div = div_u64(rate_div, WZRD_FRAC_POINTS); in clk_wzrd_dynamic_all_nolock()
272 f = (pre - (clockout0_div * WZRD_FRAC_POINTS)); in clk_wzrd_dynamic_all_nolock()
275 reg = FIELD_PREP(WZRD_CLKOUT_DIVIDE_MASK, clockout0_div) | in clk_wzrd_dynamic_all_nolock()
395 unsigned long rate_div, f, clockout0_div; in clk_wzrd_dynamic_reconfig_f() local
400 clockout0_div = rate_div / 1000; in clk_wzrd_dynamic_reconfig_f()
403 f = (u32)(pre - (clockout0_div * 1000)); in clk_wzrd_dynamic_reconfig_f()
407 value = (f | (clockout0_div & WZRD_CLKOUT_DIVIDE_MASK)); in clk_wzrd_dynamic_reconfig_f()