Re: [PATCH v10 6/9] staging: clocking-wizard: Add support for fractional support

2021-03-15 Thread Shubhrajyoti Datta
Hi Zhengxun, On Mon, Mar 15, 2021 at 12:55 PM Zhengxun Li wrote: > > Hi Shubhrajyoti, > > +static int clk_wzrd_dynamic_reconfig_f(struct clk_hw *hw, unsigned long rate, > + unsigned long parent_rate) > +{ > + int err; > + u32 value, pre; > + unsigned long rate_div, f, clockout0_div; > +

Re: [PATCH v10 6/9] staging: clocking-wizard: Add support for fractional support

2021-03-15 Thread Zhengxun Li
Hi Shubhrajyoti, +static int clk_wzrd_dynamic_reconfig_f(struct clk_hw *hw, unsigned long rate, + unsigned long parent_rate) +{ + int err; + u32 value, pre; + unsigned long rate_div, f, clockout0_div; + struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); + void __iomem *div_addr =

[PATCH v10 6/9] staging: clocking-wizard: Add support for fractional support

2021-02-24 Thread Shubhrajyoti Datta
Currently the set rate granularity is to integral divisors. Add support for the fractional divisors. Only the first output0 is fractional in the hardware. Signed-off-by: Shubhrajyoti Datta --- v7: Remove unnecessary comments use mult_frac use a common divisor function.