Re: [PATCH v10 14/27] pwm: jz4740: Improve algorithm of clock calculation

2019-03-04 Thread Thierry Reding
On Sat, Mar 02, 2019 at 08:34:00PM -0300, Paul Cercueil wrote: > The previous algorithm hardcoded details about how the TCU clocks work. > The new algorithm will use clk_round_rate to find the perfect clock rate > for the PWM channel. > > Signed-off-by: Paul Cercueil > Tested-by: Mathieu Malaterr

[PATCH v10 14/27] pwm: jz4740: Improve algorithm of clock calculation

2019-03-02 Thread Paul Cercueil
The previous algorithm hardcoded details about how the TCU clocks work. The new algorithm will use clk_round_rate to find the perfect clock rate for the PWM channel. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v9: New patch