Yoshihiro Shimoda b4f9a7268d pwm: rcar: Improve calculation of divider
The rcar_pwm_get_clock_division() has a loop to calculate the divider,
but the value of div should be calculatable without a loop. So, this
patch improves it.

This algorithm is suggested by Uwe Kleine-König and Laurent Pinchart.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2019-03-04 12:14:21 +01:00
..
2019-01-10 09:34:12 +01:00
2019-01-16 08:45:33 +01:00
2019-01-16 08:45:33 +01:00
2018-04-30 10:40:57 +02:00
2019-03-04 11:38:52 +01:00
2017-11-15 10:38:37 +01:00
2019-01-16 08:45:33 +01:00
2018-08-20 11:32:25 +02:00
2018-07-12 09:03:06 +02:00
2017-01-19 00:38:17 +01:00
2018-06-14 16:25:43 +09:00
2017-08-21 08:11:24 +02:00